diff --git a/.config/polybar/config b/.config/polybar/config index 2c92f66..bcb4c6d 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -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 =