mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-08-15 12:59:28 +02:00
added polybar config merge
This commit is contained in:
+90
-258
@@ -23,213 +23,75 @@ border = ${xrdb:i3_focused}
|
||||
urgent = ${xrdb:i3_urgent}
|
||||
focused = ${xrdb:i3_focused}
|
||||
unfocused = ${xrdb:foreground}
|
||||
[bar/master]
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
fixed-center = true
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;1
|
||||
line-size = 1
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
padding= 2
|
||||
separator =|
|
||||
override-redirect = true
|
||||
|
||||
; Bars
|
||||
[bar/border]
|
||||
inherit="bar/master"
|
||||
border-size=2
|
||||
border-color=${colors.border}
|
||||
radius = 15.0
|
||||
|
||||
[bar/floating]
|
||||
modules-left = sysinfo button_pavucontrol
|
||||
modules-center = cava
|
||||
inherit="bar/border"
|
||||
bottom = true
|
||||
enable-ipc = false
|
||||
height = 40px
|
||||
width = 60%
|
||||
;modules-center = cava clock playerctl_long
|
||||
modules-center = cava
|
||||
modules-left = floating_popup_button pavucontrol_button
|
||||
modules-right = sensors_cpu_pc nvgpu memory
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 60%
|
||||
height = 40px
|
||||
offset-x = 20%
|
||||
offset-y = 8px
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding= 2
|
||||
border-size=2
|
||||
border-color=${colors.border}
|
||||
radius = 15.0
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;1
|
||||
enable-ipc = false
|
||||
bottom = true
|
||||
|
||||
override-redirect = true
|
||||
tray-position = left
|
||||
tray-padding = 3
|
||||
tray-offset-x=86
|
||||
tray-offset-y = 4px
|
||||
tray-detached = true
|
||||
tray-maxsize = 15
|
||||
tray-offset-x=86
|
||||
tray-offset-y = 4px
|
||||
tray-padding = 3
|
||||
tray-position = left
|
||||
tray-scale = 0.8
|
||||
|
||||
[bar/floating_sysinfo]
|
||||
modules-left = disk_short_pc checkupdates ovpn nvpn eth_pc
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 22%
|
||||
[bar/floating_popup]
|
||||
inherit="bar/border"
|
||||
bottom = true
|
||||
enable-ipc = true
|
||||
height = 40px
|
||||
width = 22%
|
||||
modules-left = disk_short_pc checkupdates ovpn nvpn eth_pc
|
||||
offset-x = 20%
|
||||
offset-y = 58px
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
forFeground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;1
|
||||
enable-ipc = true
|
||||
bottom = true
|
||||
border-size=2
|
||||
border-color=${colors.border}
|
||||
radius = 15.0
|
||||
override-redirect = true
|
||||
|
||||
[bar/floating_wm]
|
||||
modules-center = i3
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 100%
|
||||
height = 15
|
||||
fixed-center = true
|
||||
background = ${colors.transparent}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding= 4
|
||||
inherit="bar/master"
|
||||
font-0 = dark forest:style=Bold:fontformat=truetype:pixelsize=10;4
|
||||
font-1 = Material Design Icons:pixelsize=8.25:antialias=true;4
|
||||
enable-ipc = true
|
||||
bottom = false
|
||||
radius = 15.0
|
||||
wm-restack = i3
|
||||
override-redirect = true
|
||||
|
||||
; Bars Yoga3
|
||||
|
||||
[bar/yoga3_primary_landscape]
|
||||
; not used: songname menu-media xbacklightbuttons
|
||||
modules-left = i3touchmenu checkupd ovpn nvpn usbmodem1 usbmodem2 usbmodem3 usbmodem4 eth_yoga3 wlan
|
||||
modules-center = xbacklight i3 volume
|
||||
modules-right = sensors_cpu_yoga3 memory disk_short_yoga3 battery clock
|
||||
monitor = ${env:MONITOR:eDP1}
|
||||
height = 15
|
||||
width = 100%
|
||||
bottom=false
|
||||
height = 20
|
||||
fixed-center = true
|
||||
background = #000
|
||||
foreground = #fff
|
||||
line-size = 3
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Font Font Awesome 5 Free Solid:style=Solid:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
font-2 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1.0
|
||||
enable-ipc = true
|
||||
modules-center = i3
|
||||
padding= 4
|
||||
wm-restack = i3; Module popup
|
||||
|
||||
[bar/yoga3_primary_portrait]
|
||||
; not used: songname menu-media update disk eth
|
||||
modules-left = i3touchmenu xbacklightbuttons ovpn nvpn usbmodem1 usbmodem2 usbmodem3 wlanshort
|
||||
modules-center = xbacklight i3 volume
|
||||
modules-right = cpu memory temperature batteryshort clock
|
||||
monitor = ${env:MONITOR:eDP1}
|
||||
width = 100%
|
||||
height = 20
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Font Font Awesome 5 Free Solid:style=Solid:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
font-2 = Font Awesome 5 Free:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1.0
|
||||
enable-ipc = true
|
||||
|
||||
; Bars PC
|
||||
|
||||
[bar/pc_primary_landscape]
|
||||
modules-left = disk_short_pc checkupdates ovpn nvpn eth_pc playerctl
|
||||
modules-center = i3
|
||||
modules-right = sensors_cpu_pc nvgpu memoryclock
|
||||
monitor = ${env:MONITOR:DP-4}
|
||||
width = 100%
|
||||
height = 18
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 1
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;2
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1
|
||||
enable-ipc = true
|
||||
override-redirect = true
|
||||
|
||||
[bar/pc_vnc_landscape]
|
||||
modules-left = disk_short_pc checkupd ovpn nvpn eth_pc
|
||||
modules-center = i3
|
||||
modules-right = sensors_cpu_pc memoryclock
|
||||
monitor = ${env:MONITOR:VNC-0}
|
||||
width = 100%
|
||||
height = 18
|
||||
fixed-center = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 3
|
||||
line-color = #000
|
||||
separator =|
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
padding-right= 2
|
||||
font-0 = Hack Nerd Font:fontformat=truetype:pixelsize=10;1
|
||||
font-1 = Material Design Icons:fontformat=truetype:pixelsize=10:antialias=true;0
|
||||
tray-position = left
|
||||
tray-padding = 9
|
||||
tray-detached = false
|
||||
tray-maxsize = 15
|
||||
tray-background = ${root.background}
|
||||
tray-scale = 1.0
|
||||
enable-ipc = true
|
||||
|
||||
; Modules
|
||||
|
||||
[module/button_pavucontrol]
|
||||
type = custom/text
|
||||
content = |
|
||||
click-left = "setsid pavucontrol"
|
||||
click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh"
|
||||
[module/floating_popup_button]
|
||||
type = custom/script
|
||||
interval = 0.5
|
||||
format = <label>
|
||||
label-maxlen = 5
|
||||
exec = ~/.config/polybar/scripts/polypopup.sh
|
||||
click-left = ~/.config/polybar/scripts/polypopup.sh --toggle
|
||||
content =
|
||||
|
||||
; Module Date
|
||||
|
||||
@@ -260,8 +122,22 @@ click-right = "setsid alacritty -e bash ~/.config/polybar/scripts/modules/update
|
||||
click-middle = "setsid alacritty -e bash ~/.config/polybar/scripts/modules/update.sh --update-noconfirm"
|
||||
|
||||
; Module HW-Statistics
|
||||
; For 'sensors_'-modules, run 'sensors-detect' from 'lm_sensors' first
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/nvgpu]
|
||||
type = custom/script
|
||||
interval = 2
|
||||
format = <label>
|
||||
label-maxlen=15
|
||||
label-ellipsis=true
|
||||
exec = "echo $((nvidia-smi -q | grep "Gpu" | awk -F':' '{print $2}' | tr -d ' '; echo ", "; nvidia-smi -q | grep "GPU Current Temp" | awk -F':' '{print $2}' | tr -d ' C' ; echo '°') | cat | tr -d '\n')"
|
||||
click-left = "setsid alacritty -e sh -c nvtop"
|
||||
|
||||
; run 'sensors-detect' from 'lm_sensors' first
|
||||
[module/sensors_cpu_pc]
|
||||
type = custom/script
|
||||
interval = 2
|
||||
@@ -280,21 +156,6 @@ label-ellipsis=true
|
||||
exec = "echo $((top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk -F '.' '{print 100 - $1}' ; echo '%, ' ; sensors | grep "Package id 0:" | awk -F' ' '{print $4}' | awk -F'.' '{print $1}' | tr -d '+'; echo '°') | tr -d '\n')"
|
||||
click-left = "setsid alacritty -e sh -c htop"
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
label = %percentage_used%%
|
||||
|
||||
[module/nvgpu]
|
||||
type = custom/script
|
||||
interval = 2
|
||||
format = <label>
|
||||
label-maxlen=15
|
||||
label-ellipsis=true
|
||||
;exec = "echo $(nvidia-settings -q GPUUtilization | awk -F'=' '{print $3}' | awk '{print $1}' | sed 's/\,/%/g')"
|
||||
exec = "echo $((nvidia-smi -q | grep "Gpu" | awk -F':' '{print $2}' | tr -d ' '; echo ", "; nvidia-smi -q | grep "GPU Current Temp" | awk -F':' '{print $2}' | tr -d ' C' ; echo '°') | cat | tr -d '\n')"
|
||||
click-left = "setsid alacritty -e sh -c nvtop"
|
||||
|
||||
; Module Network Interfaces
|
||||
|
||||
[module/wlan]
|
||||
@@ -304,11 +165,8 @@ interval = 3
|
||||
format-connected = <label-connected>
|
||||
label-connected = %ifname%: %local_ip% [%essid%]
|
||||
|
||||
[module/wlanshort]
|
||||
type = internal/network
|
||||
interface = wlp2s0
|
||||
interval = 3
|
||||
format-connected = <label-connected>
|
||||
[module/wlan_short]
|
||||
inherit="module/wlan"
|
||||
label-connected = %essid%
|
||||
|
||||
[module/eth_pc]
|
||||
@@ -319,35 +177,26 @@ format-connected = <label-connected>
|
||||
label-connected = %local_ip%
|
||||
|
||||
[module/eth_yoga3]
|
||||
type = internal/network
|
||||
inherit="module/eth_pc"
|
||||
interface = enp0s31f6
|
||||
interval = 3
|
||||
format-connected = <label-connected>
|
||||
label-connected = eth: %local_ip%
|
||||
|
||||
[module/usbmodem1]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show enp0s20f0u1 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
exec = bash .config/polybar/scripts/modules/usbmodem.sh enp0s20f0u1
|
||||
|
||||
[module/usbmodem2]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show enp0s20f0u6 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
inherit="module/usbmodem1"
|
||||
exec = bash .config/polybar/scripts/modules/usbmodem.sh enp0s20f0u6
|
||||
|
||||
[module/usbmodem3]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show enp0s20f0u3 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
inherit="module/usbmodem1"
|
||||
exec = bash .config/polybar/scripts/modules/usbmodem.sh enp0s20f0u3
|
||||
|
||||
[module/usbmodem4]
|
||||
type = custom/script
|
||||
format = usb: <label>
|
||||
interval = 3
|
||||
exec = echo $(ip -4 addr show ens8u1u2 2>&1 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
|
||||
inherit="module/usbmodem1"
|
||||
exec = bash .config/polybar/scripts/modules/usbmodem.sh ens8u1u2
|
||||
|
||||
; Module VPN
|
||||
|
||||
@@ -360,11 +209,8 @@ label-ellipsis=true
|
||||
exec = echo $(nmcli con show --active | grep vpn | cut -c1-12 | tr -d ' ')
|
||||
|
||||
[module/nvpn]
|
||||
type = custom/script
|
||||
interval = 3
|
||||
inherit="module/ovpn"
|
||||
format = nvpn: <label>
|
||||
label-maxlen=50
|
||||
label-ellipsis=true
|
||||
exec = echo $(nordvpn status | grep -oP '(?<=Current server: ).*' | cut -f1 -d'.')
|
||||
|
||||
; Module Volume + Media
|
||||
@@ -380,15 +226,6 @@ format-muted-foreground = ${root.foreground}
|
||||
label-muted = x
|
||||
interval = 1
|
||||
|
||||
[module/sysinfo]
|
||||
type = custom/script
|
||||
interval = 0.5
|
||||
format = <label>
|
||||
label-maxlen = 5
|
||||
exec = ~/.config/polybar/scripts/polypopup.sh
|
||||
click-left = ~/.config/polybar/scripts/polypopup.sh --toggle
|
||||
content =
|
||||
|
||||
[module/playerctl]
|
||||
type = custom/script
|
||||
tail = true
|
||||
@@ -401,12 +238,7 @@ click-middle = "playerctl previous"
|
||||
inherit="module/playerctl"
|
||||
exec = bash ~/.config/polybar/scripts/modules/playerctl.sh 30
|
||||
|
||||
[module/cava]
|
||||
type = custom/script
|
||||
tail = true
|
||||
exec = python /home/sim/.config/polybar/scripts/modules/cava.py
|
||||
|
||||
[module/playerctl-buttons]
|
||||
[module/playerctl_buttons]
|
||||
type = custom/menu
|
||||
expand-right = true
|
||||
label-open =
|
||||
@@ -419,6 +251,17 @@ menu-0-1-exec = "playerctl play-pause"
|
||||
menu-0-2 =
|
||||
menu-0-2-exec = "playerctl next"
|
||||
|
||||
[module/pavucontrol_button]
|
||||
type = custom/text
|
||||
content = |
|
||||
click-left = "setsid pavucontrol"
|
||||
click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh"
|
||||
|
||||
[module/cava]
|
||||
type = custom/script
|
||||
tail = true
|
||||
exec = python /home/sim/.config/polybar/scripts/modules/cava.py
|
||||
|
||||
; Module Battery
|
||||
|
||||
[module/battery]
|
||||
@@ -431,12 +274,8 @@ label-full = bat: %percentage%%
|
||||
label-charging = bat: %percentage%% (+%consumption%W, %time%)
|
||||
label-discharging = bat: %percentage%% (-%consumption%W, %time%)
|
||||
|
||||
[module/batteryshort]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
poll-interval = 3
|
||||
adapter = ADP1
|
||||
full-at = 95
|
||||
[module/battery_short]
|
||||
inherit = "module/battery"
|
||||
label-full = bat: %percentage%%
|
||||
label-charging = bat: %percentage%%
|
||||
label-discharging = bat: %percentage%%
|
||||
@@ -448,7 +287,6 @@ type = custom/script
|
||||
format = <label>
|
||||
interval = 10
|
||||
exec = echo $(df -h / | tail +2 | awk -F ' ' '{print $3 " / " $2 " (" $5 ")"}' | tr -d 'G')
|
||||
|
||||
click-left = "setsid alacritty -e sh -c 'echo Disk overview... ; echo ; df -h -x tmpfs; echo ; read -p Done'"
|
||||
click-right = "setsid alacritty -e sh -c 'echo Scanning main disk ; echo ; ncdu --exclude /data / ; echo ; read -p Done!'"
|
||||
click-middle = "setsid alacritty -e sh -c 'echo Scanning full disk... ; echo ; sudo ncdu / ; echo ; read -p Done!'"
|
||||
@@ -458,11 +296,8 @@ inherit = "module/disk_short_pc"
|
||||
format = | <label>
|
||||
|
||||
[module/disk_short_yoga3]
|
||||
type = custom/script
|
||||
format = dsk: <label>
|
||||
interval = 10
|
||||
inherit = "module/disk_short_pc"
|
||||
exec = echo $(df -h / | tail +2 | awk -F ' ' '{print $3 " / " $2 " (" $5 ")"}' | tr -d 'G')
|
||||
click-left = "setsid alacritty -e sh -c 'ncdu /'"
|
||||
|
||||
; Module Backlight
|
||||
|
||||
@@ -471,7 +306,7 @@ type = internal/xbacklight
|
||||
format = <label>
|
||||
label = %percentage%
|
||||
|
||||
[module/xbacklightbuttons]
|
||||
[module/xbacklight_buttons]
|
||||
type = custom/menu
|
||||
expand-right = true
|
||||
label-open = blght
|
||||
@@ -481,9 +316,6 @@ menu-0-0 = -
|
||||
menu-0-0-exec = "xbacklight -dec 10; notify-send 'brightness down'"
|
||||
menu-0-1 = +
|
||||
menu-0-1-exec = "xbacklight -inc 10; notify-send 'brightness up'"
|
||||
|
||||
; Module Window Manager
|
||||
|
||||
[global/wm]
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
|
||||
Reference in New Issue
Block a user