From c5d3289635e134d5133afd6e288fb29837eff65b Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Mon, 27 May 2024 18:09:23 -0400 Subject: [PATCH] Added mod+pause shortcut for power menu as an alternative when power button is not available. --- programs/sway.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/sway.nix b/programs/sway.nix index c29d0b6..fd963e5 100644 --- a/programs/sway.nix +++ b/programs/sway.nix @@ -52,7 +52,7 @@ in { exec swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - | wl-copy && wl-paste > ${screenshotPath}''; # Take screenshot of current window, save it, and copy it to clipboard "Ctrl+Print" = "exec bash ${dynscreenshot} ${screenshotPath}"; # Take screenshot of selection, save it, and copy it to clipboard - } // { # Function Media Keys + } // rec { # Function Media Keys XF86MonBrightnessUp = "exec bash ${changebrightness} 1"; XF86MonBrightnessDown = "exec bash ${changebrightness} -1"; XF86AudioMute = "exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; @@ -69,6 +69,7 @@ in { "dunstctl set-paused toggle; dunstify -a 'dunst_mute_key' -u low -h string:x-dunst-stack-tag:dunst_mute_key 'Notifications mute toggled'"; XF86PowerOff = "exec DMENU_COMMAND='${dmenuCommand}' bash ${shutdownMenu}"; + "${mod}+Pause" = XF86PowerOff; } // { "${mod}+space" = ''input "*" xkb_switch_layout next''; } // { });