aboutsummaryrefslogtreecommitdiff
path: root/x/.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to 'x/.xinitrc')
-rw-r--r--x/.xinitrc45
1 files changed, 23 insertions, 22 deletions
diff --git a/x/.xinitrc b/x/.xinitrc
index dd30be4..8f20975 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -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