diff --git a/files/i3/.config/i3/config b/files/i3/.config/i3/config index c4f4367..de42039 100644 --- a/files/i3/.config/i3/config +++ b/files/i3/.config/i3/config @@ -34,9 +34,12 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- xlock \ -mode space \ -echokeys \ -font "-*-*-*-r-*-*-34-*-*-*-*-*-*-*" \ - -planfont "-*-*-*-r-*-*-34-*-*-*-*-*-*-*" + -planfont "-*-*-*-r-*-*-34-*-*-*-*-*-*-*" \ + -startCmd "dunstctl set-paused true" \ + -endCmd "dunstctl set-paused false" bindsym $mod+Ctrl+BackSpace exec --no-startup-id loginctl lock-session +bindsym $mod+Ctrl+Shift+BackSpace exec --no-startup-id systemctl suspend # #### Input @@ -62,7 +65,6 @@ exec --no-startup-id blueman-applet # bindsym $mod+a exec --no-startup-id pavucontrol -t 1 -for_window [class="Pavucontrol"] fullscreen enable # #### Notifications diff --git a/files/polybar/.config/polybar/config.ini b/files/polybar/.config/polybar/config.ini index 3ed165d..011a790 100644 --- a/files/polybar/.config/polybar/config.ini +++ b/files/polybar/.config/polybar/config.ini @@ -1,3 +1,4 @@ +# require polybar > 3.7 [colors] bg = #2f383e alt = #56635f @@ -8,9 +9,10 @@ alert = #e67e80 [bar/main] monitor = eDP-1 +enable-ipc = true width = 100% -height = 50 +height = 45 radius = 0 line-size = 5 @@ -24,14 +26,15 @@ font-0 = "SFMono Nerd Font:weight=bold:pixelsize=20;5" modules-left = i3 title modules-center = -modules-right = backlight battery time +modules-right = tray updates backlight time battery -tray-position = right +tray-position = adaptive tray-maxsize = 30 +tray-padding = 20 [module/title] type = internal/xwindow - +label-maxlen = 60 label-foreground = ${colors.alt} [module/i3] @@ -77,7 +80,7 @@ type = internal/date interval = 5 label = "%time%" -label-radius = 10 +label-foreground = ${colors.accent} time = %H:%M time-alt = %a %d.%b @@ -88,18 +91,22 @@ type = internal/battery battery = BAT1 adapter = ADP1 -low-at = 5 +low-at = 10 full-at = 99 +time-format = %H:%M format-charging = format-discharging = format-full = -format-low = +format-low = label-charging = %percentage%% -label-discharging = %percentage%% +label-discharging = %percentage%% (%time%) label-full = %percentage%% -label-low = %percentage%% +label-low = %percentage%% (%time%) + +label-low-foreground = ${colors.alert} +animation-low-foreground = ${colors.alert} ramp-capacity-0 = " " ramp-capacity-1 = " " @@ -115,7 +122,7 @@ animation-charging-4 = " " animation-charging-framerate = 750 animation-low-0 = ! -animation-low-1 = +animation-low-1 = " " animation-low-framerate = 200 [module/backlight] @@ -123,3 +130,12 @@ type = internal/backlight card = intel_backlight label = " %percentage%%" + +[module/updates] +type = custom/script +exec = "dnf -q check-update | wc -l" +label = " %output%" +interval = 600 + +[module/tray] +type = internal/tray diff --git a/files/polybar/.config/polybar/launch.sh b/files/polybar/.config/polybar/launch.sh index 88b3aa4..3c362de 100755 --- a/files/polybar/.config/polybar/launch.sh +++ b/files/polybar/.config/polybar/launch.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash polybar-msg cmd quit -killall -q polybar # Launch bar1 and bar2 echo "---" | tee -a /tmp/polybar.log