From dc338530a3c95914b7935afd878b335f876aa7da Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 28 Mar 2024 13:33:21 +0300 Subject: [PATCH] Sway : Launch widgets in a scratchpad. --- module/sway/module/10-Bluetooth | 4 ++++ module/sway/module/10-Network | 4 ++++ module/sway/module/10-Sound | 6 +++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/module/sway/module/10-Bluetooth b/module/sway/module/10-Bluetooth index ace47d2..c0092f2 100644 --- a/module/sway/module/10-Bluetooth +++ b/module/sway/module/10-Bluetooth @@ -1 +1,5 @@ +for_window [app_id=".blueman-manager-wrapped"] { + move scratchpad + scratchpad show +} bindsym $mod+b exec 'blueman-manager' diff --git a/module/sway/module/10-Network b/module/sway/module/10-Network index ed65dcb..cff9ac4 100644 --- a/module/sway/module/10-Network +++ b/module/sway/module/10-Network @@ -1 +1,5 @@ +for_window [app_id="nm-connection-editor"] { + move scratchpad + scratchpad show +} bindsym $mod+n exec 'nm-connection-editor' diff --git a/module/sway/module/10-Sound b/module/sway/module/10-Sound index e55afcb..46ae73f 100644 --- a/module/sway/module/10-Sound +++ b/module/sway/module/10-Sound @@ -3,5 +3,9 @@ bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +1%' bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -1%' bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle' -# Open sound control. +# Open sound control. # NOTE: Get id with `swaymsg -t get_tree`. +for_window [app_id="pavucontrol"] { + move scratchpad + scratchpad show +} bindsym $mod+p exec 'pavucontrol'