From a84afb1d65a002dd3b3fe72f86b61a0f1e08733a Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 23 Sep 2022 22:36:35 -0400 Subject: [PATCH] Window transparency effects --- sway/autostart | 3 +++ sway/bindings | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sway/autostart b/sway/autostart index bd9600bba..90c7f73a0 100644 --- a/sway/autostart +++ b/sway/autostart @@ -4,6 +4,9 @@ # Background utilities ################################################################################ +# Window transparency +exec ${HOME}/scripts/sway/window-transparency.py + # Custom SwayIdle script exec swayidle -w timeout 500 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' & #exec ${HOME}/scripts/sway/idle.sh start & diff --git a/sway/bindings b/sway/bindings index 0e849c50a..6f126d633 100644 --- a/sway/bindings +++ b/sway/bindings @@ -274,9 +274,9 @@ bindsym $mod+Shift+Backspace move container to workspace back_and_forth ### Function row # Escape: Lock -bindsym $mod+Escape swaylock -c 000000 +bindsym $mod+Escape exec /usr/bin/kill -SIGUSR1 `cat ${HOME}/.spool/sway-transparency` # Add Shift: Blank screen -bindsym $mod+Shift+Escape exec /usr/bin/sh -c "sleep 1 ; /usr/bin/kill -USR1 $(pgrep swayidle)" +bindsym $mod+Shift+Escape exec /usr/bin/sh -c "sleep 1 ; /usr/bin/kill -SIGUSR1 $(pgrep swayidle)" # F1: Mute Audio bindsym $mod+F1 $HOME/scripts/audio/mute.sh