112 lines
4 KiB
Text
112 lines
4 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"]
|
|
|
|
# no title bars
|
|
default_border pixel 4
|
|
default_floating_border pixel 4
|
|
|
|
gaps inner 10
|
|
gaps outer 5
|
|
smart_borders on
|
|
|
|
# picom as compositor
|
|
exec_always --no-startup-id picom --config $HOME/.config/picom/picom.conf -b
|
|
# dunst as notification daemon
|
|
# also fixes slack freeze problem on messages
|
|
exec_always --no-startup-id dunst
|
|
# fix scaling
|
|
exec --no-startup-id "xrandr --dpi 120"
|
|
# ibus for easy unicode input support
|
|
exec_always --no-startup-id "ibus-daemon -drx --panel /usr/lib/ibus/ibus-ui-gtk3"
|
|
exec --no-startup-id nm-applet
|
|
|
|
exec --no-startup-id /usr/lib/polkit-kde-authentication-agent-1 &
|
|
|
|
# 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
|
|
|
|
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
|
|
|
focus_follows_mouse no
|
|
|
|
font pango:Noto Sans 14
|
|
|
|
set $mod Mod4
|
|
|
|
set $locker /usr/bin/i3lock
|
|
bindsym $mod+Ctrl+Shift+l exec --no-startup-id loginctl lock-session
|
|
exec --no-startup-id xset s 300
|
|
exec --no-startup-id xset dpms 600
|
|
exec --no-startup-id xss-lock -- i3lock -n &
|
|
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 10%-
|
|
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s +10%
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5%
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
|
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
|
|
|
|
bindsym $mod+Return exec --no-startup-id "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
|
|
|
|
# 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"
|