config (6989B)
1 # This file has been auto-generated by i3-config-wizard(1). 2 # It will not be overwritten, so edit it as you like. 3 # 4 # Should you change your keyboard layout some time, delete 5 # this file and re-run i3-config-wizard(1). 6 # 7 8 # i3 config file (v4) 9 # 10 # Please see https://i3wm.org/docs/userguide.html for a complete reference! 11 12 set $mod Mod4 13 14 font pango:Iosevka 10 15 16 # gaps outer 20px 17 gaps inner 5px 18 default_border pixel 2px 19 20 # class border backgr. text indicator child_border 21 client.focused #dadeac #61538d #e4e4ef #dddfff #61538d 22 client.focused_inactive #333333 #5f676a #e4e4ef #484e50 #5f676a 23 client.unfocused #333333 #222222 #888888 #292d2e #222222 24 client.urgent #2f343a #900000 #e4e4ef #900000 #f43841 25 client.placeholder #000000 #0c0c0c #e4e4ef #000000 #0c0c0c 26 client.background #ffffff 27 28 # Start XDG autostart .desktop files using dex. See also 29 # https://wiki.archlinux.org/index.php/XDG_Autostart 30 exec --no-startup-id dex --autostart --environment i3 31 32 exec --no-startup-id xrdb $HOME/.Xresources 33 exec --no-startup-id sxhkd 34 exec --no-startup-id xset r rate 300 50 35 exec --no-startup-id autorandr --change 36 exec --no-startup-id xwallpaper --zoom ~/pictures/wallpaper 37 exec --no-startup-id xss-lock --transfer-sleep-lock -- xlock -mode rain 38 exec --no-startup-id nm-applet 39 40 # Use pactl to adjust volume in PulseAudio. 41 set $refresh_i3status killall -SIGUSR1 i3status 42 bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 2%+ && $refresh_i3status 43 bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 2%- && $refresh_i3status 44 bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status 45 bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status 46 47 # Use Mouse+$mod to drag floating windows to their wanted position 48 floating_modifier $mod 49 50 # move tiling windows via drag & drop by left-clicking into the title bar, 51 # or left-clicking anywhere into the window while holding the floating modifier. 52 tiling_drag modifier titlebar 53 54 # start a terminal 55 bindsym $mod+Return exec $TERMINAL 56 57 # kill focused window 58 bindsym $mod+Shift+c kill 59 60 # start dmenu (a program launcher) 61 bindsym $mod+d exec --no-startup-id i3-dmenu-desktop 62 bindsym $mod+Shift+d exec --no-startup-id dmenu_run 63 64 # move focus by monitor 65 bindsym $mod+period move workspace to output right 66 bindsym $mod+comma move workspace to output left 67 68 # change focus 69 bindsym $mod+n focus left 70 bindsym $mod+e focus down 71 bindsym $mod+i focus up 72 bindsym $mod+o focus right 73 74 # alternatively, you can use the cursor keys: 75 bindsym $mod+Left focus left 76 bindsym $mod+Down focus down 77 bindsym $mod+Up focus up 78 bindsym $mod+Right focus right 79 80 # move focused window 81 bindsym $mod+Shift+n move left 82 bindsym $mod+Shift+e move down 83 bindsym $mod+Shift+i move up 84 bindsym $mod+Shift+o move right 85 86 # alternatively, you can use the cursor keys: 87 bindsym $mod+Shift+Left move left 88 bindsym $mod+Shift+Down move down 89 bindsym $mod+Shift+Up move up 90 bindsym $mod+Shift+Right move right 91 92 # split in horizontal orientation 93 bindsym $mod+h split h 94 95 # split in vertical orientation 96 bindsym $mod+v split v 97 98 # enter fullscreen mode for the focused container 99 bindsym $mod+f fullscreen toggle 100 101 # change container layout (stacked, tabbed, toggle split) 102 bindsym $mod+s layout stacking 103 bindsym $mod+m layout tabbed 104 bindsym $mod+g layout toggle split 105 106 # scratchpad 107 bindsym $mod+Shift+semicolon move scratchpad 108 bindsym $mod+semicolon scratchpad show 109 110 # toggle tiling / floating 111 bindsym $mod+Control+Tab floating toggle 112 113 # change focus between tiling / floating windows 114 bindsym $mod+Tab focus mode_toggle 115 116 # focus the parent container 117 bindsym $mod+a focus parent 118 119 # focus the child container 120 #bindsym $mod+d focus child 121 122 # Define names for default workspaces for which we configure key bindings later on. 123 # We use variables to avoid repeating the names in multiple places. 124 set $ws1 "1" 125 set $ws2 "2" 126 set $ws3 "3" 127 set $ws4 "4" 128 set $ws5 "5" 129 set $ws6 "6" 130 set $ws7 "7" 131 set $ws8 "8" 132 set $ws9 "9" 133 set $ws10 "10" 134 135 # switch to workspace 136 bindsym $mod+1 workspace number $ws1 137 bindsym $mod+2 workspace number $ws2 138 bindsym $mod+3 workspace number $ws3 139 bindsym $mod+4 workspace number $ws4 140 bindsym $mod+5 workspace number $ws5 141 bindsym $mod+6 workspace number $ws6 142 bindsym $mod+7 workspace number $ws7 143 bindsym $mod+8 workspace number $ws8 144 bindsym $mod+9 workspace number $ws9 145 bindsym $mod+0 workspace number $ws10 146 147 # move focused container to workspace 148 bindsym $mod+Shift+1 move container to workspace number $ws1 149 bindsym $mod+Shift+2 move container to workspace number $ws2 150 bindsym $mod+Shift+3 move container to workspace number $ws3 151 bindsym $mod+Shift+4 move container to workspace number $ws4 152 bindsym $mod+Shift+5 move container to workspace number $ws5 153 bindsym $mod+Shift+6 move container to workspace number $ws6 154 bindsym $mod+Shift+7 move container to workspace number $ws7 155 bindsym $mod+Shift+8 move container to workspace number $ws8 156 bindsym $mod+Shift+9 move container to workspace number $ws9 157 bindsym $mod+Shift+0 move container to workspace number $ws10 158 159 # reload the configuration file 160 bindsym $mod+Shift+q reload 161 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) 162 bindsym $mod+Shift+r restart 163 bindsym $mod+Control+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" 164 165 set $resize_amount 2 166 167 mode "resize" { 168 bindsym n resize shrink width $resize_amount px or $resize_amount ppt 169 bindsym e resize grow height $resize_amount px or $resize_amount ppt 170 bindsym i resize shrink height $resize_amount px or $resize_amount ppt 171 bindsym o resize grow width $resize_amount px or $resize_amount ppt 172 173 bindsym Left resize shrink width $resize_amount px or $resize_amount ppt 174 bindsym Down resize grow height $resize_amount px or $resize_amount ppt 175 bindsym Up resize shrink height $resize_amount px or $resize_amount ppt 176 bindsym Right resize grow width $resize_amount px or $resize_amount ppt 177 178 bindsym Return mode "default" 179 bindsym Escape mode "default" 180 bindsym $mod+r mode "default" 181 } 182 183 bindsym $mod+r mode "resize" 184 185 mode "mpd" { 186 bindsym p exec mpc toggle 187 bindsym n exec mpc next 188 bindsym j exec mpc seek -00:00:10 189 bindsym l exec mpc seek +00:00:10 190 191 bindsym Return mode "default" 192 bindsym Escape mode "default" 193 bindsym $mod+p mode "default" 194 } 195 196 bindsym $mod+p mode "mpd" 197 198 for_window [class="floatterm"] floating enable 199 200 bar { 201 status_command i3status 202 tray_output primary 203 position top 204 205 colors { 206 background #181818 207 statusline #f5f5f5 208 separator #666666 209 210 # border background text 211 focused_workspace #96a6c8 #61538d #f5f5f5 212 active_workspace #333333 #5f676a #f5f5f5 213 inactive_workspace #333333 #222222 #888888 214 urgent_workspace #2f343a #D9534F #f5f5f5 215 binding_mode #2f343a #900000 #f5f5f5 216 } 217 }