update_0.1

This commit is contained in:
2026-01-17 07:00:03 +04:00
commit 76f2dffd62
29 changed files with 636 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
[bar/base]
monitor = ${env:MONITOR:}
width = 100%
height = 28pt
radius = 8
dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-top-size = 8pt
border-left-size = 8pt
border-right-size = 8pt
border-color = #00000000
padding-left = 1
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = monospace;2
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
[bar/dvi]
inherit = bar/base
modules-left = i3
modules-right = filesystem pulseaudio cpu memory temperature nvidia time xkeyboard
[bar/hdmi]
inherit = bar/base
modules-left = i3
modules-center = time date
modules-right = pulseaudio xkeyboard systray
+9
View File
@@ -0,0 +1,9 @@
[colors]
background = #992d2d2d
background-alt = #3d3d3d
foreground = #ffffff
primary = #00afff
secondary = #969696
alert = #ff4f4f
disabled = #969696
urgent = #6b8e23
+4
View File
@@ -0,0 +1,4 @@
include-file = $HOME/.config/polybar/colors.ini
include-file = $HOME/.config/polybar/bar.ini
include-file = $HOME/.config/polybar/module.ini
include-file = $HOME/.config/polybar/settings.ini
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Terminate already running bar instances
# If all your bars have ipc enabled, you can use
polybar-msg cmd quit
# Otherwise you can use the nuclear option:
# killall -q polybar
# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
MONITOR=HDMI-0 polybar hdmi 2>&1 | tee -a /tmp/polybar1.log & disown
MONITOR=DVI-I-1 polybar dvi 2>&1 | tee -a /tmp/polybar2.log & disown
#polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
echo "Bars launched..."
+135
View File
@@ -0,0 +1,135 @@
[module/i3]
type = internal/i3
pin-workspaces = true
show-urgent = true
wrapping = false
format = <label-state> <label-mode>
label-mode = %mode%
label-mode-padding = 1
label-mode-background = ${colors.primary}
label-mode-foreground = ${colors.foreground}
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline = ${colors.primary}
label-focused-padding = 1
label-unfocused = %name%
label-unfocused-padding = 1
label-visible = %index%
label-visible-underline = ${colors.secondary}
label-visible-padding = 1
label-urgent = %name%
label-urgent-background = ${colors.urgent}
label-urgent-padding = 1
[module/systray]
type = internal/tray
tray-spacing = 10px
tray-padding = 0px
tray-size = 45%
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
warn-percentage = 90
label-mounted = %free%
label-warn = %free%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
format-mounted = <label-mounted>
format-mounted-prefix = "/: "
format-mounted-prefix-foreground = ${colors.primary}
format-warn = <label-warn>
format-warn-prefix = "root: "
format-warn-prefix-foreground = ${colors.primary}
format-warn-foreground = ${colors.alert}
[module/pulseaudio]
type = internal/pulseaudio
label-volume = %percentage%%
label-muted = muted
label-muted-foreground = ${colors.disabled}
format-volume-prefix = "vol: "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>
[module/xkeyboard]
type = internal/xkeyboard
label-layout = %layout%
label-layout-foreground = ${colors.primary}
label-indicator-on-capslock = "caps+"
label-indicator-on-numlock = "num+"
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
warn-percentage = 90
label = %percentage_used%%
label-warn = %percentage_used%%
format = <label>
format-prefix = "ram: "
format-prefix-foreground = ${colors.primary}
format-warn = <label-warn>
format-warn-foreground = ${colors.alert}
format-warn-prefix = "ram: "
format-warn-prefix-foreground = ${colors.primary}
[module/cpu]
type = internal/cpu
interval = 0.5
warn-percentage = 90
label = %percentage%%
label-warn = %percentage%%
format = <label>
format-prefix = "cpu: "
format-prefix-foreground = ${colors.primary}
format-warn = <label-warn>
format-warn-foreground = ${colors.alert}
format-warn-prefix = "cpu: "
format-warn-prefix-foreground = ${colors.primary}
[date-base]
type = internal/date
interval = 1
label = %date%
label-foreground = ${colors.primary}
[module/time]
inherit = date-base
date = %H:%M
[module/date]
inherit = date-base
date = %d/%m/%Y
[module/temperature]
type = internal/temperature
interval = 1
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
warn-temperature = 80
label = %temperature-c%
label-warn = %temperature-c%
format = <label>
format-prefix = "cpu temp: "
format-prefix-foreground = ${colors.primary}
format-warn = <label-warn>
format-warn-prefix = "cpu temp: "
format-warn-prefix-foreground = ${colors.primary}
format-warn-foreground = ${colors.alert}
[module/nvidia]
type = custom/script
interval = 2
exec = TEMP=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits); echo "$TEMP°C"; [ $TEMP -lt 80 ]
label-fail = %output%
format = <label>
format-prefix = "gpu temp: "
format-prefix-foreground = ${colors.primary}
format-fail = <label-fail>
format-fail-prefix = "gpu temp: "
format-fail-prefix-foreground = ${colors.primary}
format-fail-foreground = ${colors.alert}
+3
View File
@@ -0,0 +1,3 @@
[settings]
screenchange-reload = true
pseudo-transparency = true