z_mirror/dotfiles
git clone https://git.raiguard.me/z_mirror/dotfiles
85f0822
uraya-alpine
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 footclient 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 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 +5% 112bindsym --locked XF86MonBrightnessDown exec ~/.config/sway/brightness.sh 5%- 113 114# Screenshots 115bindsym print exec grimshot save output - | satty --filename - --fullscreen --output-filename ~/pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png 116bindsym Shift+print exec grimshot save output - | satty --filename - --fullscreen --output-filename ~/pictures/Screenshots/satty-$(date '+%Y%m%d-%H:%M:%S').png 117bindsym Control+print exec grimshot copy active 118bindsym $mod+n exec ~/dev/other/wooz/build/wooz 119bindsym $mod+z exec grimshot save output - | ~/dev/personal/zoomer/build/zoomer 120 121# Presentation 122bindsym $mod+print exec wl-present mirror 123bindsym $mod+shift+print exec wl-present toggle-freeze 124 125# Nested compositors 126bindsym $mod+g mode inhibited 127mode inhibited { 128 bindsym $mod+g mode default 129} 130 131### Looks 132 133set $fg #c0caf5 134set $bg #1a1b26 135set $subbg #1f2335 136set $red #f7768e 137set $green #9ece6a 138set $yellow #e0af68 139set $orange #ff9e64 140set $blue #7aa2f7 141set $magenta #bb9af7 142set $cyan #7dcfff 143set $comment #565f89 144 145default_border pixel 2 146default_floating_border pixel 2 147 148client.focused $cyan $cyan $bg $yellow 149client.focused_tab_title $blue $blue $bg $yellow 150client.unfocused $comment $comment $bg 151client.urgent $red $red $bg 152 153font Inter Medium 9 154title_align center 155 156smart_borders no_gaps 157 158### Input 159 160input type:keyboard { 161 repeat_delay 300 162 repeat_rate 40 163 xkb_layout us,ru 164} 165 166bindsym --locked $mod+Backspace input type:keyboard xkb_switch_layout next 167 168### Bar 169 170bar swaybar_command waybar 171 172### Rules 173 174for_window [class="^.*"] inhibit_idle fullscreen 175for_window [app_id="^.*"] inhibit_idle fullscreen 176 177for_window [title="File Operation Progress"] floating enable 178for_window [app_id="(alacritty|foot)\.floating"] { 179 floating enable 180 resize set width 60ppt 181 resize set height 80ppt 182} 183for_window [app_id="com.obsproject.Studio"] inhibit_idle open 184for_window [title="xeyes"] floating enable 185 186for_window [app_id="org.speedcrunch.speedcrunch"] { 187 floating enable 188 sticky enable 189 move scratchpad 190 scratchpad show 191} 192for_window [app_id="org.qutebrowser.qutebrowser"] inhibit_idle fullscreen 193for_window [app_id="qemu"] inhibit_idle open 194 195assign [app_id="factorio"] workspace 3 196assign [app_id="factorio-run"] workspace 3 197assign [class="factorio"] workspace 3 198 199for_window [app_id="osu!"] allow_tearing yes 200 201### Autostart 202 203exec foot -s 204exec blueman-applet 205exec flatpak run dev.deedles.Trayscale --hide-window 206exec mako 207exec nm-applet 208exec swayidle 209exec wlsunset 210 211### Other 212 213seat seat0 xcursor_theme Bibata-Modern-Ice 24 214 215include "~/.config/sway/`uname -n`" 216include /etc/sway/config.d/*