From d5bcd29c7d04b5717080d69c52c03ed1940a7d47 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 28 Mar 2025 15:32:05 +0200 Subject: feat: Update on-wm-session --- .a/sys/on-wm-session.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.a/sys/on-wm-session.sh b/.a/sys/on-wm-session.sh index 5c8447a..01ab59b 100755 --- a/.a/sys/on-wm-session.sh +++ b/.a/sys/on-wm-session.sh @@ -2,21 +2,16 @@ device="desktop" -# xhost +si:localuser:root # fixes unable to open display errors: https://askubuntu.com/a/1130413 +#[ $device = "desktop" ] && xrandr --output HDMI-A-0 --mode 1920x1080 --rate 100 --primary + +xhost +local: ~/.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 & rm -rf ~/.tmp/* -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-custom" -option "grp:alt_shift_toggle,lv3:switch,caps:escape" -v & # keyboard switching -sxhkd -c "$HOME/.sxhkdrc" & -gentoo-pipewire-launcher & if [[ $device == "desktop" ]]; then xset m 1 1 # disable mouse acceleration (not a very proper way to do it, I know) @@ -31,7 +26,6 @@ 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 @@ -39,7 +33,4 @@ copyq & # clipboard manager barrier & # share mouse and keyboard between devices nextcloud & # cloud/source control -# electron-mail & -# gtk-launch discord & firefox-bin & -claws-mail & -- cgit v1.2.3