remove big weird swayidle entry from autostart in favor of a custom swayidle config
This commit is contained in:
parent
a3e04632d3
commit
d094985492
1 changed files with 11 additions and 12 deletions
|
@ -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 $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 $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 $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 $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 $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
|
## 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'
|
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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue