dotfiles/wayland/config/sway/config.d/keys.d/launch
2026-06-06 17:10:17 -07:00

55 lines
2.3 KiB
Text

# Launch Stuff
bindsym {
#terminal
$mod+Return exec $term
#floating terminal
$mod+Shift+Return exec timeout 3s $HOME/.config/sway/scripts/exec-float alacritty
#launcher
# $mod+d exec $menu
$mod+d exec dms ipc launcher toggle
# $mod+d exec dms ipc widget openWith launcherButton apps
$mod+Shift+d exec dms ipc widget openWith launcherButton plugins
#launcher reload
# $mod+Shift+d exec 'kbuildsycoca6;update-menus;$menu'
#lockscreen
$mod+l exec loginctl lock-session
#profile manager
$mod+Shift+p exec sdu profile list --mode dmenu | wofi --show dmenu | cut -d' ' -f2- | xargs -I "{}" -- sdu profile switch to "{}"
#sway notification center
# $mod+Shift+n exec swaync-client -t -sw
$mod+n exec dms ipc notifications toggle
#power menu
# $mod+Shift+e exec sdu power | wofi --show dmenu | awk '{print tolower($2)}' | xargs -I "{}" -- sdu power "{}"
$mod+Shift+e exec dms ipc powermenu open
# $mod+Shift+e exec dms ipc fullscreenPowerMenu toggle
#screenshot
$mod+Shift+s exec "$HOME/.config/sway/scripts/screenshot.sh"
#clipboard
# $mod+v exec cliphist list | wofi --show dmenu | cliphist decode | wl-copy
# $mod+Shift+v exec cliphist list | wofi --show dmenu | cliphist delete
$mod+v exec dms ipc clipboard open
#desktop widgets
## $mod+w exec eww open --toggle --screen "$(swaymsg -t get_outputs | jq -r '.[]|select(.focused==true).model')" home
# $mod+w exec '$HOME/.config/sway/scripts/eww-toggle.sh homewidgets_reveal'
$mod+w exec dms ipc call desktopWidget toggleOverlay dw_1780520004301_coydaxdgr
#profile shortcuts
$mod+shift+o exec sdu profile shortcuts get --mode dmenu | wofi --show dmenu | cut -d' ' -f2- | xargs -I "{}" -- sdu profile shortcuts execute "{}"
#global shortcuts
$mod+shift+l exec sdu shortcuts get --mode dmenu | wofi --show dmenu | cut -d' ' -f2- | xargs -I "{}" -- sdu shortcuts execute "{}"
#browser
$mod+shift+b exec 'sdu launch --program browser'
$mod+t exec 'sdu launch --program browser_newtab'
#file browser
$mod+shift+f exec 'sdu launch --program filemanager'
#calculator
# $mod+c exec "$HOME/.config/sway/scripts/wofi-calc.sh"
#sticky notes
$mod+shift+m exec dms ipc notepad toggle
#gocryptfs
$mod+shift+g exec gocryptfs-wofi
#emoji
# $mod+e exec "$HOME/.config/sway/scripts/wofi-emoji"
#macros
$mod+m exec "$HOME/.config/sway/scripts/wofi-macros"
}