122 lines
3.7 KiB
Django/Jinja
122 lines
3.7 KiB
Django/Jinja
# vi:syntax=conf
|
|
# i3 config file (v4)
|
|
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
|
|
|
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
|
|
set $mod Mod4
|
|
|
|
# set default desktop layout (default is tiling)
|
|
# workspace_layout tabbed <stacking|tabbed>
|
|
|
|
# Configure border style <normal|1pixel|pixel xx|none|pixel>
|
|
new_window pixel 2
|
|
new_float normal
|
|
|
|
# Hide borders
|
|
hide_edge_borders both
|
|
|
|
|
|
|
|
|
|
|
|
mouse_warping output
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Workspace names
|
|
set $WS1 1
|
|
set $WS2 2
|
|
set $WS3 3
|
|
set $WS4 4
|
|
set $WS5 5
|
|
set $WS6 6
|
|
set $WS7 7
|
|
set $WS8 8
|
|
set $WS9 9
|
|
set $WS10 10
|
|
|
|
# Workspace output
|
|
{% set screens = x11_screens | default(['DEFAULT']) %}
|
|
{% for i in range(1, 11) %}
|
|
workspace "$WS{{ i }}" output {{ screens[(i - 1) % (screens | length)] }}
|
|
{% endfor %}
|
|
|
|
|
|
|
|
# Default layout = tabs, since I mostly exclusively use them
|
|
workspace_layout tabbed
|
|
|
|
# Open specific applications in floating mode
|
|
for_window [title="pacmixer"] floating enable border pixel 2
|
|
for_window [class="Firefox"] layout tabbed # Doesn't seem to work anymore
|
|
for_window [class="qutebrowser"] layout tabbed
|
|
|
|
for_window [window_role="pop-up"] floating enable
|
|
for_window [window_role="task_dialog"] floating enable
|
|
for_window [ title="^pdfpc.*" window_role="presenter" ] move to output left, fullscreen
|
|
for_window [ title="^pdfpc.*" window_role="presentation" ] move to output right, fullscreen
|
|
|
|
# switch to workspace with urgent window automatically
|
|
for_window [urgent=latest] focus
|
|
|
|
# Set shut down, restart and locking features
|
|
set $locker $HOME/.config/i3/lock
|
|
|
|
set $mode_screen Screen setup [A] Auto [L] Load [S] Save [R] Remove [D] Default
|
|
"$mod+t" = "mode "$mode_screen"";
|
|
mode "$mode_screen" {
|
|
"a" = "exec autorandr --change --force, mode "default"";
|
|
"l" = "exec ~/.config/i3/autorandrloadmenu, mode "default"";
|
|
"s" = "exec ~/.config/i3/autorandrsavemenu, mode "default"";
|
|
"r" = "exec ~/.config/i3/autorandrremovemenu, mode "default"";
|
|
"d" = "exec ~/.config/i3/autorandrdefaultmenu, mode "default"";
|
|
|
|
# back to normal: Enter or Escape
|
|
"Return" = "mode "default"";
|
|
"Escape" = "mode "default"";
|
|
}
|
|
|
|
# Screen temperature ("redness") setting
|
|
"$mod+y" = "mode "$mode_temp"";
|
|
set $mode_temp Temperature [R] Red [D] Dust storm [C] Campfire [O] Normal [A] All nighter [B] Blue
|
|
mode "$mode_temp" {
|
|
"r" = "exec sct 1000";
|
|
"d" = "exec sct 2000";
|
|
"c" = "exec sct 4500";
|
|
"o" = "exec sct";
|
|
"a" = "exec sct 8000";
|
|
"b" = "exec sct 10000";
|
|
|
|
# back to normal: Enter or Escape
|
|
"Return" = "mode "default"";
|
|
"Escape" = "mode "default"";
|
|
}
|
|
|
|
|
|
# Inactivity settings
|
|
exec --no-startup-id xautolock -time 10 -locker 'xset dpms force standby' -killtime 1 -killer '$locker'
|
|
"$mod+F1" = "exec --no-startup-id sh -c "sleep .25 && xset dpms force off"";
|
|
"$mod+F4" = "exec --no-startup-id xautolock -disable";
|
|
"$mod+F5" = "exec --no-startup-id xautolock -enable";
|
|
|
|
|
|
# Autostart applications
|
|
#exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Password remembering
|
|
#exec --no-startup-id gnome-keyring-daemon # Password remembering
|
|
# exec --no-startup-id urxvtd -q -f # urxvt daemon
|
|
{% if auto_numlock %}
|
|
exec --no-startup-id numlockx on # Activate Num lock
|
|
{% endif %}
|
|
exec --no-startup-id unclutter -root # Hide mouse cursor after some time
|
|
#exec --no-startup-id dunst # Notifications (handled by systemd)
|
|
exec --no-startup-id keynav # Keyboard cursor controller
|
|
#exec --no-startup-id mpd # Music Player Daemon (handled by systemd)
|
|
exec --no-startup-id autorandr --change --force # Screen configuration and everything that depends on it
|
|
{% if has_battery %}
|
|
exec --no-startup-id ~/.config/i3/batteryNotify -d # Battery state notification
|
|
{% endif %}
|
|
|