From f46112ac9612eb220e1949d730c8f0a47fc5c3a2 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 19 Apr 2024 18:02:34 -0600 Subject: [PATCH] Hide mode for mako Change Sway to call a new script that will trigger the idle.sh script instead of triggering sway-tranparency.py directly. --- mako.conf | 3 +++ sway/bindings | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mako.conf b/mako.conf index 516f5a097..07314782d 100644 --- a/mako.conf +++ b/mako.conf @@ -57,3 +57,6 @@ progress-color=source #d79921 [app-name="some-app-id" actionable] #on-button-left=invoke-action mail-reply-sender + +[mode=hide] +invisible=1 diff --git a/sway/bindings b/sway/bindings index 4e4f28e81..fc3195a57 100644 --- a/sway/bindings +++ b/sway/bindings @@ -258,7 +258,7 @@ bindsym $mod+Shift+Backspace move container to workspace back_and_forth ### Function row # Escape: Lock -bindsym $mod+Escape exec /usr/bin/kill -SIGUSR1 `cat ${HOME}/.local/state/sway-transparency` +bindsym $mod+Escape exec ${HOME}/scripts/sway/toggle_fade.sh # Add Shift: Blank screen bindsym $mod+Shift+Escape exec /usr/bin/sh -c "sleep 1 ; /usr/bin/kill -SIGUSR1 $(pgrep swayidle)"