diff options
Diffstat (limited to 'x')
-rw-r--r-- | x/.xinitrc | 45 | ||||
-rw-r--r-- | x/.xinitrc-docked (renamed from x/.xinitrc-not-docked) | 43 | ||||
-rwxr-xr-x | x/battery (renamed from x/battery.pl) | 0 | ||||
-rwxr-xr-x | x/startdwm (renamed from x/startdwm.sh) | 0 |
4 files changed, 44 insertions, 44 deletions
@@ -1,7 +1,7 @@ #!/bin/sh -# executed by startx -# for use when dingo is DOCKED -export DOCKED=true +# executed by startx-not-docked +# for use when dingo is NOT docked +export DOCKED=false # load xinitrc.d stuff @@ -40,21 +40,23 @@ fi # start notifications (dunst) /usr/bin/dunst & -# open picom compositor +# start picom compositor picom --config ~/.config/picom.conf & #spotifyd & -# set up monitors -sh ~/.config/screenlayout.sh & +# add network, battery, date and time to xsetroot +slstatus & -# set default audio device to be dock audio jack -pulseaudio -k & -pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo & +# reset backlight +light -S 30 & -# add weather, date and time to xsetroot -#sh ~/bin/xsetloop-docked.sh & -slstatus & +# set default audio device to be laptop speakers +# pacmd set-default-sink alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink & +# pacmd set-sink-volume alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink 0 & + +# set up wallpaper +feh --bg-fill ~/git/wallpapers-exorcist/gruvbox/mountains-2.jpg # apply Xresources xrdb -merge ~/.Xresources @@ -62,18 +64,17 @@ xrdb -merge ~/.Xresources # make cursor disappear after typing xbanish & -# enable numlock -numlockx & +# turn tearfree on +xrandr --output eDP --auto --set TearFree on --output HDMI-A-0 --set TearFree on & + +# run battery checker +~/bin/battery & # start keepassxc for passwords keepassxc ~/.passwords/Passwords.kdbx & -# set up wallpapers -#wallpapers.sh & -feh --bg-fill git/wallpapers-exorcist/gruvbox/mountains-2.jpg git/wallpapers-exorcist/gruvbox/mountains-2.jpg & - -# if unicomp keyboard detected, turn alt into super -if $(lsusb | grep -qi "Unicomp"); then +# if logitech keyboard detected, turn alt into super +if $(lsusb | grep -qi "Logitech Mechanical Keyboard"); then xmodmap -e "remove mod1 = Alt_L" xmodmap -e "remove mod4 = Super_L" xmodmap -e "add mod1 = Super_L" @@ -82,5 +83,5 @@ fi # start dwm redshift & -xset r rate 300 50 -exec /home/bryson/bin/startdwm.sh +xset r rate 300 80 +exec /home/bryson/bin/startdwm diff --git a/x/.xinitrc-not-docked b/x/.xinitrc-docked index b102bb6..dd30be4 100644 --- a/x/.xinitrc-not-docked +++ b/x/.xinitrc-docked @@ -1,7 +1,7 @@ #!/bin/sh -# executed by startx-not-docked -# for use when dingo is NOT docked -export DOCKED=false +# executed by startx +# for use when dingo is DOCKED +export DOCKED=true # load xinitrc.d stuff @@ -40,23 +40,21 @@ fi # start notifications (dunst) /usr/bin/dunst & -# start picom compositor +# open picom compositor picom --config ~/.config/picom.conf & #spotifyd & -# add network, battery, date and time to xsetroot -slstatus-not-docked & +# set up monitors +sh ~/.config/screenlayout.sh & -# reset backlight -light -S 50 & +# set default audio device to be dock audio jack +pulseaudio -k & +pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo & -# set default audio device to be laptop speakers -pacmd set-default-sink alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink & -pacmd set-sink-volume alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink 0 & - -# set up wallpaper -feh --bg-fill ~/git/wallpapers-exorcist/gruvbox/mountains-2.jpg +# add weather, date and time to xsetroot +#sh ~/bin/xsetloop-docked.sh & +slstatus & # apply Xresources xrdb -merge ~/.Xresources @@ -64,17 +62,18 @@ xrdb -merge ~/.Xresources # make cursor disappear after typing xbanish & -# turn tearfree on -xrandr --output eDP --auto --set TearFree on --output HDMI-A-0 --set TearFree on & - -# run battery checker -~/bin/battery.pl & +# enable numlock +numlockx & # start keepassxc for passwords keepassxc ~/.passwords/Passwords.kdbx & -# if logitech keyboard detected, turn alt into super -if $(lsusb | grep -qi "Logitech Mechanical Keyboard"); then +# set up wallpapers +#wallpapers.sh & +feh --bg-fill git/wallpapers-exorcist/gruvbox/mountains-2.jpg git/wallpapers-exorcist/gruvbox/mountains-2.jpg & + +# if unicomp keyboard detected, turn alt into super +if $(lsusb | grep -qi "Unicomp"); then xmodmap -e "remove mod1 = Alt_L" xmodmap -e "remove mod4 = Super_L" xmodmap -e "add mod1 = Super_L" @@ -83,5 +82,5 @@ fi # start dwm redshift & -xset r rate 300 80 +xset r rate 300 50 exec /home/bryson/bin/startdwm.sh diff --git a/x/startdwm.sh b/x/startdwm index 496d79b..496d79b 100755 --- a/x/startdwm.sh +++ b/x/startdwm |