Kitty theme, rofi selection fix, outputs, mouse speed, hotkeys on RU layout

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-28 09:38:40 +05:00
co-authored by Claude Sonnet 5.5
parent 5a033489b3
commit 447528532e
8 changed files with 209 additions and 82 deletions
+63 -63
View File
@@ -69,13 +69,13 @@ output * bg /usr/share/backgrounds/default.jxl fill
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
bindsym --to-code $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
bindsym --to-code $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
bindsym --to-code $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@@ -85,59 +85,59 @@ output * bg /usr/share/backgrounds/default.jxl fill
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
bindsym --to-code $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym --to-code $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym --to-code $mod+$left focus left
bindsym --to-code $mod+$down focus down
bindsym --to-code $mod+$up focus up
bindsym --to-code $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym --to-code $mod+Left focus left
bindsym --to-code $mod+Down focus down
bindsym --to-code $mod+Up focus up
bindsym --to-code $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym --to-code $mod+Shift+$left move left
bindsym --to-code $mod+Shift+$down move down
bindsym --to-code $mod+Shift+$up move up
bindsym --to-code $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym --to-code $mod+Shift+Left move left
bindsym --to-code $mod+Shift+Down move down
bindsym --to-code $mod+Shift+Up move up
bindsym --to-code $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
bindsym --to-code $mod+1 workspace number 1
bindsym --to-code $mod+2 workspace number 2
bindsym --to-code $mod+3 workspace number 3
bindsym --to-code $mod+4 workspace number 4
bindsym --to-code $mod+5 workspace number 5
bindsym --to-code $mod+6 workspace number 6
bindsym --to-code $mod+7 workspace number 7
bindsym --to-code $mod+8 workspace number 8
bindsym --to-code $mod+9 workspace number 9
bindsym --to-code $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
bindsym --to-code $mod+Shift+1 move container to workspace number 1
bindsym --to-code $mod+Shift+2 move container to workspace number 2
bindsym --to-code $mod+Shift+3 move container to workspace number 3
bindsym --to-code $mod+Shift+4 move container to workspace number 4
bindsym --to-code $mod+Shift+5 move container to workspace number 5
bindsym --to-code $mod+Shift+6 move container to workspace number 6
bindsym --to-code $mod+Shift+7 move container to workspace number 7
bindsym --to-code $mod+Shift+8 move container to workspace number 8
bindsym --to-code $mod+Shift+9 move container to workspace number 9
bindsym --to-code $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
@@ -146,25 +146,25 @@ output * bg /usr/share/backgrounds/default.jxl fill
# 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+v splitv
bindsym --to-code $mod+b splith
bindsym --to-code $mod+v splitv
# Switch the current container between different layout styles
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym --to-code $mod+s layout stacking
bindsym --to-code $mod+w layout tabbed
bindsym --to-code $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
bindsym --to-code $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
bindsym --to-code $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
bindsym --to-code $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
bindsym --to-code $mod+a focus parent
#
# Scratchpad:
#
@@ -172,11 +172,11 @@ output * bg /usr/share/backgrounds/default.jxl fill
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
bindsym --to-code $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
bindsym --to-code $mod+minus scratchpad show
#
# Resizing containers:
#
@@ -185,22 +185,22 @@ mode "resize" {
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
bindsym --to-code $left resize shrink width 10px
bindsym --to-code $down resize grow height 10px
bindsym --to-code $up resize shrink height 10px
bindsym --to-code $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
bindsym --to-code Left resize shrink width 10px
bindsym --to-code Down resize grow height 10px
bindsym --to-code Up resize shrink height 10px
bindsym --to-code Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym --to-code Return mode "default"
bindsym --to-code Escape mode "default"
}
bindsym $mod+r mode "resize"
bindsym --to-code $mod+r mode "resize"
# Include configs from 3 locations:
# - /usr/share/sway/config.d
+3
View File
@@ -0,0 +1,3 @@
# Monitor layout: laptop on the left (scaled), external HDMI monitor on the right
output eDP-1 position 0 0 scale 1.25
output HDMI-A-1 position 1536 0
+4
View File
@@ -0,0 +1,4 @@
# Mouse sensitivity: -1 (slowest) .. 1 (fastest), 0 is default. Touchpad is set in 10-appearance.conf
input type:pointer {
pointer_accel -0.5
}
+2 -2
View File
@@ -28,7 +28,7 @@ client.background $base
# Autostart
exec_always sh -c 'pkill -x dunst; exec dunst'
exec_always sh -c 'pkill -x nm-applet; exec nm-applet --indicator'
bindsym $mod+Shift+x exec ~/.config/sway/lock.sh
bindsym --to-code $mod+Shift+x exec ~/.config/sway/lock.sh
# Touchpad
input type:touchpad {
@@ -47,7 +47,7 @@ for_window [app_id="rofi"] border none
titlebar_padding 6 3
focus_follows_mouse no
workspace_auto_back_and_forth yes
bindsym $mod+Shift+p exec ~/.config/rofi/powermenu.sh
bindsym --to-code $mod+Shift+p exec ~/.config/rofi/powermenu.sh
# Wallpaper + idle/lock
output * bg ~/Pictures/wallpapers/current fill
+13 -13
View File
@@ -3,21 +3,21 @@
# Drop-down scratchpad terminal: $mod+grave
exec kitty --class scratch
for_window [app_id="scratch"] move scratchpad, resize set 1000 560, move position center, border pixel 2
bindsym $mod+grave scratchpad show
bindsym --to-code $mod+grave scratchpad show
# Workspace navigation
bindsym $mod+Tab workspace next_on_output
bindsym $mod+Shift+Tab workspace prev_on_output
bindsym $mod+Ctrl+Right workspace next_on_output
bindsym $mod+Ctrl+Left workspace prev_on_output
bindsym --to-code $mod+Tab workspace next_on_output
bindsym --to-code $mod+Shift+Tab workspace prev_on_output
bindsym --to-code $mod+Ctrl+Right workspace next_on_output
bindsym --to-code $mod+Ctrl+Left workspace prev_on_output
# Quick layout / window helpers
bindsym $mod+Shift+f floating toggle, resize set 1000 600, move position center
bindsym $mod+c exec swaymsg [con_id=__focused__] move position center
bindsym --to-code $mod+Shift+f floating toggle, resize set 1000 600, move position center
bindsym --to-code $mod+c exec swaymsg [con_id=__focused__] move position center
# Screenshots: area -> clipboard, area -> file
bindsym Shift+Print exec ~/.config/sway/screenshot.sh clip
bindsym $mod+Print exec ~/.config/sway/screenshot.sh file
bindsym --to-code Shift+Print exec ~/.config/sway/screenshot.sh clip
bindsym --to-code $mod+Print exec ~/.config/sway/screenshot.sh file
# Keep video/browser-video windows undimmed
for_window [app_id="firefox"] inhibit_idle fullscreen
@@ -27,8 +27,8 @@ for_window [app_id="mpv"] floating enable, dim_inactive 0
exec_always ~/.config/sway/mirror.sh
# Rice helpers
bindsym $mod+Shift+w exec ~/.config/sway/wallpaper.sh
bindsym $mod+Shift+s exec ~/.config/sway/screenshot-menu.sh
bindsym $mod+F1 exec ~/.config/sway/cheatsheet.sh
bindsym --to-code $mod+Shift+w exec ~/.config/sway/wallpaper.sh
bindsym --to-code $mod+Shift+s exec ~/.config/sway/screenshot-menu.sh
bindsym --to-code $mod+F1 exec ~/.config/sway/cheatsheet.sh
# Performance mode: toggle blur + shadows
bindsym $mod+Shift+b blur toggle; shadows toggle
bindsym --to-code $mod+Shift+b blur toggle; shadows toggle