2016-03-31 02:06:44 +00:00
|
|
|
# i3 config file (v4)
|
|
|
|
#
|
|
|
|
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
|
|
|
|
|
|
|
set $mod Mod4
|
|
|
|
floating_modifier $mod
|
|
|
|
|
2016-04-01 11:45:17 +00:00
|
|
|
font pango:Noto Sans 10.4
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# kill focused window
|
|
|
|
bindsym $mod+apostrophe kill
|
|
|
|
bindsym Mod1+F4 kill
|
|
|
|
|
|
|
|
# move focused window
|
|
|
|
bindsym $mod+Left move left
|
|
|
|
bindsym $mod+Down move down
|
|
|
|
bindsym $mod+Up move up
|
|
|
|
bindsym $mod+Right move right
|
|
|
|
|
|
|
|
# split in horizontal orientation
|
|
|
|
bindsym $mod+h split h
|
|
|
|
bindsym $mod+t split v
|
|
|
|
|
|
|
|
# enter fullscreen mode for the focused container
|
|
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
|
|
bindsym $mod+o layout stacking
|
|
|
|
bindsym $mod+comma layout tabbed
|
|
|
|
bindsym $mod+period layout toggle split
|
|
|
|
|
|
|
|
# toggle tiling / floating
|
|
|
|
bindsym $mod+u floating toggle
|
|
|
|
|
|
|
|
# focus the parent container
|
|
|
|
bindsym $mod+a focus parent
|
|
|
|
bindsym $mod+d focus child
|
|
|
|
|
|
|
|
# Screen configs #
|
|
|
|
set $left "DP-1.1"
|
|
|
|
set $centre "DP-1.2.1"
|
|
|
|
set $right "DP-1.2.2"
|
|
|
|
set $top "HDMI-0"
|
|
|
|
|
|
|
|
# Workspace -> Screen
|
|
|
|
workspace 1 output $left
|
|
|
|
workspace 2 output $centre
|
|
|
|
workspace 3 output $right
|
|
|
|
workspace 4 output $top
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# exit i3 (logs you out of your X session)
|
2016-04-02 17:59:24 +00:00
|
|
|
bindsym $mod+Shift+Escape exec --no-startup-id ~/.config/i3/powermenu.sh
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
set $bg-color #2f343f
|
|
|
|
set $inactive-bg-color #2f343f
|
|
|
|
set $text-color #f3f4f5
|
|
|
|
set $inactive-text-color #676E7D
|
|
|
|
set $urgent-bg-color #E53935
|
|
|
|
|
|
|
|
# window colors
|
|
|
|
# border background text indicator
|
2016-04-01 11:47:30 +00:00
|
|
|
client.focused $bg-color $bg-color $text-color $bg-color
|
|
|
|
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
|
|
|
|
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
|
|
|
|
client.urgent $urgent-bg-color $urgent-bg-color $text-color $bg-color
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
bar {
|
2016-04-02 19:01:07 +00:00
|
|
|
status_command i3blocks -c ~/.config/i3/blocksconfig
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
workspace_buttons yes
|
|
|
|
strip_workspace_numbers yes
|
|
|
|
tray_output primary
|
|
|
|
tray_padding 0
|
2016-04-01 11:45:17 +00:00
|
|
|
height 23
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
output $centre
|
|
|
|
position top
|
|
|
|
|
|
|
|
colors {
|
|
|
|
separator #757575
|
|
|
|
background #2f343f
|
|
|
|
# border background text
|
|
|
|
focused_workspace $bg-color $bg-color $text-color
|
|
|
|
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
|
|
|
|
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-19 15:43:25 +00:00
|
|
|
new_window pixel 6
|
|
|
|
new_float none
|
|
|
|
|
2016-03-31 02:06:44 +00:00
|
|
|
gaps inner 10
|
|
|
|
gaps outer 2
|
|
|
|
#smart_gaps on
|
|
|
|
|
|
|
|
# Do not follow the mouse
|
2016-04-19 15:43:55 +00:00
|
|
|
focus_follows_mouse yes
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# keybindings
|
|
|
|
bindsym $mod+Shift+j reload
|
|
|
|
bindsym $mod+Shift+p restart
|
|
|
|
bindsym Mod1+Tab exec ~/.config/i3/alt-tab.sh
|
|
|
|
bindsym $mod+Return exec i3-sensible-terminal
|
|
|
|
bindsym $mod+l exec ~/.config/i3/lock.sh
|
|
|
|
bindsym $mod+space exec rofi -show run -fg "#D3DAE3" -bg "#383C4A" -hlbg "#5294E2"
|
2016-04-23 12:16:10 +00:00
|
|
|
bindsym Print exec sh -c 'sleep 0.2 && imgur-screenshot -s'
|
|
|
|
bindsym $mod+Print exec sh -c 'sleep 0.2 && imgur-screenshot'
|
2016-03-31 02:06:44 +00:00
|
|
|
bindsym $mod+Shift+Return exec --no-startup-id ~/.config/i3/cycleaudio.py && pkill -RTMIN+10 i3blocks
|
|
|
|
|
|
|
|
# Media player controls
|
|
|
|
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
|
|
|
bindsym XF86AudioPause exec --no-startup-id mpc pause
|
|
|
|
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
|
|
|
bindsym XF86AudioNext exec --no-startup-id mpc next
|
|
|
|
bindsym XF86AudioPrev exec --no-startup-id mpc previous
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && pkill -RTMIN+10 i3blocks
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && pkill -RTMIN+10 i3blocks
|
|
|
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+10 i3blocks
|
|
|
|
|
|
|
|
# app launch shortcuts
|
|
|
|
exec_alawys --no-startup-id ~/.fehbg
|
|
|
|
exec_always --no-startup-id ~/.config/i3/disable-standby-fs.py
|
|
|
|
exec xautolock -time 10 -locker /usr/bin/lock.sh
|
|
|
|
bindsym $mod+c exec --no-startup-id google-chrome-stable
|
|
|
|
|
2016-03-31 21:33:52 +00:00
|
|
|
exec --no-startup-id pulseaudio
|
|
|
|
exec --no-startup-id dropbox
|
|
|
|
exec --no-startup-id insync start
|
|
|
|
exec --no-startup-id nm-applet
|
|
|
|
exec --no-startup-id blueman-applet
|
|
|
|
exec --no-startup-id redshift
|
2016-04-16 17:01:03 +00:00
|
|
|
exec --no-startup-id xbindkeys
|
2016-03-31 21:33:52 +00:00
|
|
|
exec --no-startup-id compton -b --config ~/.config/compton.conf
|
|
|
|
exec --no-startup-id google-chrome-stable --no-startup-window
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
exec i3-msg 'workspace 2; exec i3-sensible-terminal'
|
2016-03-31 21:33:52 +00:00
|
|
|
exec i3-msg 'workspace 3; exec sleep 2 && google-chrome-stable'
|