dotfiles

My dotfiles for Arch Linux
git clone git@git.janispagel.de:dotfiles.git
Log | Files | Refs | README

commit 50a9e94ca023293cbd2f6489e4900dbf205cdd18
parent 5ab059904d247d895c70a3eebda16d696c10e6e2
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sat, 12 Sep 2020 16:52:05 +0200

Switch to light for backlight control

xbacklight does not work with AMD cards

Diffstat:
Msuckless/build/suckless/dwm/config.h | 4++--
Mxinit/dot-xinitrc | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/suckless/build/suckless/dwm/config.h b/suckless/build/suckless/dwm/config.h @@ -98,8 +98,8 @@ static const char *volumeupcmd[] = { "pactl", "set-sink-volume", "0", "+5%", NUL static const char *volumedowncmd[] = { "pactl", "set-sink-volume", "0", "-5%", NULL }; static const char *volumemutecmd[] = { "amixer", "-q", "-D", "pulse", "sset", "Master", "toggle", NULL }; static const char *audiotogglecmd[] = { "mpc", "toggle", NULL }; -static const char *brightnessupcmd[] = { "xbacklight", "-inc", "10", NULL }; -static const char *brightnessdowncmd[] = { "xbacklight", "-dec", "10", NULL }; +static const char *brightnessupcmd[] = { "light", "-A", "10", NULL }; +static const char *brightnessdowncmd[] = { "light", "-U", "10", NULL }; static Key keys[] = { /* modifier key function argument */ diff --git a/xinit/dot-xinitrc b/xinit/dot-xinitrc @@ -17,7 +17,7 @@ xrdb -merge ~/.Xresources # Read Xresources xmodmap ~/.Xmodmap setxkbmap -layout de # Set keyboard layout xwallpaper --zoom ~/.wallpaper.png # Set wallpaper -xbacklight -set 40 # Dim screen +light -S 50 # Dim screen wmname LG3D # Trick java into behaving reasonably sxhkd & # Use cumstomized keybindings