[sway] Switch launcher and pass to fuzzel

This commit is contained in:
Gregory Trolliet 2024-12-17 17:42:19 +01:00
parent 75af24765c
commit 269565187a
3 changed files with 133 additions and 16 deletions

View file

@ -72,13 +72,13 @@ set $mod Mod4
set $alt Mod1
# Set up a shortcut to reload this config file:
bindsym $mod+Shift+c reload
bindsym $mod+k reload
# Quit your current session and return to the log-in manager/tty:
bindsym $mod+Shift+e exec $HOME/.config/sway/exit.sh
bindsym $mod+Shift+k exec $HOME/.config/sway/exit.sh
# Open password menu
bindsym $mod+x exec $HOME/.local/bin/passmenu --type
bindsym $mod+x exec $HOME/.local/bin/fuzzel-menu --type
# Screen locking (automatic, with a timeout)
set $lock swaylock -c 550000
@ -102,12 +102,6 @@ bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move focus to another window ("cult of vim" version):
bindsym $mod+j focus down
bindsym $mod+h focus left
bindsym $mod+l focus right
bindsym $mod+k focus up
# Move the window:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@ -228,12 +222,12 @@ bindsym $mod+Ctrl+Down move workspace to output down
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+b splih
bindsym $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+t layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
@ -280,7 +274,7 @@ bindsym XF86MonBrightnessUp exec light -A 10
# Keyboard Shortcuts (launching applications) #
#=============================================#
# Set up wofi to replace dmenu as the launcher of choice:
set $menu wofi --show drun -i | xargs swaymsg exec --
set $menu fuzzel
# Launch your browser:
bindsym $mod+shift+b exec firefox
@ -290,8 +284,7 @@ bindsym ctrl+$mod+f exec pcmanfm
# Open a terminal emulator:
set $term alacritty
bindsym $mod+t exec $term
bindsym $mod+Shift+t exec $term -e tmuxinator start default
bindsym $mod+Shift+c exec $term
# Kill focused window:
bindsym $mod+F4 kill
@ -322,7 +315,7 @@ for_window [app_id="gnome-calendar"] floating enable
# Startup app #
#===============================#
exec nextcloud
exec sleep 5s && nextcloud --background
#===============================#
# Dropdown terminal #
@ -344,7 +337,7 @@ for_window [app_id="$ddterm-id"] {
}
# show existing or start new dropdown terminal
bindsym Ctrl+Escape exec swaymsg '[app_id="$ddterm-id"] scratchpad show' \
bindsym $mod+c exec swaymsg '[app_id="$ddterm-id"] scratchpad show' \
|| $ddterm -e tmuxinator start default \
&& sleep .1 && swaymsg '[app_id="$ddterm-id"] $ddterm-resize'
# ^-- resize again, case moving to different output