add rofi-pamixer convenience scripts for changing volume
[~bandali/configs] / .local / bin / startup-progs
1 #!/bin/sh
2
3 [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
4
5 if [ -x "$(command -v xinput)" ]; then
6 xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' -0.4
7 xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Natural Scrolling Enabled' 1
8 xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Click Method Enabled' 0 1
9 fi
10
11 # setxkbmap \
12 # -layout us,ir \
13 # -option ctrl:nocaps \
14 # -option grp:shifts_toggle
15
16 setxkbmap \
17 -layout us,ir \
18 -option ctrl:swap_rwin_rctl \
19 -option grp:shifts_toggle
20
21 xmodmap -e "keysym Menu = Super_R"
22
23 xsetroot -cursor_name left_ptr
24 xset r rate 200 45
25 xset b off
26
27 light -N 1
28
29 [ -x "$(command -v dunst)" ] && dunst &
30 [ -x "$(command -v nm-applet)" ] && nm-applet &
31 [ -x "$(command -v pasystray)" ] && pasystray -a &