config (7527B)
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 for window titles. Will also be used by the bar unless a different font 15 # is used in the bar {} block below. 16 font pango:monospace 9 17 18 # This font is widely installed, provides lots of unicode glyphs, right-to-left 19 # text rendering and scalability on retina/hidpi displays (thanks to pango). 20 #font pango:DejaVu Sans Mono 8 21 22 # Before i3 v4.8, we used to recommend this one as the default: 23 # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 24 # The font above is very space-efficient, that is, it looks good, sharp and 25 # clear in small sizes. However, its unicode glyph coverage is limited, the old 26 # X core fonts rendering does not support right-to-left and this being a bitmap 27 # font, it doesn’t scale on retina/hidpi displays. 28 29 # Use Mouse+$mod to drag floating windows to their wanted position 30 floating_modifier $mod 31 32 # start a terminal 33 bindsym $mod+Return exec --no-startup-id i3-sensible-terminal 34 bindsym $mod+BackSpace exec --no-startup-id st 35 # kill focused window 36 bindsym $mod+Shift+q kill 37 38 # start dmenu (a program launcher) 39 bindsym $mod+d exec --no-startup-id dmenu_run 40 # There also is the (new) i3-dmenu-desktop which only displays applications 41 # shipping a .desktop file. It is a wrapper around dmenu, so you need that 42 # installed. 43 # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop 44 45 #Workspace names 46 #set $ws1 "1:" 47 #set $ws2 "2:" 48 #set $ws3 "3:" 49 #set $ws4 "4:" 50 #set $ws5 "5:" 51 #set $ws6 "6:" 52 #set $ws7 "7:" 53 #set $ws8 "8:" 54 #set $ws9 "9:" 55 #set $ws10 "10:" 56 57 #Use xprop 58 #class=WM_CLASS(STRING) 59 #title=WM_NAME(STRING) 60 for_window [class="^.*"] border pixel 1 61 for_window [class="Firefox-esr"] border pixel 5 62 for_window [class="keepassxc"] floating enable 63 for_window [title="Terminator Preferences"] floating enable 64 for_window [title="searchbuff"] floating enable, resize set 1300 100, move position 32 30, focus 65 assign [class="Chromium"] $ws1 66 67 #Gaps 68 gaps inner 10 69 gaps outer 5 70 #gaps horizontal 10 71 #gaps vertical 10 72 #gaps top 10 73 #gaps right 10 74 #gaps bottom 10 75 #gaps left 10 76 77 78 79 # change focus 80 bindsym $mod+j focus left 81 bindsym $mod+k focus down 82 bindsym $mod+l focus up 83 bindsym $mod+semicolon focus right 84 85 # alternatively, you can use the cursor keys: 86 bindsym $mod+Left focus left 87 bindsym $mod+Down focus down 88 bindsym $mod+Up focus up 89 bindsym $mod+Right focus right 90 91 # move focused window 92 bindsym $mod+Shift+j move left 93 bindsym $mod+Shift+k move down 94 bindsym $mod+Shift+l move up 95 bindsym $mod+Shift+semicolon move right 96 97 # alternatively, you can use the cursor keys: 98 bindsym $mod+Shift+Left move left 99 bindsym $mod+Shift+Down move down 100 bindsym $mod+Shift+Up move up 101 bindsym $mod+Shift+Right move right 102 103 # split in horizontal orientation 104 bindsym $mod+h split h 105 106 # split in vertical orientation 107 bindsym $mod+v split v 108 109 # enter fullscreen mode for the focused container 110 bindsym $mod+f fullscreen toggle 111 112 # change container layout (stacked, tabbed, toggle split) 113 bindsym $mod+s layout stacking 114 bindsym $mod+w layout tabbed 115 bindsym $mod+e layout toggle split 116 117 # toggle tiling / floating 118 bindsym $mod+Shift+space floating toggle 119 120 # change focus between tiling / floating windows 121 bindsym $mod+space focus mode_toggle 122 123 # focus the parent container 124 bindsym $mod+a focus parent 125 126 # focus the child container 127 #bindsym $mod+d focus child 128 129 # Define names for default workspaces for which we configure key bindings later on. 130 # We use variables to avoid repeating the names in multiple places. 131 set $ws1 "1:" 132 set $ws2 "2:" 133 set $ws3 "3:" 134 set $ws4 "4:" 135 set $ws5 "5:" 136 set $ws6 "6:" 137 set $ws7 "7:" 138 set $ws8 "8:" 139 set $ws9 "9:" 140 set $ws10 "10:" 141 142 # switch to workspace 143 bindsym $mod+1 workspace $ws1 144 bindsym $mod+2 workspace $ws2 145 bindsym $mod+3 workspace $ws3 146 bindsym $mod+4 workspace $ws4 147 bindsym $mod+5 workspace $ws5 148 bindsym $mod+6 workspace $ws6 149 bindsym $mod+7 workspace $ws7 150 bindsym $mod+8 workspace $ws8 151 bindsym $mod+9 workspace $ws9 152 bindsym $mod+0 workspace $ws10 153 154 # move focused container to workspace 155 bindsym $mod+Shift+1 move container to workspace $ws1 156 bindsym $mod+Shift+2 move container to workspace $ws2 157 bindsym $mod+Shift+3 move container to workspace $ws3 158 bindsym $mod+Shift+4 move container to workspace $ws4 159 bindsym $mod+Shift+5 move container to workspace $ws5 160 bindsym $mod+Shift+6 move container to workspace $ws6 161 bindsym $mod+Shift+7 move container to workspace $ws7 162 bindsym $mod+Shift+8 move container to workspace $ws8 163 bindsym $mod+Shift+9 move container to workspace $ws9 164 bindsym $mod+Shift+0 move container to workspace $ws10 165 166 # reload the configuration file 167 bindsym $mod+Shift+c reload 168 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) 169 bindsym $mod+Shift+r restart 170 # exit i3 (logs you out of your X session) 171 bindsym $mod+Shift+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'" 172 173 # resize window (you can also use the mouse for that) 174 mode "resize" { 175 # These bindings trigger as soon as you enter the resize mode 176 177 # Pressing left will shrink the window’s width. 178 # Pressing right will grow the window’s width. 179 # Pressing up will shrink the window’s height. 180 # Pressing down will grow the window’s height. 181 bindsym j resize shrink width 10 px or 10 ppt 182 bindsym k resize grow height 10 px or 10 ppt 183 bindsym l resize shrink height 10 px or 10 ppt 184 bindsym semicolon resize grow width 10 px or 10 ppt 185 186 # same bindings, but for the arrow keys 187 bindsym Left resize shrink width 10 px or 10 ppt 188 bindsym Down resize grow height 10 px or 10 ppt 189 bindsym Up resize shrink height 10 px or 10 ppt 190 bindsym Right resize grow width 10 px or 10 ppt 191 192 # back to normal: Enter or Escape or $mod+r 193 bindsym Return mode "default" 194 bindsym Escape mode "default" 195 bindsym $mod+r mode "default" 196 } 197 198 bindsym $mod+r mode "resize" 199 200 # Start i3bar to display a workspace bar (plus the system information i3status 201 # finds out, if available) 202 bar { 203 status_command i3status 204 } 205 206 exec_always --no-startup-id compton 207 exec_always --no-startup-id ~/.fehbg 208 209 bindsym $mod+i exec --no-startup-id /home/anders/Scripts/.scriptmenu 210 #bindsym $mod+o exec --no-startup-id chromium 211 bindsym $mod+KP_Enter exec --no-startup-id i3lock-fancy 212 bindsym $mod+KP_Add exec --no-startup-id "sudo /home/anders/Scripts/brightup.sh" 213 bindsym $mod+KP_Subtract exec --no-startup-id "sudo /home/anders/Scripts/brightdown.sh" 214 bindsym XF86MonBrightnessUp exec --no-startup-id "sudo /home/anders/Scripts/brightup.sh" 215 bindsym XF86MonBrightnessDown exec --no-startup-id "sudo /home/anders/Scripts/brightdown.sh" 216 bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume 0 +5%" 217 bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume 0 -5%" 218 bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute 0 toggle" 219 220 bindsym $mod+p exec --no-startup-id "kpmenu -d /home/anders/.kp/Database.kdbx" 221 bindsym $mod+Shift+p exec --no-startup-id "keepassxc" 222 223 bindsym $mod+Shift+s exec --no-startup-id "/home/anders/Scripts/surfraw.sh" 224 225 #bindsym $mod+ exec --no-startup-id