From 728d7e89cf66e6a8d0cc70b9e7cc98feb9af7ea2 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Sat, 18 Oct 2025 09:49:44 +0200 Subject: [PATCH] sway: update keybinds, menu - add switch to and move to workspace next, back_and_forth - update menu to run with external script to include SSH_AUTH_SOCK --- bin/sway_run | 4 ++++ config | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100755 bin/sway_run diff --git a/bin/sway_run b/bin/sway_run new file mode 100755 index 0000000..b9735a2 --- /dev/null +++ b/bin/sway_run @@ -0,0 +1,4 @@ +#!/bin/bash + +eval $(systemctl --user show-environment | grep -i ssh) +wofi --show drun --prompt applications diff --git a/config b/config index 1ab8ff6..72f7ae8 100644 --- a/config +++ b/config @@ -30,7 +30,7 @@ set $font Cascadia Code PL Regular 10 set $notify_cmd dunstify -r 123 # Your preferred application launcher -set $menu wofi --show drun --prompt applications +set $run_cmd $HOME/.config/sway/bin/sway_run set $search_cmd $HOME/.config/sway/bin/sway_search set $exit_cmd $HOME/.config/sway/bin/sway_exit @@ -86,7 +86,7 @@ bindsym $alt+Shift+q kill bindsym --release button3 kill # Start your launcher -bindsym $alt+r exec $menu +bindsym $alt+r exec $run_cmd bindsym $alt+Shift+r exec $search_cmd bindsym $alt+Backspace exec $exit_cmd @@ -142,9 +142,6 @@ bindsym --release $alt+7 exec "echo 0 > /tmp/sovpipe" bindsym --release $alt+8 exec "echo 0 > /tmp/sovpipe" bindsym --release $alt+9 exec "echo 0 > /tmp/sovpipe" bindsym --release $alt+0 exec "echo 0 > /tmp/sovpipe" -# back and forth -bindsym $alt+Escape workspace back_and_forth -bindsym $alt+Tab workspace next # Move focused container to workspace bindsym $alt+Shift+1 move container to workspace number 1 bindsym $alt+Shift+2 move container to workspace number 2 @@ -158,6 +155,13 @@ bindsym $alt+Shift+9 move container to workspace number 9 bindsym $alt+Shift+0 move container to workspace number 10 # Note: workspaces can have any name you want, not just numbers. # We just use 1-10 as the default. +# back and forth +bindsym $alt+Escape workspace back_and_forth +bindsym $alt+Shift+Escape move container to workspace back_and_forth +# next +bindsym $alt+Tab workspace next +bindsym $alt+Shift+Tab move container to workspace next + # # Urgent #