Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # i3 config file (v4)
- # Please see http://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.
- # 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
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- bindsym $mod+Return exec urxvt
- # kill focused window
- bindsym $mod+Shift+w kill
- # start dmenu (a program launcher)
- 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
- # 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
- # split in horizontal orientation
- bindsym $mod+n 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
- # border changing
- bindsym $mod+b border toggle
- # 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
- bindsym $mod+m workspace m
- bindsym $mod+q workspace q
- bindsym $mod+a workspace a
- bindsym $mod+z workspace z
- # workspaces from 11-20
- bindsym $mod+Control+1 workspace 11
- bindsym $mod+Control+2 workspace 12
- bindsym $mod+Control+3 workspace 13
- bindsym $mod+Control+4 workspace 14
- bindsym $mod+Control+5 workspace 15
- bindsym $mod+Control+6 workspace 16
- bindsym $mod+Control+7 workspace 17
- bindsym $mod+Control+8 workspace 18
- bindsym $mod+Control+9 workspace 19
- bindsym $mod+Control+0 workspace 20
- # 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+m move container to workspace m
- bindsym $mod+Shift+q move container to workspace q
- bindsym $mod+Shift+a move container to workspace a
- bindsym $mod+Shift+z move container to workspace z
- bindsym $mod+Control+Shift+1 move container to workspace 11
- bindsym $mod+Control+Shift+2 move container to workspace 12
- bindsym $mod+Control+Shift+3 move container to workspace 13
- bindsym $mod+Control+Shift+4 move container to workspace 14
- bindsym $mod+Control+Shift+5 move container to workspace 15
- bindsym $mod+Control+Shift+6 move container to workspace 16
- bindsym $mod+Control+Shift+7 move container to workspace 17
- bindsym $mod+Control+Shift+8 move container to workspace 18
- bindsym $mod+Control+Shift+9 move container to workspace 19
- bindsym $mod+Control+Shift+0 move container to workspace 20
- bindsym $mod+Tab workspace back_and_forth
- workspace_auto_back_and_forth yes
- # 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'"
- # Start i3bar to display a workspace bar (plus the system information i3status
- # finds out, if available)
- bar {
- status_command i3status
- }
- #borders
- #hide_edge_borders both
- bindsym $mod+g border normal 0
- for_window [class="urxvt"] border normal 0
- #for_window [class="urxvt"] title_format "haha"
- #for_window [class="writer"] normal 0 px
- #for_window [class="firefox"] border none
- # Use keyboard volume change buttons to change volume with nice popup
- bindsym XF86AudioLowerVolume exec --no-startup-id volume_change down; exec --no-startup-id killall -USR1 i3status
- bindsym XF86AudioRaiseVolume exec --no-startup-id volume_change up; exec --no-startup-id killall -USR1 i3status
- bindsym XF86AudioMute exec --no-startup-id volume_change mute; exec --no-startup-id killall -USR1 i3status
- # autostarts
- exec --no-startup-id nm-applet
- exec --no-startup-id volnoti
Advertisement
Add Comment
Please, Sign In to add comment