dotfiles/i3/config
2022-11-13 14:44:35 +01:00

95 lines
3.2 KiB
Text

# Plasma compatibility improvements
for_window [title="Desktop - Plasma"] kill, floating enable, border none
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [class="yakuake"] floating enable
for_window [class="systemsettings"] floating enable
for_window [class="plasmashell"] floating enable;
for_window [class="Plasma"] floating enable; border none
for_window [title="plasma-desktop"] floating enable; border none
for_window [title="win7"] floating enable; border none
for_window [class="krunner"] floating enable; border none
for_window [class="Kmix"] floating enable; border none
for_window [class="Klipper"] floating enable; border none
for_window [class="Plasmoidviewer"] floating enable; border none
# for_window [class="(?i)*nextcloud*"] floating disable
for_window [class="plasmashell" window_type="notification"] border none, move position 70 ppt 81 ppt no_focus [class="plasmashell" window_type="notification"]
# picom as compositor
exec_always --no-startup-id picom -cb
# dunst as notification daemon
# also fixes slack freeze problem on messages
exec_always --no-startup-id dunst
# fix scaling
exec "xrandr --dpi 144"
# exec --no-startup-id nm-applet
# nitrogen handles the desktop background
exec --no-startup-id "nitrogen --restore"
# dex could be used for autostarting applications. not used right now
exec --no-startup-id dex --autostart --environment i3
# autostart hotkey daemon
exec_always --no-startup-id sxhkd -c $HOME/.config/sxhkd/sxhkdrc
focus_follows_mouse no
font pango:Noto Sans 14
set $mod Mod4
set $locker i3lock -i $HOME/Wallpaper/lockscreen.png && sleep 1
bindsym $mod+Ctrl+Shift+l exec --no-startup-id $locker
bindsym $mod+Return exec "konsole --hide-menubar"
bindsym $mod+Shift+Return exec --no-startup-id "konsole -e ranger"
bindsym $mod+Shift+q kill
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
set $mode_exit exit: [l]ock, l[o]gout, [r]eboot, [s]hutdown
mode "$mode_exit" {
bindsym l exec --no-startup-id $locker, mode "default"
bindsym o exec --no-startup-id i3-msg exit, mode "default"
bindsym r exec --no-startup-id reboot, mode "default"
bindsym s exec --no-startup-id systemctl poweroff -i, mode "default"
bindsym Escape mode "default"
bindsym Return mode "default"
}
bindsym $mod+Shift+e mode "$mode_exit"
bindsym $mod+q layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+v split h
bindsym $mod+s split v
bindsym $mod+a focus parent
bindsym $mod+f fullscreen toggle
# class border backgr. text indicator child_border
client.focused #b53c00 #ff5500 #ffffff #55ff00 #ff5500
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #900000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff
# high dpi scaling
bar {
status_command i3status
position top
}
# go to urgent workspace
bindsym $mod+x [urgent=latest] focus
# autostart
set $messenger_workspace "10"
assign [class="^TelegramDesktop$"] $messenger_workspace
assign [class="^Slack$"] $messenger_workspace
assign [class="^firefox$"] "1"