z_mirror/dotfiles
git clone https://git.raiguard.me/z_mirror/dotfiles
eb4509d
trunk
1# vim: ft=i3 2 3output * allow_tearing yes 4 5### Key bindings 6 7set $mod Mod4 8 9set $left h 10set $down j 11set $up k 12set $right l 13 14bindsym $mod+t exec foot 15bindsym $mod+q kill 16 17floating_modifier $mod normal 18 19bindsym $mod+Shift+c reload 20 21bindsym $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' 22 23# Launcher 24bindsym $mod+grave exec fuzzel-util-menu 25bindsym $mod+d exec fuzzel 26bindsym $mod+e exec rofimoji --selector fuzzel --files all 27bindsym $mod+w exec fuzzel-filesearch 28bindsym $mod+escape exec fuzzel-power-menu 29 30# Focus 31bindsym $mod+$down focus down 32bindsym $mod+$left focus left 33bindsym $mod+$right focus right 34bindsym $mod+$up focus up 35bindgesture swipe:3:down focus down 36bindgesture swipe:3:left focus left 37bindgesture swipe:3:right focus right 38bindgesture swipe:3:up focus up 39 40# Movement 41bindsym $mod+Shift+$down move down 42bindsym $mod+Shift+$left move left 43bindsym $mod+Shift+$right move right 44bindsym $mod+Shift+$up move up 45bindgesture swipe:4:down move down 46bindgesture swipe:4:left move left 47bindgesture swipe:4:right move right 48bindgesture swipe:4:up move up 49 50# Resizing 51bindsym $mod+Control+$down resize shrink height 5ppt 52bindsym $mod+Control+$left resize shrink width 5ppt 53bindsym $mod+Control+$right resize grow width 5ppt 54bindsym $mod+Control+$up resize grow height 5ppt 55 56# Workspaces 57bindsym $mod+u workspace 1 58bindsym $mod+i workspace 2 59bindsym $mod+o workspace 3 60bindsym $mod+p workspace 4 61bindsym $mod+m workspace 5 62bindsym $mod+comma workspace 6 63bindsym $mod+period workspace 7 64bindsym $mod+slash workspace 8 65bindsym $mod+Shift+u move container to workspace 1 66bindsym $mod+Shift+i move container to workspace 2 67bindsym $mod+Shift+o move container to workspace 3 68bindsym $mod+Shift+p move container to workspace 4 69bindsym $mod+Shift+m move container to workspace 5 70bindsym $mod+Shift+comma move container to workspace 6 71bindsym $mod+Shift+period move container to workspace 7 72bindsym $mod+Shift+slash move container to workspace 8 73bindsym $mod+Alt+h move workspace to output left 74bindsym $mod+Alt+j move workspace to output down 75bindsym $mod+Alt+k move workspace to output up 76bindsym $mod+Alt+l move workspace to output right 77 78# Don't wrap around when moving between windows 79focus_wrapping no 80 81bindsym $mod+b splith 82bindsym $mod+v splitv 83 84bindsym $mod+f fullscreen 85 86bindsym $mod+space floating toggle 87 88bindsym $mod+Shift+space focus mode_toggle 89 90bindsym $mod+s sticky toggle 91 92bindsym $mod+a focus parent 93bindgesture pinch:3:outward focus parent 94 95bindsym $mod+c layout toggle split tabbed stacking 96bindsym $mod+Shift+b border toggle 97 98bindsym $mod+Shift+minus move scratchpad 99 100bindsym $mod+minus scratchpad show 101 102# Media 103bindsym --locked XF86AudioRaiseVolume exec ~/.config/sway/volume.sh i 104bindsym --locked XF86AudioLowerVolume exec ~/.config/sway/volume.sh d 105bindsym --locked XF86AudioMute exec ~/.config/sway/volume.sh t 106bindsym --locked XF86AudioPlay exec ~/.config/sway/media.sh play-pause 107bindsym --locked XF86AudioNext exec ~/.config/sway/media.sh next 108bindsym --locked XF86AudioPrev exec ~/.config/sway/media.sh previous 109 110# Brightness 111bindsym --locked XF86MonBrightnessUp exec ~/.config/sway/brightness.sh +1% 112bindsym --locked XF86MonBrightnessDown exec ~/.config/sway/brightness.sh 1%- 113 114# Screenshots 115# bindsym print exec grimshot save output - | satty --send-to-daemon --filename - --fullscreen --output-filename ~/pictures/screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png 116bindsym print exec grimshot copy area 117bindsym Shift+print exec grimshot copy output 118bindsym Control+print exec grimshot copy active 119bindsym $mod+n exec ~/dev/other/wooz/build/wooz 120bindsym $mod+x exec wayscriber -a 121bindsym $mod+z exec ~/dev/personal/zoomer/build/zoomer 122 123# Presentation 124bindsym $mod+print exec wl-present mirror 125bindsym $mod+shift+print exec wl-present toggle-freeze 126 127# Nested compositors 128bindsym $mod+g mode inhibited 129mode inhibited { 130 bindsym $mod+g mode default 131} 132 133### Looks 134 135set $fg #c0caf5 136set $bg #1a1b26 137set $subbg #1f2335 138set $red #f7768e 139set $green #9ece6a 140set $yellow #e0af68 141set $orange #ff9e64 142set $blue #7aa2f7 143set $magenta #bb9af7 144set $cyan #7dcfff 145set $comment #565f89 146 147default_border pixel 2 148default_floating_border pixel 2 149 150client.focused $cyan $cyan $bg $orange 151client.focused_tab_title $blue $blue $bg $orange 152client.unfocused $comment $comment $bg 153client.urgent $red $red $bg 154 155font Inter Medium 9 156title_align center 157 158smart_borders no_gaps 159 160### Input 161 162input type:keyboard { 163 repeat_delay 300 164 repeat_rate 40 165 xkb_layout us,ru 166} 167 168input type:pointer { 169 scroll_button BTN_MIDDLE 170 scroll_method on_button_down 171} 172 173bindsym --locked $mod+Backspace input type:keyboard xkb_switch_layout next 174 175### Bar 176 177bar swaybar_command waybar 178 179### Rules 180 181for_window [class="^.*"] inhibit_idle fullscreen 182for_window [app_id="^.*"] inhibit_idle fullscreen 183 184for_window [title="File Operation Progress"] floating enable 185for_window [app_id="(alacritty|foot)\.floating"] { 186 floating enable 187 resize set width 60ppt 188 resize set height 80ppt 189} 190for_window [app_id="com.obsproject.Studio"] inhibit_idle open 191for_window [title="xeyes"] floating enable 192 193for_window [app_id="org.speedcrunch.SpeedCrunch"] { 194 floating enable 195 sticky enable 196 move scratchpad 197 scratchpad show 198} 199for_window [app_id="org.qutebrowser.qutebrowser"] inhibit_idle fullscreen 200for_window [app_id="qemu"] inhibit_idle open 201 202assign [app_id="factorio"] workspace 3 203assign [app_id="factorio-run"] workspace 3 204assign [class="factorio"] workspace 3 205 206for_window [app_id="osu!"] allow_tearing yes 207 208for_window [app_id="org.keepassxc.KeePassXC"] floating enable 209 210### Autostart 211 212exec blueman-applet 213exec flatpak run org.fkoehler.KTailctl 214exec mako 215exec nm-applet 216exec keepassxc --minimized 217# exec satty --daemon --early-exit 218exec swayidle 219exec wlsunset 220 221### Other 222 223seat seat0 xcursor_theme Bibata-Modern-Ice 24 224 225include "~/.config/sway/`uname -n`" 226include /etc/sway/config.d/*