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
This commit is contained in:
Konstantin Koslowski 2025-10-18 09:49:44 +02:00
parent 67a7a6091d
commit 728d7e89cf
2 changed files with 13 additions and 5 deletions

4
bin/sway_run Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
eval $(systemctl --user show-environment | grep -i ssh)
wofi --show drun --prompt applications

14
config
View file

@ -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
#