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
|
2018-05-29 00:21:53 +00:00
|
|
|
set $alt Mod1
|
2016-03-31 02:06:44 +00:00
|
|
|
floating_modifier $mod
|
|
|
|
|
2016-10-20 23:03:59 +00:00
|
|
|
font pango:Noto Sans 9
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# kill focused window
|
|
|
|
bindsym $mod+apostrophe kill
|
2018-05-29 00:21:53 +00:00
|
|
|
bindsym $alt+F4 kill
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2016-08-03 16:09:30 +00:00
|
|
|
# change window focus
|
2016-10-12 14:03:09 +00:00
|
|
|
bindsym $mod+d focus left
|
|
|
|
bindsym $mod+n focus right
|
|
|
|
bindsym $mod+t focus up
|
|
|
|
bindsym $mod+h focus down
|
2016-08-03 16:09:30 +00:00
|
|
|
|
2016-03-31 02:06:44 +00:00
|
|
|
# move focused window
|
2016-10-12 14:03:09 +00:00
|
|
|
bindsym $mod+Shift+d move left
|
|
|
|
bindsym $mod+Shift+n move down
|
|
|
|
bindsym $mod+Shift+t move up
|
|
|
|
bindsym $mod+Shift+h move right
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# split in horizontal orientation
|
2016-10-12 14:03:09 +00:00
|
|
|
bindsym $mod+m split h
|
|
|
|
bindsym $mod+w split v
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# enter fullscreen mode for the focused container
|
2016-10-04 08:48:07 +00:00
|
|
|
bindsym $mod+Shift+f fullscreen toggle global
|
2016-03-31 02:06:44 +00:00
|
|
|
bindsym $mod+f fullscreen toggle
|
2016-10-04 23:32:57 +00:00
|
|
|
popup_during_fullscreen leave_fullscreen
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
2016-10-12 14:03:09 +00:00
|
|
|
bindsym $mod+p layout stacking
|
2016-03-31 02:06:44 +00:00
|
|
|
bindsym $mod+comma layout tabbed
|
|
|
|
bindsym $mod+period layout toggle split
|
|
|
|
|
|
|
|
# toggle tiling / floating
|
|
|
|
bindsym $mod+u floating toggle
|
2016-10-12 14:03:09 +00:00
|
|
|
bindsym $mod+e sticky toggle
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# focus the parent container
|
|
|
|
bindsym $mod+a focus parent
|
2016-10-12 14:03:09 +00:00
|
|
|
bindsym $mod+o focus child
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2016-10-04 23:32:57 +00:00
|
|
|
set $10 "10:"
|
|
|
|
|
2016-03-31 02:06:44 +00:00
|
|
|
# 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
|
2016-10-04 23:32:57 +00:00
|
|
|
bindsym $mod+0 workspace $10
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2016-08-03 16:09:30 +00:00
|
|
|
# move workspaces across screens
|
2018-05-29 00:21:53 +00:00
|
|
|
bindsym $mod+$alt+d move workspace to output left
|
|
|
|
bindsym $mod+$alt+n move workspace to output right
|
|
|
|
bindsym $mod+$alt+t move workspace to output up
|
|
|
|
bindsym $mod+$alt+h move workspace to output down
|
2016-08-03 16:09:30 +00:00
|
|
|
|
2016-03-31 02:06:44 +00:00
|
|
|
# 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
|
2016-10-04 23:32:57 +00:00
|
|
|
bindsym $mod+Shift+0 move container to workspace $10
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2016-10-12 14:03:55 +00:00
|
|
|
# opens logout/shutdown menu
|
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-05-01 13:09:45 +00:00
|
|
|
status_command i3blocks -c ~/.config/i3/blocks/config
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
workspace_buttons yes
|
|
|
|
strip_workspace_numbers yes
|
|
|
|
tray_output primary
|
2016-04-16 17:54:16 +00:00
|
|
|
tray_padding 2
|
|
|
|
height 28
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2017-11-26 00:59:45 +00:00
|
|
|
output primary
|
2016-04-16 17:54:16 +00:00
|
|
|
position top
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
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-08-03 16:08:38 +00:00
|
|
|
# Window rules
|
2017-08-24 13:52:09 +00:00
|
|
|
for_window [class="Pinentry"] floating enable
|
2016-09-12 09:19:31 +00:00
|
|
|
for_window [class="Pavucontrol"] floating enable
|
|
|
|
for_window [class="Blueman-manager"] floating enable
|
2016-08-03 16:08:38 +00:00
|
|
|
for_window [window_role="floating-term"] floating enable
|
2017-06-10 11:26:14 +00:00
|
|
|
for_window [window_role="pop-up"] floating enable
|
2016-08-03 16:08:38 +00:00
|
|
|
for_window [window_role="i3blocks-update-term"] floating enable
|
|
|
|
for_window [window_role="i3blocks-clock-term"] floating enable
|
2017-08-24 13:53:48 +00:00
|
|
|
for_window [title="^rofi$"] floating enable
|
2016-08-03 16:08:38 +00:00
|
|
|
|
2016-09-12 22:27:38 +00:00
|
|
|
new_window pixel 5
|
2016-04-19 15:43:25 +00:00
|
|
|
new_float none
|
|
|
|
|
2018-04-04 11:00:11 +00:00
|
|
|
gaps inner 9
|
2016-04-16 17:54:16 +00:00
|
|
|
gaps outer 1
|
2016-03-31 02:06:44 +00:00
|
|
|
#smart_gaps on
|
|
|
|
|
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
|
2018-02-24 11:08:40 +00:00
|
|
|
#bindsym $mod+Shift+p restart
|
2016-09-01 13:15:31 +00:00
|
|
|
bindsym $mod+c exec chromium
|
2016-08-03 16:08:38 +00:00
|
|
|
bindsym $mod+v exec "i3-sensible-terminal -e \\"$SHELL -c vim;$SHELL\\"
|
2016-09-12 09:19:42 +00:00
|
|
|
bindsym $mod+Ctrl+v exec "i3-sensible-terminal -r floating-term -e \\"$SHELL -c vim;$SHELL\\"
|
2016-03-31 02:06:44 +00:00
|
|
|
bindsym Mod1+Tab exec ~/.config/i3/alt-tab.sh
|
|
|
|
bindsym $mod+Return exec i3-sensible-terminal
|
2016-08-03 16:08:38 +00:00
|
|
|
bindsym $mod+Ctrl+Return exec i3-sensible-terminal -r floating-term --geometry 96x30
|
2016-10-12 14:04:10 +00:00
|
|
|
bindsym $mod+Shift+Return exec i3-sensible-terminal -d "`xcwd`"
|
2016-10-20 23:02:11 +00:00
|
|
|
bindsym $mod+Ctrl+Shift+Return exec i3-sensible-terminal -r floating-term --geometry 96x30 -d "`xcwd`"
|
2016-03-31 02:06:44 +00:00
|
|
|
bindsym $mod+l exec ~/.config/i3/lock.sh
|
2017-01-16 16:38:04 +00:00
|
|
|
# -fg "#CCD3DAE3" -bg "#CC383C4A" -hlbg "#CC5294E2"
|
2017-05-21 15:22:02 +00:00
|
|
|
bindsym $mod+space exec "pkill rofi; rofi -show run -sidebar-mode -terminal i3-sensible-terminal -normal-window"
|
2018-02-24 11:08:40 +00:00
|
|
|
bindsym $mod+Shift+p exec rofi-pass
|
|
|
|
bindsym $mod+Shift+e exec rofi-emoji
|
2016-08-26 20:35:50 +00:00
|
|
|
bindsym --release Print exec imgur-screenshot
|
|
|
|
bindsym --release $mod+Print exec imgur-screenshot -f
|
2018-05-29 00:21:53 +00:00
|
|
|
bindsym $mod+$alt+space exec --no-startup-id ~/.config/i3/cycleaudio.py && pkill -RTMIN+10 i3blocks
|
2018-03-29 10:18:48 +00:00
|
|
|
bindsym $mod+numbersign exec "termite -e 'sh -c xclip\ -o\ |\ gpg\ --decrypt\ 2>&1\ \;\ $SHELL'"
|
2018-03-29 10:19:08 +00:00
|
|
|
bindsym $mod+r exec "bash -c 'pwgen -nc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i'"
|
2016-12-04 13:54:33 +00:00
|
|
|
bindsym $mod+g exec "LINK=$(gist -PRpc); notify-send -c transfer \\"<a href=\\\\"$LINK\\\\">$LINK</a>\\""
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# 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
|
2018-02-22 12:43:25 +00:00
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1000
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1000
|
|
|
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
2016-12-04 13:58:25 +00:00
|
|
|
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 && pkill -RTMIN+12 i3blocks
|
|
|
|
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && pkill -RTMIN+12 i3blocks
|
2018-02-22 12:43:25 +00:00
|
|
|
exec --no-startup-id "ip monitor | while read; do pkill -RTMIN+15 i3blocks; done"
|
2016-03-31 02:06:44 +00:00
|
|
|
|
|
|
|
# app launch shortcuts
|
2016-04-30 13:39:05 +00:00
|
|
|
exec --no-startup-id ~/.config/i3/disable-standby-fs.py
|
2018-04-21 00:33:52 +00:00
|
|
|
exec --no-startup-id feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
|
2017-10-03 10:35:02 +00:00
|
|
|
exec --no-startup-id xautolock -time 5 -locker ~/.config/i3/lock.sh -nocloseout -nocloseerr
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2016-08-03 16:09:52 +00:00
|
|
|
# startup programs
|
2016-03-31 21:33:52 +00:00
|
|
|
exec --no-startup-id pulseaudio
|
2017-10-03 09:20:42 +00:00
|
|
|
exec --no-startup-id nextcloud
|
2017-10-03 11:00:56 +00:00
|
|
|
exec --no-startup-id nm-applet
|
2016-03-31 21:33:52 +00:00
|
|
|
exec --no-startup-id blueman-applet
|
|
|
|
exec --no-startup-id redshift
|
2016-04-16 17:01:03 +00:00
|
|
|
exec --no-startup-id xbindkeys
|
2017-10-03 09:20:42 +00:00
|
|
|
exec --no-startup-id solaar
|
2017-10-10 10:00:34 +00:00
|
|
|
exec --no-startup-id pullover
|
2016-05-15 00:08:42 +00:00
|
|
|
exec --no-startup-id onboard
|
2016-10-04 23:32:57 +00:00
|
|
|
exec --no-startup-id touchegg
|
2016-03-31 21:33:52 +00:00
|
|
|
exec --no-startup-id compton -b --config ~/.config/compton.conf
|
2016-09-01 13:15:31 +00:00
|
|
|
exec --no-startup-id chromium --no-startup-window
|
2016-03-31 02:06:44 +00:00
|
|
|
|
2016-10-04 23:32:57 +00:00
|
|
|
exec i3-msg 'workspace 1; exec chromium'
|
2016-05-01 13:10:48 +00:00
|
|
|
|
|
|
|
# vim:ft=i3
|