New backup 2024-04-24 12:45:02
This commit is contained in:
parent
815740c060
commit
990d22a315
2 changed files with 17 additions and 1 deletions
|
@ -27,9 +27,12 @@
|
|||
# Clipboard
|
||||
bindsym $mod+Shift+v exec $HOME/.config/sway/scripts/clipboard
|
||||
|
||||
# Shortcuts
|
||||
# Profile Shortcuts
|
||||
bindsym $mod+shift+o exec $HOME/.config/sway/scripts/shortcuts.sh
|
||||
|
||||
# Global Shortcuts
|
||||
bindsym $mod+shift+l exec $HOME/.config/sway/scripts/global_shortcuts.sh
|
||||
|
||||
# Browser
|
||||
bindsym $mod+shift+b exec $HOME/.config/sway/scripts/browser.sh
|
||||
|
||||
|
|
13
de/home/.config/sway/scripts/global_shortcuts.sh
Executable file
13
de/home/.config/sway/scripts/global_shortcuts.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
current_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true)|.name')
|
||||
|
||||
current_ws=$(printf "%02d\n" $( echo "${current_ws}" | sed 's/:.*//' | tr -d '"'))
|
||||
|
||||
current_ws=${current_ws:0:1}
|
||||
|
||||
options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" )
|
||||
|
||||
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
|
||||
|
||||
"$HOME/.config/sway/scripts/shortcuts/${current_ws}"/"${op}"
|
Loading…
Add table
Reference in a new issue