diff --git a/roles/mako/templates/config.j2 b/roles/mako/templates/config.j2 index a3c0b0f..ce61761 100644 --- a/roles/mako/templates/config.j2 +++ b/roles/mako/templates/config.j2 @@ -21,3 +21,10 @@ default-timeout=6000 [urgency=high] text-color={{ color1 }}FF border-color={{ color1 }}BB + +[mode=away] +default-timeout=0 +ignore-timeout=1 + +[mode=do-not-disturb] +invisible=1 diff --git a/roles/sway/templates/config.j2 b/roles/sway/templates/config.j2 index 5b2f7bd..1545bab 100644 --- a/roles/sway/templates/config.j2 +++ b/roles/sway/templates/config.j2 @@ -213,6 +213,8 @@ exec swaymsg 'workspace $tag4; exec kitty bash -c "screen -R tiny"' exec_always ~/.config/waybar/waybar.sh & # wob exec exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob +# mako away +exec swayidle timeout 30 "makoctl set-mode away" resume "makoctl set-mode default" # set gtk theme exec_always ~/.config/sway/import-gsettings