archived old stuff;new layout
This commit is contained in:
233
2022-archive/artix/polybar/.config_backup
Normal file
233
2022-archive/artix/polybar/.config_backup
Normal file
@ -0,0 +1,233 @@
|
||||
;==========================================================
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = #222
|
||||
background-alt = #444
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = #dfdfdf
|
||||
foreground-alt = #555
|
||||
primary = #ffb52a
|
||||
secondary = #e60053
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/example]
|
||||
;monitor = ${env:MONITOR:HDMI-1}
|
||||
width = 100%
|
||||
height = 32
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 1.0
|
||||
fixed-center = true
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3
|
||||
line-color = #f00
|
||||
|
||||
border-size = 4
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
|
||||
module-margin-left = 1
|
||||
module-margin-right = 1
|
||||
|
||||
font-0 = RobotoMono:pixelsize=10;1
|
||||
font-1 = noto-fonts-emoji:pixelsize=10;1
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = mpd
|
||||
modules-right = backlight-acpi battery wlan date powermenu
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 1
|
||||
;tray-background = #0063ff
|
||||
|
||||
wm-restack = bspwm
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-underline= ${colors.primary}
|
||||
label-focused-padding = 2
|
||||
|
||||
label-occupied = %index%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %index%!
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %index%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 2
|
||||
|
||||
; Separator in between workspaces
|
||||
; label-separator = |
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
|
||||
format = <label> <bar>
|
||||
label = BL
|
||||
|
||||
bar-width = 10
|
||||
bar-indicator = |
|
||||
bar-indicator-foreground = #fff
|
||||
bar-indicator-font = 2
|
||||
bar-fill = ─
|
||||
bar-fill-font = 2
|
||||
bar-fill-foreground = #9f78e1
|
||||
bar-empty = ─
|
||||
bar-empty-font = 2
|
||||
bar-empty-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/backlight-acpi]
|
||||
inherit = module/xbacklight
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #f90000
|
||||
label = %percentage:2%%
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp8s0
|
||||
interval = 3.0
|
||||
|
||||
format-connected = <ramp-signal> <label-connected>
|
||||
format-connected-underline = #9f78e1
|
||||
label-connected = %essid%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
ramp-signal-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth]
|
||||
type = internal/network
|
||||
interface = void0
|
||||
interval = 3.0
|
||||
|
||||
format-connected-underline = #55aa55
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||
label-connected = %local_ip%
|
||||
|
||||
format-disconnected =
|
||||
;format-disconnected = <label-disconnected>
|
||||
;format-disconnected-underline = ${self.format-connected-underline}
|
||||
;label-disconnected = %ifname% disconnected
|
||||
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = %Y-%m-%d
|
||||
date-alt = %Y-%m-%d
|
||||
|
||||
time = %H:%M:%S
|
||||
time-alt = %H:%M:%S
|
||||
|
||||
format-prefix =
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
format-underline = #0a6cf5
|
||||
|
||||
label = %date% %time%
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT1
|
||||
adapter = ACAD
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-charging-underline = #ffb52a
|
||||
|
||||
format-discharging = <animation-discharging> <label-discharging>
|
||||
format-discharging-underline = ${self.format-charging-underline}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||
format-full-underline = ${self.format-charging-underline}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-foreground = ${colors.foreground-alt}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
animation-discharging-0 =
|
||||
animation-discharging-1 =
|
||||
animation-discharging-2 =
|
||||
animation-discharging-foreground = ${colors.foreground-alt}
|
||||
animation-discharging-framerate = 750
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 60
|
||||
|
||||
format = <ramp> <label>
|
||||
format-underline = #f50a4d
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = ${self.format-underline}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.secondary}
|
||||
|
||||
ramp-0 =
|
||||
ramp-1 =
|
||||
ramp-2 =
|
||||
ramp-foreground = ${colors.foreground-alt}
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
;compositing-background = screen
|
||||
;compositing-foreground = source
|
||||
;compositing-border = over
|
||||
;pseudo-transparency = false
|
||||
|
||||
[global/wm]
|
||||
margin-top = 5
|
||||
margin-bottom = 5
|
||||
|
||||
; vim:ft=dosini
|
182
2022-archive/artix/polybar/config.ini
Normal file
182
2022-archive/artix/polybar/config.ini
Normal file
@ -0,0 +1,182 @@
|
||||
# ________
|
||||
# | _____ \
|
||||
# | | _/ / Pim Nelissen
|
||||
# | | /__/ https://pim.wtf/
|
||||
# | |
|
||||
# \_|
|
||||
|
||||
# Polybar configuation file.
|
||||
|
||||
[colors]
|
||||
background = #ff000000
|
||||
foreground = #ffffffff
|
||||
|
||||
background-alt = #444
|
||||
foreground-alt = #555
|
||||
|
||||
primary = #ffb52a
|
||||
alert = #bd2c40
|
||||
|
||||
[bar/top]
|
||||
bottom = false
|
||||
width = 1280
|
||||
height = 20
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
border-color = #00000000
|
||||
|
||||
offset-y = 0
|
||||
offset-x = 0
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
|
||||
tray-padding = 1
|
||||
|
||||
spacing = 1
|
||||
module-margin-left = 1
|
||||
|
||||
font-0 = Roboto Mono For Powerline:size=11;2
|
||||
font-1 = MaterialIcons;3
|
||||
|
||||
modules-left = ewmh
|
||||
modules-right = brightnessctl wlan wireless-network battery
|
||||
modules-center = date
|
||||
fixed-center = true
|
||||
|
||||
tray-position = right
|
||||
|
||||
[module/brightnessctl]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/brightnessctl.sh
|
||||
|
||||
scroll-up = exec brightnessctl set +5%
|
||||
scroll-down = exec brightnessctl set 5%-
|
||||
interval = 5
|
||||
|
||||
label = %output%
|
||||
label-foreground = ${colors.foreground}
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ACAD
|
||||
full-at = 98
|
||||
|
||||
interval = 30
|
||||
|
||||
click-left = ~/.config/polybar/scripts/bat_toggle.sh
|
||||
format-charging = <label-charging>
|
||||
format-discharging = <ramp-capacity><label-discharging>
|
||||
format-full = <ramp-capacity><label-discharging>
|
||||
|
||||
format-charging-foreground = #90C2E7
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-0-foreground = #DB5461
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-1-foreground = #E9C46A
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-2-foreground = #E9C46A
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-3-foreground = #169873
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-4-foreground = #169873
|
||||
|
||||
bar-capacity-width = 10
|
||||
bar-capacity-format = %{+u}%{+o}%fill%%empty%%{-u}%{-o}
|
||||
bar-capacity-fill = █
|
||||
bar-capacity-fill-foreground = #ddffffff
|
||||
bar-capacity-fill-font = 3
|
||||
bar-capacity-empty = █
|
||||
bar-capacity-empty-font = 3
|
||||
bar-capacity-empty-foreground = #44ffffff
|
||||
|
||||
[module/ewmh]
|
||||
type = internal/xworkspaces
|
||||
|
||||
pin-workspaces = true
|
||||
fuzzy-match = true
|
||||
enable-click = true
|
||||
|
||||
ws-icon-0 = 1;
|
||||
ws-icon-1 = 2;
|
||||
ws-icon-2 = 3;
|
||||
ws-icon-3 = 4;
|
||||
ws-icon-4 = 5;
|
||||
ws-icon-5 = 6;
|
||||
ws-icon-6 = 7;
|
||||
ws-icon-7 = 8;
|
||||
format = <label-state>
|
||||
|
||||
label-monitor = %icon%
|
||||
|
||||
label-focused = %icon%
|
||||
label-focused-background= ${colors.foreground-alt}
|
||||
label-focused-padding = 1
|
||||
|
||||
label-occupied = %icon%
|
||||
label-occupied-padding = 1
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 1
|
||||
|
||||
label-empty = %icon%
|
||||
label-empty-foreground = ${colors.foreground-alt}
|
||||
label-empty-padding = 1
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
date = %H:%M
|
||||
format = <label>
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = eth0
|
||||
interval = 5.0
|
||||
|
||||
format-connected = eth
|
||||
|
||||
[module/wireless-network]
|
||||
type = internal/network
|
||||
interface = wlan0
|
||||
interval = 5.0
|
||||
ping-interval = 10
|
||||
|
||||
label-connected = %essid%
|
||||
format-connected = <ramp-signal><label-connected>
|
||||
label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
ramp-signal-0 =
|
||||
ramp-signal-1 =
|
||||
ramp-signal-2 =
|
||||
ramp-signal-3 =
|
||||
ramp-signal-4 =
|
||||
|
||||
animation-packetloss-0 =
|
||||
animation-packetloss-0-foreground = #ffa64c
|
||||
animation-packetloss-1 =
|
||||
animation-packetloss-1-foreground = ${bar/top.foreground}
|
||||
animation-packetloss-framerate = 500
|
||||
|
||||
[module/volume]
|
||||
type = internal/volume
|
||||
speaker-mixer = Speaker
|
||||
headphone-mixer = Headphone
|
||||
headphone-id = 9
|
||||
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
label-muted = muted
|
||||
label-muted-foreground = #66
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-3 =
|
||||
|
||||
; vim:ft=dosini
|
11
2022-archive/artix/polybar/launch.sh
Normal file
11
2022-archive/artix/polybar/launch.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
pkill polybar
|
||||
# If all your bars have ipc enabled, you can also use
|
||||
# polybar-msg cmd quit
|
||||
|
||||
# Launch Polybar, using default config location ~/.config/polybar/config
|
||||
polybar top | tee -a /tmp/polybar.log & disown
|
||||
|
||||
echo "Polybar launched..."
|
9
2022-archive/artix/polybar/scripts/bat_toggle.sh
Normal file
9
2022-archive/artix/polybar/scripts/bat_toggle.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
|
||||
|
||||
if [ -n "$updates" ] && [ "$updates" -gt 0 ]; then
|
||||
echo " $updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
16
2022-archive/artix/polybar/scripts/brightnessctl.sh
Normal file
16
2022-archive/artix/polybar/scripts/brightnessctl.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
|
||||
BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
|
||||
|
||||
if [ $BRIGHTNESS_NR -lt 20 ]; then
|
||||
BRIGHTNESS_ICON=''
|
||||
elif [ $BRIGHTNESS_NR -lt 50 ]; then
|
||||
BRIGHTNESS_ICON=''
|
||||
elif [ $BRIGHTNESS_NR -lt 80 ]; then
|
||||
BRIGHTNESS_ICON=''
|
||||
else
|
||||
BRIGHTNESS_ICON=''
|
||||
fi
|
||||
|
||||
echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"
|
||||
|
Reference in New Issue
Block a user