# Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) #bar { #status_command i3status #} # This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! # set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:DejaVu Sans Mono 10 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. # xss-lock zen grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet exec --no-startup-id telegram-desktop # exec --no-startup-id syncthing-gtk exec --no-startup-id keepass exec --no-startup-id onboard exec --no-startup-id touchegg exec --no-startup-id xscreensaver # exec --no-startup-id mailspring # exec --no-startup-id minetime # No border :) default_border pixel 1 default_floating_border none # Default colors # class border backgr. text indicator child_border client.focused #ffffff #888888 #000000 #ffffff #888888 client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a client.unfocused #ff0000 #040404 #888888 #444444 #444444 client.urgent #2f343a #900000 #ffffff #900000 #900000 client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c client.background #000000 # Use pactl to adjust volume in PulseAudio. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +7% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -7% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # Brightness settings bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 5 bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5 # Transparent lock bindsym $mod+i exec xtrlock # Multiple display settings bindsym XF86Display exec --no-startup-id arandr # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+w kill # start dmenu (a program launcher) #bindsym $mod+r exec dmenu_run bindsym $mod+r exec --no-startup-id ~/.config/rofi/bin/menu_powermenu # start rofi bindsym $mod+p exec rofi -show run # switch rofi bindsym $mod+q exec rofi -show window # ssh rofi #bindsym $mod+c exec rofi -show ssh bindsym $mod+c exec --no-startup-id ~/.config/rofi/bin/menu_time # lock screen bindsym $mod+o exec ~/lock.sh #bindsym $mod+o exec slimlock # ristretto bindsym $mod+e exec thunar # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # Resizing windows bindsym $mod+Ctrl+Shift+Up resize shrink height 10 px or 10 ppt bindsym $mod+Ctrl+Shift+Down resize grow height 10 px or 10 ppt bindsym $mod+Ctrl+Shift+Right resize shrink width 10 px or 10 ppt bindsym $mod+Ctrl+Shift+Left resize grow width 10 px or 10 ppt bindsym $mod+Ctrl+Shift+k resize shrink height 10 px or 10 ppt bindsym $mod+Ctrl+Shift+j resize grow height 10 px or 10 ppt bindsym $mod+Ctrl+Shift+l resize shrink width 10 px or 10 ppt bindsym $mod+Ctrl+Shift+h resize grow width 10 px or 10 ppt # split in horizontal orientation bindsym $mod+b split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+t layout tabbed bindsym $mod+a layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container # bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" set $ws11 "A" set $ws12 "B" set $ws13 "C" set $ws14 "D" set $ws15 "E" set $ws16 "F" set $ws17 "G" set $ws18 "H" set $ws19 "I" set $ws20 "J" # switch to workspace bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 bindsym $mod+F1 workspace $ws11 bindsym $mod+F2 workspace $ws12 bindsym $mod+F3 workspace $ws13 bindsym $mod+F4 workspace $ws14 bindsym $mod+F5 workspace $ws15 bindsym $mod+F6 workspace $ws16 bindsym $mod+F7 workspace $ws17 bindsym $mod+F8 workspace $ws18 bindsym $mod+F9 workspace $ws19 bindsym $mod+F10 workspace $ws20 # Scratchpad # Make the currently focused window a scratchpad bindsym $mod+Shift+minus move scratchpad # Show the first scratchpad window bindsym $mod+minus scratchpad show # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+F1 move container to workspace $ws11 bindsym $mod+Shift+F2 move container to workspace $ws12 bindsym $mod+Shift+F3 move container to workspace $ws13 bindsym $mod+Shift+F4 move container to workspace $ws14 bindsym $mod+Shift+F5 move container to workspace $ws15 bindsym $mod+Shift+F6 move container to workspace $ws16 bindsym $mod+Shift+F7 move container to workspace $ws17 bindsym $mod+Shift+F8 move container to workspace $ws18 bindsym $mod+Shift+F9 move container to workspace $ws19 bindsym $mod+Shift+F10 move container to workspace $ws20 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) 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'" # resize window (you can also use the mouse for that) # mode "resize" { # # These bindings trigger as soon as you enter the resize mode # # # Pressing left will shrink the window’s width. # # Pressing right will grow the window’s width. # # Pressing up will shrink the window’s height. # # Pressing down will grow the window’s height. # bindsym j resize shrink width 10 px or 10 ppt # bindsym k resize grow height 10 px or 10 ppt # bindsym l resize shrink height 10 px or 10 ppt # bindsym semicolon resize grow width 10 px or 10 ppt # # # same bindings, but for the arrow keys # bindsym Left resize shrink width 10 px or 10 ppt # bindsym Down resize grow height 10 px or 10 ppt # bindsym Up resize shrink height 10 px or 10 ppt # bindsym Right resize grow width 10 px or 10 ppt # # # back to normal: Enter or Escape or $mod+r # bindsym Return mode "default" # bindsym Escape mode "default" # bindsym $mod+r mode "default" # } # Supposed to kill with center button bindsym --release button2 kill # Custom config window for_window [class="vlc"] floating enable for_window [class="feh"] floating enable # Assign to desktop assign [class="Firefox"] 1 assign [class="KeePass"] 3 assign [class="Clementine"] 8 assign [class="Telegram"] 9 assign [class="Mailspring"] 7 assign [class="MineTime"] 7 # bindsym $mod+r mode "resize" # Workspace config workspace 1 output eDP1 workspace 2 output eDP1 workspace 3 output HDMI2 eDP1 workspace 4 output HDMI2 eDP1 workspace 5 output HDMI2 eDP1 workspace 6 output HDMI2 eDP1 workspace 7 output eDP1 workspace 8 output eDP1 workspace 9 output eDP1 workspace 10 output HDMI2 eDP1 # i3 bar configuration # ---------------------------------------------------------------------------- # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { # status_command i3status -- status_command py3status position top tray_output primary colors { background #000000 statusline #ffffff separator #aaaaaa # Default conf # focused_workspace #4c7899 #285577 #ffffff focused_workspace #ffffff #888888 #000000 active_workspace #888888 #444444 #ffffff inactive_workspace #888888 #444444 #ff0000 urgent_workspace #2f343a #900000 #ffffff binding_mode #2f343a #900000 #ffffff } # separator_symbol "ʃ" #separator_symbol "❰" separator_symbol " ❱ " #separator_symbol " ▷ " #separator_symbol " ∠ " #separator_symbol "|" #separator_symbol "ǁ" strip_workspace_name no strip_workspace_numbers yes binding_mode_indicator no }