config (5332B)
1 set $mod Mod4 2 3 # Font for window titles. Will also be used by the bar unless a different font 4 # is used in the bar {} block below. 5 font pango:Fira Mono 8 6 7 # Use Mouse+$mod to drag floating windows to their wanted position 8 floating_modifier $mod 9 10 # start a terminal 11 bindsym $mod+Return exec i3-sensible-terminal 12 13 # kill focused window 14 bindsym $mod+Shift+q kill 15 16 bindsym $mod+d exec --no-startup-id "dmenu_run" 17 18 # change focus 19 bindsym $mod+j focus left 20 bindsym $mod+k focus down 21 bindsym $mod+l focus up 22 bindsym $mod+semicolon focus right 23 bindsym $mod+ntilde focus right 24 25 # alternatively, you can use the cursor keys: 26 bindsym $mod+Left focus left 27 bindsym $mod+Down focus down 28 bindsym $mod+Up focus up 29 bindsym $mod+Right focus right 30 31 # move focused window 32 bindsym $mod+Shift+j move left 33 bindsym $mod+Shift+k move down 34 bindsym $mod+Shift+l move up 35 bindsym $mod+Shift+semicolon move right 36 bindsym $mod+Shift+ntilde move right 37 38 # split in horizontal orientation 39 bindsym $mod+h split h 40 41 # split in vertical orientation 42 bindsym $mod+v split v 43 44 # enter fullscreen mode for the focused container 45 bindsym $mod+f fullscreen toggle 46 47 # change container layout (stacked, tabbed, toggle split) 48 #bindsym $mod+s layout stacking 49 #bindsym $mod+w layout tabbed 50 bindsym $mod+e layout toggle split 51 52 # toggle tiling / floating 53 bindsym $mod+Shift+space floating toggle 54 55 # change focus between tiling / floating windows 56 bindsym $mod+space focus mode_toggle 57 58 # focus the parent container 59 bindsym $mod+a focus parent 60 61 # focus the child container 62 bindsym $mod+Shift+a focus child 63 64 # switch to workspace 65 bindsym $mod+1 workspace 1 66 bindsym $mod+2 workspace 2 67 bindsym $mod+3 workspace 3 68 bindsym $mod+4 workspace 4 69 bindsym $mod+5 workspace 5 70 bindsym $mod+6 workspace 6 71 bindsym $mod+7 workspace 7 72 bindsym $mod+8 workspace 8 73 bindsym $mod+9 workspace 9 74 bindsym $mod+0 workspace 10 75 76 # move focused container to workspace 77 bindsym $mod+Shift+1 move container to workspace 1 78 bindsym $mod+Shift+2 move container to workspace 2 79 bindsym $mod+Shift+3 move container to workspace 3 80 bindsym $mod+Shift+4 move container to workspace 4 81 bindsym $mod+Shift+5 move container to workspace 5 82 bindsym $mod+Shift+6 move container to workspace 6 83 bindsym $mod+Shift+7 move container to workspace 7 84 bindsym $mod+Shift+8 move container to workspace 8 85 bindsym $mod+Shift+9 move container to workspace 9 86 bindsym $mod+Shift+0 move container to workspace 10 87 88 # reload the configuration file 89 bindsym $mod+Shift+c reload 90 91 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) 92 bindsym $mod+Shift+r restart 93 94 # exit i3 (logs you out of your X session) 95 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'" 96 97 # resize window (you can also use the mouse for that) 98 mode "resize" { 99 # These bindings trigger as soon as you enter the resize mode 100 101 # Pressing left will shrink the window’s width. 102 # Pressing right will grow the window’s width. 103 # Pressing up will shrink the window’s height. 104 # Pressing down will grow the window’s height. 105 bindsym j resize shrink width 10 px or 10 ppt 106 bindsym k resize grow height 10 px or 10 ppt 107 bindsym l resize shrink height 10 px or 10 ppt 108 bindsym semicolon resize grow width 10 px or 10 ppt 109 bindsym ntilde resize grow width 10 px or 10 ppt 110 111 # back to normal: Enter or Escape 112 bindsym Return mode "default" 113 bindsym Escape mode "default" 114 } 115 116 bindsym $mod+r mode "resize" 117 118 ## class border backgr. text indicator child_border 119 client.focused #EEEEEE #FF0000 #00FFFF #00FF00 #CCCCCC 120 client.focused_inactive #FF0000 #FF0000 #00FFFF #00FF00 #000000 121 client.unfocused #FF0000 #FF0000 #00FFFF #00FF00 #000000 122 client.urgent #FF0000 #FF0000 #00FFFF #00FF00 #FF0000 123 client.placeholder #FF00FF #FF00FF #FF00FF #FF00FF #FF00FF 124 client.background #FF00FF 125 126 127 default_border pixel 2 128 129 # You can also use any non-zero value if you'd like to have a border 130 #for_window [class=".*"] border pixel 0 131 #for_window [class=".*"] child_border pixel 0 132 133 134 # 4.13. Arbitrary commands for specific windows (for_window) 135 for_window [class="Blender" instance="Blender" title="Blender Preferences"] floating enable 136 for_window [class="Blender" instance="Blender" title="Blender Preferences"] move position center 137 for_window [class="zoom" instance="zoom" title="zoom"] floating enable 138 for_window [class="zoom" instance="zoom" title="zoom"] move position center 139 for_window [class="zoom" instance="zoom" title="Chat"] floating enable 140 for_window [class="zoom" instance="zoom" title="Chat"] move position center 141 for_window [class="zoom" instance="zoom" title="Participants*"] floating enable 142 for_window [class="zoom" instance="zoom" title="Participants*"] move position center 143 for_window [class="zoom" instance="zoom" title="Settings"] floating enable 144 for_window [class="zoom" instance="zoom" title="Settings"] move position center 145 146 147 # 4.24 Focus follows mouse 148 focus_follows_mouse no 149 150 # 6.20. Scratchpad 151 152 # Make the currently focused window a scratchpad 153 bindsym $mod+Shift+minus move scratchpad 154 155 # Show the first scratchpad window 156 bindsym $mod+minus scratchpad show 157 158 # i3-gaps 159 #gaps outer 8 160 gaps inner 12