diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2022-01-12 17:45:42 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2022-01-12 17:45:42 +0200 |
| commit | 19989563b92059258c80f3a4770ceb8cd01f3cc3 (patch) | |
| tree | ec94820fd3697e1d9f1e02cf56055d0cf9ed7f7f /.config/openbox/autostart | |
| parent | c465cb08b0fd5cb6c141ddeff471e172ea886396 (diff) | |
| download | dotfiles-19989563b92059258c80f3a4770ceb8cd01f3cc3.tar dotfiles-19989563b92059258c80f3a4770ceb8cd01f3cc3.tar.gz dotfiles-19989563b92059258c80f3a4770ceb8cd01f3cc3.zip | |
Updated openbox autostart
Diffstat (limited to '.config/openbox/autostart')
| -rw-r--r-- | .config/openbox/autostart | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.config/openbox/autostart b/.config/openbox/autostart index 7b0d62b..7eb4de4 100644 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -2,24 +2,34 @@ # These commands are ran when an Openbox X Session is started. # +device="desktop" + # xhost +si:localuser:root # fixes unable to open display errors: https://askubuntu.com/a/1130413 ~/.fehbg & # wallpaper # lead & # hot corners, this is MageJohn's fork: https://github.com/MageJohn/lead xcape -e 'Super_L=Super_L|P' & # used for the "windows" menu +sleep 1 && /usr/libexec/polkit-gnome-authentication-agent-1 & dunst & # notification daemon lxpolkit & # polkit xautolock -detectsleep -secure -time 15 -locker ~/.i3lock/lock.sh & # auto lock screen -while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/.i3lock/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf tint2 & # taskbar picom & # compositor setxkbmap -layout "us,bg" -variant ",phonetic" -option "grp:alt_shift_toggle" & # keyboard switching -libinput-gestures-setup start & # start gestures + +if [[ $device == "desktop" ]]; then + xset m 1 1 # disable mouse acceleration (not a very proper way to do it, I know) +fi + +if [[ $device == "laptop" ]]; then + while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/.i3lock/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf + libinput-gestures-setup start & # start gestures + blueberry & # bluetooth app +fi pnmixer & # volume applet nm-applet & # network applet ~/dunst-toggler-applet.sh & # notification toggler -blueberry & # bluetooth app flameshot & # screenshot utility redshift-gtk & # screen color temperature changer |
