z_mirror/dotfiles
git clone https://git.raiguard.me/z_mirror/dotfiles
da9be51
tangere
1### Variables 2 3set $mod Mod4 4 5set $left h 6set $down j 7set $up k 8set $right l 9 10### Autostart 11 12exec dunst 13exec --no-startup-id nitrogen --restore 14exec setxkbmap -layout us -option caps:escape -option grab:break_actions 15exec /usr/bin/polkit-dumb-agent 16exec xrandr --output DisplayPort-1 --primary -r 144 --output HDMI-A-0 --off 17exec xset r rate 200 18 19### Key bindings 20 21# Start a terminal 22bindsym $mod+Return exec alacritty 23 24# Kill focused window 25bindsym $mod+BackSpace kill 26 27# Drag floating windows by holding down $mod and left mouse button. 28# Resize with right mouse button. 29floating_modifier $mod 30 31# Reload the configuration file 32bindsym $mod+Shift+c reload 33 34# Exit i3 (logs you out of your Wayland session) 35bindsym $mod+Shift+e exec i3nag -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your Wayland session.' -B 'Yes, exit i3' 'i3msg exit' 36 37# Launcher 38# bindsym $mod+y exec fuzzel-util-menu 39bindsym $mod+r exec rofi -show drun 40# bindsym $mod+w exec fuzzel-filesearch 41# bindsym $mod+q exec fuzzel-power-menu 42 43bindsym $mod+g exec xdotool key XF86Ungrab 44 45# Move your focus around 46bindsym $mod+$left focus left 47bindsym $mod+$down focus down 48bindsym $mod+$up focus up 49bindsym $mod+$right focus right 50 51# Move the focused window 52bindsym $mod+Shift+$left move left 53bindsym $mod+Shift+$down move down 54bindsym $mod+Shift+$up move up 55bindsym $mod+Shift+$right move right 56 57# Resize the focused window 58bindsym $mod+Control+$left resize shrink width 30px 59bindsym $mod+Control+$down resize grow height 30px 60bindsym $mod+Control+$up resize shrink height 30px 61bindsym $mod+Control+$right resize grow width 30px 62 63# Output assignments 64workspace 1 output DisplayPort-1 65workspace 4 output DisplayPort-2 66 67# Switch to workspace 68bindsym $mod+u workspace 1 69bindsym $mod+i workspace 2 70bindsym $mod+o workspace 3 71bindsym $mod+p workspace 4 72bindsym $mod+m workspace 5 73bindsym $mod+comma workspace 6 74bindsym $mod+period workspace 7 75bindsym $mod+slash workspace 8 76# Move focused container to workspace 77bindsym $mod+Shift+u move container to workspace 1 78bindsym $mod+Shift+i move container to workspace 2 79bindsym $mod+Shift+o move container to workspace 3 80bindsym $mod+Shift+p move container to workspace 4 81bindsym $mod+Shift+m move container to workspace 5 82bindsym $mod+Shift+comma move container to workspace 6 83bindsym $mod+Shift+period move container to workspace 7 84bindsym $mod+Shift+slash move container to workspace 8 85 86# You can "split" the current object of your focus with 87# $mod+b or $mod+v, for horizontal and vertical splits 88# respectively. 89bindsym $mod+b splith 90bindsym $mod+v splitv 91 92# Make the current focus fullscreen 93bindsym $mod+f fullscreen 94 95# Toggle the current focus between tiling and floating mode 96bindsym $mod+space floating toggle 97 98# Swap focus between the tiling area and the floating area 99bindsym $mod+Shift+space focus mode_toggle 100 101# Toggle sticky on the current window 102bindsym $mod+s sticky toggle 103 104# Focus the parent container 105bindsym $mod+a focus parent 106# Toggle tabbed / stacking layout 107bindsym $mod+t layout toggle split tabbed stacking 108 109# Move the currently focused window to the scratchpad 110bindsym $mod+Shift+minus move scratchpad 111 112# Show the next scratchpad window or hide the focused scratchpad window. 113# If there are multiple scratchpad windows, this command cycles through them. 114bindsym $mod+minus scratchpad show 115 116# Lock 117bindsym $mod+escape exec i3lock 118 119# Media controls 120bindsym XF86AudioRaiseVolume exec ~/.config/sway/volume.sh i 121bindsym XF86AudioLowerVolume exec ~/.config/sway/volume.sh d 122bindsym XF86AudioMute exec ~/.config/sway/volume.sh t 123bindsym XF86AudioPlay exec ~/.config/sway/media.sh play-pause 124bindsym XF86AudioNext exec ~/.config/sway/media.sh next 125bindsym XF86AudioPrev exec ~/.config/sway/media.sh previous 126 127# Brightness controls 128bindsym XF86MonBrightnessUp exec ~/.config/i3/brightness.sh +5% 129bindsym XF86MonBrightnessDown exec ~/.config/i3/brightness.sh 5%- 130 131# # Screenshots 132bindsym print exec flameshot gui 133# # Focused monitor 134# bindsym Shift+print exec grimshot --notify copy output 135# # Focused window 136# bindsym Control+print exec grimshot --notify copy active 137# # Choose window 138# bindsym Alt+print exec freeze-screenshot save 139 140### Looks 141 142default_border pixel 2 143default_floating_border pixel 2 144 145client.focused #56b6c2 #56b6c2 #181a1f #e5c07b 146client.focused_inactive #70798a #70798a #181a1f #e5c07b 147client.unfocused #70798a #70798a #181a1f #e5c07b 148client.urgent #e06c75 #70798a #abb2bf #e5c07b 149 150font pango:Source Code Pro Medium 8 151title_align center 152 153smart_borders on 154 155### Rules 156 157assign [class="discord"] 4 158assign [class="obs"] 4 159 160for_window [title="File Operation Progress"] floating enable 161# for_window [app_id="foot.floating"] { 162# floating enable 163# resize set width 60ppt 164# resize set height 80ppt 165# } 166# for_window [app_id="org.speedcrunch.speedcrunch"] { 167# floating enable 168# sticky enable 169# move position 1427 701 170# move scratchpad 171# scratchpad show 172# } 173# for_window [app_id="org.qutebrowser.qutebrowser"] inhibit_idle fullscreen 174# for_window [app_id="com.obsproject.Studio"] inhibit_idle open 175# for_window [app_id="qemu"] inhibit_idle open 176 177### Bar 178 179set $bg #181a1f 180set $comment #70798a 181set $fg #abb2bf 182set $cyan #56b6c2 183set $red #e06c75 184 185bar { 186 font "pango:Source Code Pro Bold 9" 187 position top 188 status_command ~/.config/sway/status.sh 189 strip_workspace_name yes 190 colors { 191 background $bg 192 statusline $fg 193 active_workspace $bg $bg $fg 194 focused_workspace $bg $bg $cyan 195 inactive_workspace $bg $bg $comment 196 urgent_workspace $red $red $bg 197 } 198} 199 200### Other 201 202# include "~/.config/i3/`uname -n`" 203include /etc/i3/config.d/*