summaryrefslogtreecommitdiff
path: root/.config/sway/config.d/05-binds
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway/config.d/05-binds')
-rw-r--r--.config/sway/config.d/05-binds65
1 files changed, 65 insertions, 0 deletions
diff --git a/.config/sway/config.d/05-binds b/.config/sway/config.d/05-binds
new file mode 100644
index 0000000..e8b0619
--- /dev/null
+++ b/.config/sway/config.d/05-binds
@@ -0,0 +1,65 @@
+floating_modifier $super
+bindsym {
+ $super+Return exec $term
+ $super+p exec $menu
+
+ $super+q kill
+ $super+Ctrl+r reload
+ $super+Ctrl+Shift+e exit
+ $super+Ctrl+Shift+q exec doas poweroff
+ $super+Ctrl+Shift+r exec doas restart
+
+ $super+u [urgent=latest] focus
+
+ $super+Shift+minus move scratchpad
+ $super+minus scratchpad show
+ $super+g [class="scrcpy"] scratchpad show
+
+ $super+Shift+S exec --no-startup-id 'grim -g "$(slurp)" - | wl-copy'
+ $super+Shift+T exec --no-startup-id 'NOTIFY=$(dmenu -l 0 -p "notification text") \
+ && sleep $(dmenu -l 0 -p "time") && notify-send "$NOTIFY"'
+}
+
+bindsym {
+ $super+h focus left
+ $super+j focus down
+ $super+k focus up
+ $super+l focus right
+
+ $super+Shift+h move left
+ $super+Shift+j move down
+ $super+Shift+k move up
+ $super+Shift+l move right
+
+ $super+Ctrl+h resize shrink width 5 px or 5 ppt
+ $super+Ctrl+j resize shrink height 5 px or 5 ppt
+ $super+Ctrl+k resize grow height 5 px or 5 ppt
+ $super+Ctrl+l resize grow width 5 px or 5 ppt
+
+ $super+b split h
+ $super+v split v
+ $super+Tab split toggle
+ $super+Escape workspace back_and_forth
+
+ $super+t layout toggle tabbed
+ $super+Shift+Tab layout toggle split
+
+ $super+BackSpace focus mode_toggle
+ $super+Shift+BackSpace floating toggle
+ $super+Ctrl+BackSpace sticky toggle
+
+ $super+f fullscreen toggle
+ $super+a focus parent
+ $super+d focus child
+}
+
+bindsym {
+ XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5
+ XF86AudioLowerVolume exec --no-startup-id pamixer -d 5
+ XF86AudioMute exec --no-startup-id pamixer -t
+
+ XF86AudioPlay exec --no-startup-id "mpc toggle"
+ XF86AudioNext exec --no-startup-id "mpc next"
+ XF86AudioPrev exec --no-startup-id "mpc prev"
+}
+