Last active
March 17, 2025 20:04
-
-
Save Tombert/25cb80bae7ae15de9a54a39fbd2bb108 to your computer and use it in GitHub Desktop.
sway config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set $mod Mod4 | |
| input "type:touchpad" { | |
| click_method clickfinger | |
| } | |
| input * { | |
| xkb_options "lv3:ralt_alt,caps:escape" | |
| } | |
| mode "vim-nav" { | |
| bindsym h focus left | |
| bindsym j focus down | |
| bindsym k focus up | |
| bindsym l focus right | |
| bindsym Shift+h move left | |
| bindsym Shift+j move down | |
| bindsym Shift+k move up | |
| bindsym Shift+l move right | |
| bindsym f exec nautilus | |
| bindsym 1 workspace 1 | |
| bindsym 2 workspace 2 | |
| bindsym 3 workspace 3 | |
| bindsym 4 workspace 4 | |
| bindsym 5 workspace 5 | |
| bindsym 6 workspace 6 | |
| bindsym 7 workspace 7 | |
| bindsym 8 workspace 8 | |
| bindsym 9 workspace 9 | |
| bindsym 0 workspace 10 | |
| bindsym Shift+1 move container to workspace 1 | |
| bindsym Shift+2 move container to workspace 2 | |
| bindsym Shift+3 move container to workspace 3 | |
| bindsym Shift+4 move container to workspace 4 | |
| bindsym Shift+5 move container to workspace 5 | |
| bindsym Shift+6 move container to workspace 6 | |
| bindsym Shift+7 move container to workspace 7 | |
| bindsym Shift+8 move container to workspace 8 | |
| bindsym Shift+9 move container to workspace 9 | |
| bindsym Shift+0 move container to workspace 10 | |
| bindsym c exec sway-new-workspace | |
| bindsym Print exec grim - | tee ~/Pictures/screenshot-$(date +%s).png | wl-copy --type image/png | |
| bindsym d exec wofi --show drun | |
| bindsym o focus next | |
| bindsym Shift+o focus prev | |
| bindsym p workspace next | |
| bindsym n workspace prev | |
| bindsym q kill | |
| bindsym Return exec foot | |
| bindsym Escape mode "default" | |
| } | |
| #bindsym Menu mode "vim-nav" | |
| bindsym Alt_R mode "vim-nav" | |
| seat * xcursor_theme Adwaita 96 | |
| #set $wallpapers_path $HOME/wallpapers | |
| #output * bg 'find $wallpapers_path -type f | shuf -n 1` fill | |
| output "*" bg /home/tombert/wallpapers/background.png fill | |
| #exec swaybg -i /home/tombert/background.png -m fill | |
| # Use wofi for launching apps | |
| #bindsym $mod+d exec wofi --show drun | |
| # Volume | |
| bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% | |
| bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% | |
| bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle | |
| # Brightness | |
| bindsym XF86MonBrightnessUp exec brightnessctl set +10% | |
| bindsym XF86MonBrightnessDown exec brightnessctl set 10%- | |
| default_border none | |
| default_floating_border none | |
| for_window [class=".*"] border pixel 1 | |
| gaps inner 0 | |
| gaps outer 0 | |
| smart_gaps off | |
| bar { | |
| position top | |
| status_command sway-status | |
| } | |
| # Basic essentials (change as needed) | |
| bindsym $mod+Return exec foot | |
| bindsym $mod+Shift+q kill | |
| bindsym $mod+Shift+c reload | |
| bindsym $mod+Shift+e exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment