From ea716a8192f47c4def1624abf0b66d47ff08d91d Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 19 Jan 2023 15:10:17 +0100 Subject: sway: add super+c bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .config/sway/binds.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '.config') diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf index 441093b..2d11df6 100644 --- a/.config/sway/binds.conf +++ b/.config/sway/binds.conf @@ -98,8 +98,8 @@ bindsym $mod+Apostrophe [app_id="^firefox" title="^WORK/main"] focus # Workspaces {{{ # Note: workspaces can have any name you want, not just numbers. # We just use 1-10 as the default. -bindsym $mod+n workspace next -bindsym $mod+p workspace prev +bindsym $mod+Shift+n workspace next +bindsym $mod+Shift+p workspace prev # switch to workspace bindsym $mod+1 workspace $ws1 @@ -182,9 +182,9 @@ mode "layout" { # move focus to the parent container bindsym p focus parent bindsym Shift+p focus child - + # make a sticky container - bindsym t sticky toggle; mode "default"; exec notify-send "container sticky'd" + bindsym t sticky toggle; mode "default"; exec notify-send sway "container pinned" bindsym Shift+t \ floating enable; \ sticky enable; \ @@ -264,6 +264,10 @@ bindsym $mod+Shift+i exec anthywl-toggle # bindsym $mod+x [con_mark="x"] focus # bindsym $mod+Ctrl+x swap container with mark "x" +# https://whynothugo.nl/journal/2022/11/04/copying-with-super-c/ +bindsym $mod+x exec wtype -P XF86Cut +bindsym $mod+c exec wtype -P XF86Copy +bindsym $mod+p exec wtype -P XF86Paste # Media volume controls bindsym XF86AudioMute exec soundswitch -m -- cgit 1.4.1