i3 update

This commit is contained in:
2025-05-26 18:29:43 +02:00
parent 9e4ed36c74
commit afa96afc9c
12 changed files with 223 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
; the top polybar
[bar/top]
width = 100%
height = 24pt
radius = 0
line-size = 3pt
border-size = 0pt
font-0 = JetBrainsMonoNLNerdFont;2
background = ${colours.background}
foreground = ${colours.foreground}
separator-foreground = ${colours.disabled}
border-color = #00000000
module-margin = 1
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
separator = |
padding-left = 0
modules-left = workspaces window
modules-center = date time
modules-right = systray enpnative enpusbc wifi volume battery
padding-right = 1
[settings]
screenchange-reload = true
pseudo-transparency = true

View File

@@ -0,0 +1,42 @@
; using the gruvbox colour palette in ARGB format
[palette]
background0 = #BA1D2021
background1 = #BA32302F
background2 = #BA3C3836
background3 = #BA504945
background4 = #BA665C54
background5 = #BA7C6F64
foreground0 = #FFFBF1C7
foreground1 = #FFFBF1C7
foreground2 = #FFEBDBB2
foreground3 = #FFD5C4A1
foreground4 = #FFBDAE93
foreground5 = #FFA89984
red = #FFCC241D
green = #FF98971A
yellow = #FFD79921
blue = #FF458588
purple = #FFB16286
aqua = #FF689D6A
orange = #FFD65D0E
red-bright = #FFFB4934
green-bright = #FFB8BB26
yellow-bright = #FFFABD2F
blue-bright = #FF83A598
purple-bright = #FFD3869B
aqua-bright = #FF8EC07C
orange-bright = #FFFE8019
; colour definitions
[colours]
background = ${palette.background2}
background-alt = ${palette.background3}
foreground = ${palette.foreground3}
primary = ${palette.yellow-bright}
secondary = ${palette.aqua-bright}
alert = ${palette.red}
disabled = ${palette.background5}
; include directories for more modular configuration
include-directory = modules/
include-directory = bars/

7
.config/polybar/launch.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# quit already running instances (if ipc is enabled)
polybar-msg cmd quit
# killall -q polybar
polybar top & disown
# polybar bot & disown

View File

@@ -0,0 +1,34 @@
[module/battery]
type = internal/battery
full-at = 100
low-at = 10
battery = BAT1
adapter = ACAD
time-format = %H:%M
poll-interval = 5
format-charging = <animation-charging> <label-charging>
label-charging = %percentage%%
animation-charging-0 = 󰢜
animation-charging-1 = 󰂇
animation-charging-2 = 󰢝
animation-charging-3 = 󰢞
animation-charging-4 = 󰂋
animation-charging-framerate = 1000
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
ramp-capacity-0 = 󰁺
ramp-capacity-1 = 󰁼
ramp-capacity-2 = 󰁾
ramp-capacity-3 = 󰂀
ramp-capacity-4 = 󰂂
format-full = <label-full>
label-full = 󰂄 %percentage%%
format-low = <animation-low> <label-low>
label-low = %percentage%%
animation-low-0 = 󰂃
animation-low-1 = 󰁺
animation-low-framerate = 500

View File

@@ -0,0 +1,15 @@
[datetime]
type = internal/date
label = %date%
label-foreground = ${colours.primary}
[module/date]
inherit = datetime
interval = 60
date = %d/%m/%Y
[module/time]
inherit = datetime
interval = 1
date = %H:%M
date-alt = %H:%M:%S

View File

@@ -0,0 +1,31 @@
[network]
type = internal/network
interval = 5
[module/wifi]
inherit = network
interface = wlp0s20f3
interface-type = wireless
format-connected = <ramp-signal>
ramp-signal-0 = 󰤯
ramp-signal-1 = 󰤟
ramp-signal-2 = 󰤢
ramp-signal-3 = 󰤥
ramp-signal-4 = 󰤨
format-disconnected = 󰤭
[ethernet]
inherit = network
interface-type = wired
format-connected = 󰈀
format-disconnected =
[module/enpnative]
inherit = ethernet
interface = enp2s0
[module/enpusbc]
inherit = ethernet
interface = enp0s20f0u3u1

View File

@@ -0,0 +1,4 @@
[module/systray]
type = internal/tray
format-margin = 8pt
tray-spacing = 16pt

View File

@@ -0,0 +1,8 @@
[module/volume]
type = internal/pulseaudio
format-volume-prefix = " "
format-volume-prefix-foreground = ${colours.primary}
format-volume = <label-volume>
label-volume = %percentage%%
label-muted = muted
label-muted-foreground = ${colours.disabled}

View File

@@ -0,0 +1,3 @@
[module/window]
type = internal/xwindow
label = %title:0:60:...%

View File

@@ -0,0 +1,18 @@
[module/workspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colours.background-alt}
label-active-underline = ${colours.primary}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
label-urgent-background = ${colours.alert}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colours.disabled}
label-empty-padding = 1