Sway : Split Keybind config.

This commit is contained in:
Dmitry Voronin 2024-04-01 06:30:57 +03:00
parent da61368d2f
commit f4c3ce4f2e
9 changed files with 27 additions and 42 deletions

View file

@ -2,3 +2,5 @@
# Note: pass the final command to swaymsg so that the resulting window can be opened # Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
set $menu _dmenu_path_wrapped | wmenu -b -p 'Run:' -i -f "SF Pro Display Medium 14" -M 1d2021 -S 1d2021 -N 1d2021 -m b8bb26 -s b8bb26 -n ebdbb2 | xargs swaymsg exec -- set $menu _dmenu_path_wrapped | wmenu -b -p 'Run:' -i -f "SF Pro Display Medium 14" -M 1d2021 -S 1d2021 -N 1d2021 -m b8bb26 -s b8bb26 -n ebdbb2 | xargs swaymsg exec --
bindsym $mod+space exec $menu

View file

@ -1,2 +1,4 @@
# Terminal emulator. # Terminal emulator.
set $term foot --config=$FOOT_CONFIG set $term foot --config=$FOOT_CONFIG
bindsym $mod+Escape exec $term -e bash -c "tmux new-session -A -s $USER; bash"

View file

@ -0,0 +1,2 @@
bindsym XF86MonBrightnessDown exec light -U 10
bindsym XF86MonBrightnessUp exec light -A 10

View file

@ -1,32 +0,0 @@
# Start a terminal.
bindsym $mod+Escape exec $term -e bash -c "tmux new-session -A -s $USER; bash"
# Kill focused window.
bindsym $mod+x kill
# Start your launcher.
bindsym $mod+space exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Exit sway (logs you out of your Wayland session).
bindsym $mod+z exec '_twice 1 swaylock -F -c 000000 -k --font "SF Pro Display Medium" --font-size 14'
bindsym $mod+Shift+z exec '_twice 1 swaymsg exit'
# Show last notification.
bindsym $mod+n exec makoctl restore
bindsym $mod+shift+n exec makoctl dismiss --all
# Brightness
bindsym XF86MonBrightnessDown exec light -U 10
bindsym XF86MonBrightnessUp exec light -A 10
# Adjust volume.
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +1%'
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -1%'
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'

View file

@ -10,21 +10,11 @@ bindsym $mod+$left focus left
bindsym $mod+$right focus right bindsym $mod+$right focus right
bindsym $mod+$up focus up bindsym $mod+$up focus up
bindsym $mod+Down focus down
bindsym $mod+Left focus left
bindsym $mod+Right focus right
bindsym $mod+Up focus up
# Move the focused window. # Move the focused window.
bindsym $mod+Shift+$down move down bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$left move left bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$right move right bindsym $mod+Shift+$right move right
bindsym $mod+Shift+$up move up bindsym $mod+Shift+$up move up
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Up move up
# Focus mouse following. # Focus mouse following.
focus_follows_mouse no focus_follows_mouse no

View file

@ -0,0 +1,5 @@
# Show last notification.
bindsym $mod+n exec makoctl restore
# Hide all notifications.
bindsym $mod+shift+n exec makoctl dismiss --all

View file

@ -0,0 +1,3 @@
# Exit sway (logs you out of your Wayland session).
bindsym $mod+z exec '_twice 1 swaylock -F -c 000000 -k --font "SF Pro Display Medium" --font-size 14'
bindsym $mod+Shift+z exec '_twice 1 swaymsg exit'

View file

@ -0,0 +1,3 @@
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +10%'
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -10%'
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'

View file

@ -19,3 +19,13 @@ bindsym $mod+f fullscreen
# Dim inactive windows. # Dim inactive windows.
exec $SWAY_SCRIPT_IWT --opacity 0.85 exec $SWAY_SCRIPT_IWT --opacity 0.85
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Kill focused window.
bindsym $mod+x kill