i3/polybar: pimp looks

This commit is contained in:
Marco Thomas
2023-02-16 22:34:06 +01:00
parent 2d4ff7ccde
commit 2771cfbf27
3 changed files with 30 additions and 13 deletions

View File

@@ -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

View File

@@ -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 = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
format-low = <label-low> <animation-low>
format-low = <animation-low> <label-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

View File

@@ -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