123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- # i3 config file (v4)
- # See http://i3wm.org/docs/userguide.html for a complete reference!
- # 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 10
- set $mod Mod4
- focus_follows_mouse yes
- exec --no-startup-id feh --bg-fill /home/andreatsh/.config/i3/background001.jpg
- exec --no-startup-id redshift
- exec --no-startup-id exec xbindkeys
- exec --no-startup-id xterm
- # Assign some programs to a specific workspace
- assign [class="(?i)firefox"] 3
- assign [class="(?i)chromium" ] 4
- # Avoid useless window titles
- for_window [class="^XTerm$"] border pixel 1
- for_window [class="^Emacs$"] border pixel 1
- # Screenshots
- bindsym Print exec "scrot -e 'mv $f ~/.screenshots/' 2>/dev/null"
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # Start a terminal
- bindsym $mod+Return exec xterm
- #bindsym $mod+Shift+Return exec i3-sensible-terminal
- # Lock X display
- bindsym Mod4+l exec xtrlock -b
- # Kill focused window
- bindsym $mod+Shift+q kill
- # Start dmenu (a program launcher)
- bindsym $mod+d exec dmenu_run
- # 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
- # The following key binding lets you switch back and forth
- # between the last two workspaces that you visited
- bindsym $mod+Tab workspace back_and_forth
- # Change focus
- # 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
- # 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
- # Split in horizontal orientation
- bindsym $mod+h split h
- # Split in vertical orientation
- bindsym $mod+v split v
- # Enter fullscreen mode for the focused container
- bindsym $mod+f fullscreen
- # Change container layout (stacked, tabbed, toggle split)
- bindsym $mod+s layout stacking
- bindsym $mod+w layout tabbed
- bindsym $mod+e layout toggle split
- # Toggle tiling / floating
- bindsym $mod+Shift+space floating toggle
- # Change focus between tiling / floating windows
- bindsym $mod+space focus mode_toggle
- # Move the currently focused window to the scratchpad
- bindsym $mod+Shift+minus move scratchpad
- # Show the next scratchpad window or hide the focused scratchpad window.
- # If there are multiple scratchpad windows, this command cycles through them.
- bindsym $mod+minus scratchpad show
- # Switch to workspace
- bindsym $mod+1 workspace 1
- bindsym $mod+2 workspace 2
- bindsym $mod+3 workspace 3
- bindsym $mod+4 workspace 4
- bindsym $mod+5 workspace 5
- bindsym $mod+6 workspace 6
- bindsym $mod+7 workspace 7
- bindsym $mod+8 workspace 8
- bindsym $mod+9 workspace 9
- bindsym $mod+0 workspace 10
- # Move focused container to workspace
- bindsym $mod+Shift+1 move container to workspace 1
- bindsym $mod+Shift+2 move container to workspace 2
- bindsym $mod+Shift+3 move container to workspace 3
- bindsym $mod+Shift+4 move container to workspace 4
- bindsym $mod+Shift+5 move container to workspace 5
- bindsym $mod+Shift+6 move container to workspace 6
- bindsym $mod+Shift+7 move container to workspace 7
- bindsym $mod+Shift+8 move container to workspace 8
- bindsym $mod+Shift+9 move container to workspace 9
- bindsym $mod+Shift+0 move container to workspace 10
- bindsym $mod+Shift+c reload # Reload the configuration file
- bindsym $mod+Shift+r restart # Restart i3 inplace
- bindsym $mod+Shift+e exit # Exit i3
- # Resize window
- 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.
- # 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
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+r mode "resize"
- # Start i3bar to display a workspace bar
- bar {
- status_command i3blocks -c ~/.config/i3/i3blocks.conf
- position top
- }
|