Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # i3 config file (v4)
- # Font for window titles.
- # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
- # FreeType Font
- font pango:Monaco 8
- # Set Modifier Variables
- set $mod Mod1
- set $con Control
- # Set Environment Colour Variables
- set $bg #000000
- set $fg #EFEFEF
- set $ur #D64937
- set $in #888888
- # Set Background
- set $Background */*/*.png
- # Set UI Colors
- # class border backgr. text indicator
- client.focused $bg $bg $fg $ur
- client.focused_inactive $bg $bg $in $ur
- client.unfocused $bg $bg $in $ur
- client.urgent $ur $bg $ur $bg
- # use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- bindsym $mod+Return exec terminator
- # kill focused window
- bindsym $mod+q kill
- # start dmenu (a program launcher)
- bindsym $mod+Tab 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+v split h
- # split in vertical orientation
- bindsym $mod+b 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+p move scratchpad
- # Show the next scratchpad window or hide the focused scratchpad window.
- # If there are multiple scratchpad windows, this command will cycle through them
- bindsym $mod+p 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
- bindsym $mod+minus workspace 11
- bindsym $mod+equal workspace 12
- # 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+minus move container to workspace 11
- bindsym $mod+Shift+equal move container to workspace 12
- # switch windows between monitors
- bindsym $mod+Shift+s move workspace to output right
- # 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
- # lock the screen
- bindsym Mod4+l exec i3lock -i $Background -d
- # rearrange window placement and sizes
- mode "resize" {
- # modify window sizes
- bindsym h resize shrink width 3 px or 3 ppt
- bindsym j resize grow height 3 px or 3 ppt
- bindsym k resize shrink height 3 px or 3 ppt
- bindsym l resize grow width 3 px or 3 ppt
- bindsym Left resize shrink width 3 px or 3 ppt
- bindsym Down resize grow height 3 px or 3 ppt
- bindsym Up resize shrink height 3 px or 3 ppt
- bindsym Right resize grow width 3 px or 3 ppt
- # change focus
- bindsym $mod+h focus left
- bindsym $mod+j focus down
- bindsym $mod+k focus up
- bindsym $mod+l focus right
- 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
- bindsym $mod+Shift+Left move left
- bindsym $mod+Shift+Down move down
- bindsym $mod+Shift+Up move up
- bindsym $mod+Shift+Right move right
- # return to normal
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+r mode "resize"
- mode "(L)ock, (E)xit, (R)eboot, (P)oweroff" {
- bindsym l exec i3lock -i $Background -d
- bindsym e exec i3-msg exit
- bindsym r exec systemctl reboot
- bindsym p exec systemctl poweroff
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- bindsym $mod+Delete mode "(L)ock, (E)xit, (R)eboot, (P)oweroff"
- #Set the border width to 0px
- new_window pixel 1
- hide_edge_borders both
- bindsym $mod+t border toggle
- # Start i3bar
- bindsym $mod+i bar mode toggle
- bar {
- status_command ~/.i3/bin/i3status.sh
- position bottom
- colors {
- background $bg
- statusline $fg
- focused_workspace $fg $ur
- active_workspace $in $ur
- inactive_workspace $ur $bg
- }
- }
- # Configuration loading and Daemons
- exec --no-startup-id ~/.i3/bin/autostart.sh
- exec_always --no-startup-id sh ~/.fehbg
- # Media Keys
- bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -- '-5%' && killall -SIGUSR1 i3status
- bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 -- '+5%' && killall -SIGUSR1 i3status
- bindsym XF86AudioMute exec pactl set-sink-volume 0 0 && killall -SIGUSR1 i3status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement