From d094985492f08faa2baa21b527fe28581131a28e Mon Sep 17 00:00:00 2001 From: Mark Riedesel Date: Fri, 16 Aug 2024 12:08:16 -0500 Subject: [PATCH] remove big weird swayidle entry from autostart in favor of a custom swayidle config --- .config/sway/autostart | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.config/sway/autostart b/.config/sway/autostart index 0a2d749..30cb558 100644 --- a/.config/sway/autostart +++ b/.config/sway/autostart @@ -23,20 +23,19 @@ set $auto_xdg_keyboard 'grep -q xkb_layout ~/.config/sway/config.d/*.conf || /us set $update_rofi_theme 'mkdir -p $HOME/.config/rofi/ && echo $rofi_theme > $HOME/.config/rofi/Manjaro.rasi' set $create_rofi_config 'mkdir -p $HOME/.config/rofi/ && cp -n /usr/share/sway/templates/rofi/config.rasi $HOME/.config/rofi/config.rasi' set $enable_noisetorch '[ -x "$(command -v noisetorch)" ] && noisetorch -u && noisetorch -i' -set $swayidle swayidle -w \ - timeout $idle_timeout 'brightnessctl -s && brightnessctl set 10' \ - resume 'brightnessctl -r' \ - timeout $locking_timeout 'exec $locking' \ - timeout $screen_timeout '/usr/share/sway/scripts/keyboard-backlight-switch.sh off && swaymsg "output * dpms off"' \ - resume '/usr/share/sway/scripts/keyboard-backlight-switch.sh on && swaymsg "output * dpms on"' \ - timeout $sleep_timeout_bat '[ "$(acpi -b | grep Discharging)" != "" ] && systemctl suspend' \ - timeout $sleep_timeout_ac '[ "$(acpi -b | grep Discharging)" = "" ] && systemctl suspend' \ - before-sleep 'playerctl pause' \ - before-sleep 'exec $locking & sleep $sleep_delay' \ - after-resume '/usr/share/sway/scripts/keyboard-backlight-switch.sh on && swaymsg "output * dpms on" && brightnessctl -r' set $disable_nm_applet_autostart '[ -x "$(command -v nm-applet)" ] && [ ! -f $HOME/.config/autostart/nm-applet.desktop ] && cp /etc/xdg/autostart/nm-applet.desktop $HOME/.config/autostart/nm-applet.desktop && echo "Hidden=true" >> $HOME/.config/autostart/nm-applet.desktop' set $apply_background swaymsg 'output * bg $wallpaper fill' - +# set $swayidle swayidle -w \ +# timeout $idle_timeout 'brightnessctl -s && brightnessctl set 10' \ +# resume 'brightnessctl -r' \ +# timeout $locking_timeout 'exec $locking' \ +# timeout $screen_timeout '/usr/share/sway/scripts/keyboard-backlight-switch.sh off && swaymsg "output * dpms off"' \ +# resume '/usr/share/sway/scripts/keyboard-backlight-switch.sh on && swaymsg "output * dpms on"' \ +# timeout $sleep_timeout_bat '[ "$(acpi -b | grep Discharging)" != "" ] && systemctl suspend' \ +# timeout $sleep_timeout_ac '[ "$(acpi -b | grep Discharging)" = "" ] && systemctl suspend' \ +# before-sleep 'playerctl pause' \ +# before-sleep 'exec $locking & sleep $sleep_delay' \ +# after-resume '/usr/share/sway/scripts/keyboard-backlight-switch.sh on && swaymsg "output * dpms on" && brightnessctl -r' ## daemons set $mako '[ -x "$(command -v mako)" ] && pkill -x mako; mako --font "$term-font" --text-color "$text-color" --border-color "$accent-color" --background-color "$background-color" --border-size 3 --width 400 --height 200 --padding 20 --margin 20 --default-timeout 15000'