diff options
| author | Syndamia <kamen@syndamia.com> | 2022-08-04 17:41:27 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2022-08-04 17:41:27 +0300 |
| commit | 80b4c81b618d4e75b301ac1dd5adfb47f91deca7 (patch) | |
| tree | bc7d94935b273a1aa9b1a1b69c2bbc853c8a32e7 /.a/sys/on-wm-session.sh | |
| parent | a47706a5bd5ee5be16e3fe443b6008cac9ee741d (diff) | |
| download | dotfiles-80b4c81b618d4e75b301ac1dd5adfb47f91deca7.tar dotfiles-80b4c81b618d4e75b301ac1dd5adfb47f91deca7.tar.gz dotfiles-80b4c81b618d4e75b301ac1dd5adfb47f91deca7.zip | |
Moved a lot of stuff to a new folder called .a
Diffstat (limited to '.a/sys/on-wm-session.sh')
| -rwxr-xr-x | .a/sys/on-wm-session.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.a/sys/on-wm-session.sh b/.a/sys/on-wm-session.sh new file mode 100755 index 0000000..54b954b --- /dev/null +++ b/.a/sys/on-wm-session.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +device="laptop" + +# 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 ~/.a/sys/lock.sh & # auto lock screen +tint2 & # taskbar +picom & # compositor +setxkbmap -layout "us,bg" -variant ",phonetic" -option "grp:alt_shift_toggle" & # keyboard switching + +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 ~/.a/sys/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 +~/.a/dunst-toggler-applet.sh & # notification toggler +devilspie2 & # updates windows icons to the ones form the current theme + +flameshot & # screenshot utility +redshift-gtk & # screen color temperature changer +copyq & # clipboard manager +barrier & # share mouse and keyboard between devices +nextcloud & # cloud/source control + +electron-mail & +rambox & +gtk-launch discord & +brave-bin & +claws-mail & |
