add : main arch desktop polybar config launch.sh
This commit is contained in:
322
configs/polybar_g/MainArch/config.ini
Normal file
322
configs/polybar_g/MainArch/config.ini
Normal file
@@ -0,0 +1,322 @@
|
||||
[colors]
|
||||
# background = #282A2E
|
||||
background = #282828
|
||||
background-alt = #373B41
|
||||
foreground = #C5C8C6
|
||||
# primary = #F0C674
|
||||
secondary = #8ABEB7
|
||||
alert = #A54242
|
||||
# disabled = #707880
|
||||
|
||||
# Gruvbox
|
||||
disabled = #f9f5d7
|
||||
primary = #f9f5d7
|
||||
focused = #d65d0e
|
||||
urgent = cc241d
|
||||
|
||||
[bar/top-primary]
|
||||
# monitor = ${env:MONITOR:}
|
||||
inherit = bar/top
|
||||
|
||||
|
||||
[bar/top]
|
||||
monitor = ${env:MONITOR:}
|
||||
width = 100%
|
||||
height = 24pt
|
||||
radius = 6
|
||||
module-margin-right = 2
|
||||
inherit = bar/top
|
||||
|
||||
dpi = 110
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3pt
|
||||
|
||||
border-size = 0pt
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
|
||||
module-margin = 1
|
||||
|
||||
separator =
|
||||
separator-foreground = ${colors.focused}
|
||||
|
||||
font-0 = Iosevka Nerd Font:size=14:style=bold;2
|
||||
|
||||
|
||||
modules-left = i3
|
||||
modules-center = date
|
||||
modules-right = systray battery pulseaudio memory cpu
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
; wm-restack = generic
|
||||
; wm-restack = bspwm
|
||||
; wm-restack = i3
|
||||
|
||||
; override-redirect = true
|
||||
|
||||
[module/systray]
|
||||
type = internal/tray
|
||||
|
||||
format-margin = 4px
|
||||
tray-spacing = 16px
|
||||
tray-size = 46%
|
||||
format-background = ${color.focused}
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
show-urgent = true
|
||||
index-sort = true
|
||||
enable-click = true
|
||||
fuzzy-match = true
|
||||
pin-workspaces = true
|
||||
strip-wsnumbers = false
|
||||
|
||||
ws-icon-0 = 1;1
|
||||
ws-icon-1 = 2;2
|
||||
ws-icon-2 = 3;3
|
||||
ws-icon-3 = 4;4
|
||||
ws-icon-4 = 5;5
|
||||
ws-icon-5 = 6;6
|
||||
ws-icon-6 = 7;7
|
||||
ws-icon-7 = 8;8
|
||||
ws-icon-8 = 9;9
|
||||
ws-icon-9 = 10;10
|
||||
|
||||
format = <label-state> <label-mode>
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 2
|
||||
label-mode-foreground = ${colors.primary}
|
||||
|
||||
label-focused = %name%
|
||||
label-focused-font = 5
|
||||
label-focused-foreground = ${colors.focused}
|
||||
label-focused-padding = 1
|
||||
|
||||
label-unfocused = %name%
|
||||
label-unfocused-font = 5
|
||||
label-unfocused-foreground = ${colors.primary}
|
||||
label-unfocused-padding = 1
|
||||
|
||||
label-visible = %name%
|
||||
label-visible-padding = 1
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-font = 10
|
||||
label-urgent-foreground = ${colors.urgent}
|
||||
label-urgent-padding = 1
|
||||
|
||||
#[module/xworkspaces]
|
||||
#type = internal/xworkspaces
|
||||
|
||||
#label-active = %name%
|
||||
#label-active-background = ${colors.background-alt}
|
||||
#label-active-underline= ${colors.primary}
|
||||
#label-active-padding = 1
|
||||
|
||||
#label-occupied = %name%
|
||||
#label-occupied-padding = 1
|
||||
|
||||
#label-urgent = %name%
|
||||
#label-urgent-background = ${colors.alert}
|
||||
#label-urgent-padding = 1
|
||||
|
||||
#label-empty = %name%
|
||||
#label-empty-foreground = ${colors.disabled}
|
||||
#label-empty-padding = 1
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
interval = 5
|
||||
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
format-volume-foreground = ${colors.primary}
|
||||
|
||||
format-muted = <label-muted>
|
||||
format-muted-prefix =
|
||||
format-muted-foreground = ${colors.foreground}
|
||||
format-muted-prefix-foreground = ${colors.primary}
|
||||
|
||||
label-volume = %percentage%%
|
||||
label-muted = " Shh!"
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
ramp-volume-0-foreground = ${colors.primary}
|
||||
ramp-volume-1-foreground = ${colors.primary}
|
||||
ramp-volume-2-foreground = ${colors.primary}
|
||||
ramp-headphones-0 =
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage_used:2%%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage:2%%
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = %H:%M
|
||||
date-alt = %Y-%m-%d %H:%M:%S
|
||||
|
||||
label = %date%
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
|
||||
; This is useful in case the battery never reports 100% charge
|
||||
; Default: 100
|
||||
full-at = 99
|
||||
|
||||
; format-low once this charge percentage is reached
|
||||
; Default: 10
|
||||
; New in version 3.6.0
|
||||
low-at = 5
|
||||
|
||||
; Use the following command to list batteries and adapters:
|
||||
; $ ls -1 /sys/class/power_supply/
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
|
||||
; If an inotify event haven't been reported in this many
|
||||
; seconds, manually poll for new values.
|
||||
;
|
||||
; Needed as a fallback for systems that don't report events
|
||||
; on sysfs/procfs.
|
||||
;
|
||||
; Disable polling by setting the interval to 0.
|
||||
;
|
||||
; Default: 5
|
||||
poll-interval = 5
|
||||
; see "man date" for details on how to format the time string
|
||||
; NOTE: if you want to use syntax tags here you need to use %%{...}
|
||||
; Default: %H:%M:%S
|
||||
time-format = %H:%M
|
||||
|
||||
; Available tags:
|
||||
; <label-charging> (default)
|
||||
; <bar-capacity>
|
||||
; <ramp-capacity>
|
||||
; <animation-charging>
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
|
||||
; Available tags:
|
||||
; <label-discharging> (default)
|
||||
; <bar-capacity>
|
||||
; <ramp-capacity>
|
||||
; <animation-discharging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
|
||||
; Available tags:
|
||||
; <label-full> (default)
|
||||
; <bar-capacity>
|
||||
; <ramp-capacity>
|
||||
;format-full = <ramp-capacity> <label-full>
|
||||
|
||||
; Format used when battery level drops to low-at
|
||||
; If not defined, format-discharging is used instead.
|
||||
; Available tags:
|
||||
; <label-low>
|
||||
; <animation-low>
|
||||
; <bar-capacity>
|
||||
; <ramp-capacity>
|
||||
; New in version 3.6.0
|
||||
;format-low = <label-low> <animation-low>
|
||||
|
||||
; Available tokens:
|
||||
; %percentage% (default) - is set to 100 if full-at is reached
|
||||
; %percentage_raw%
|
||||
; %time%
|
||||
; %consumption% (shows current charge rate in watts)
|
||||
label-charging = %percentage%%
|
||||
|
||||
; Available tokens:
|
||||
; %percentage% (default) - is set to 100 if full-at is reached
|
||||
; %percentage_raw%
|
||||
; %time%
|
||||
; %consumption% (shows current discharge rate in watts)
|
||||
label-discharging = %percentage%%
|
||||
|
||||
; Available tokens:
|
||||
; %percentage% (default) - is set to 100 if full-at is reached
|
||||
; %percentage_raw%
|
||||
label-full = Full
|
||||
|
||||
; Available tokens:
|
||||
; %percentage% (default) - is set to 100 if full-at is reached
|
||||
; %percentage_raw%
|
||||
; %time%
|
||||
; %consumption% (shows current discharge rate in watts)
|
||||
; New in version 3.6.0
|
||||
label-low = BATTERY LOW
|
||||
|
||||
; Only applies if <ramp-capacity> is used
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-0-foreground = ${colors.primary}
|
||||
ramp-capacity-1-foreground = ${colors.primary}
|
||||
ramp-capacity-2-foreground = ${colors.primary}
|
||||
ramp-capacity-3-foreground = ${colors.primary}
|
||||
ramp-capacity-4-foreground = ${colors.primary}
|
||||
|
||||
; Only applies if <bar-capacity> is used
|
||||
bar-capacity-width = 10
|
||||
|
||||
; Only applies if <animation-charging> is used
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
; Framerate in milliseconds
|
||||
animation-charging-framerate = 750
|
||||
|
||||
; Only applies if <animation-discharging> is used
|
||||
animation-discharging-0 =
|
||||
animation-discharging-1 =
|
||||
animation-discharging-2 =
|
||||
animation-discharging-3 =
|
||||
animation-discharging-4 =
|
||||
animatoin-discharging-0-foreground = ${colors.primary}
|
||||
animatoin-discharging-1-foreground = ${colors.primary}
|
||||
animatoin-discharging-2-foreground = ${colors.primary}
|
||||
animatoin-discharging-3-foreground = ${colors.primary}
|
||||
animatoin-discharging-4-foreground = ${colors.primary}
|
||||
|
||||
; Framerate in milliseconds
|
||||
animation-discharging-framerate = 500
|
||||
|
||||
; Only applies if <animation-low> is used
|
||||
; New in version 3.6.0
|
||||
animation-low-0 = !
|
||||
animation-low-1 =
|
||||
animation-low-framerate = 200
|
||||
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = true
|
||||
|
||||
; vim:ft=dosini
|
||||
13
configs/polybar_g/MainArch/launch.sh
Executable file
13
configs/polybar_g/MainArch/launch.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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 bar on each monitor, tray on primary
|
||||
polybar --list-monitors | while IFS=$'\n' read line; do
|
||||
monitor=$(echo $line | cut -d':' -f1)
|
||||
primary=$(echo $line | cut -d' ' -f3)
|
||||
MONITOR=$monitor polybar --reload "top${primary:+"-primary"}" &
|
||||
done
|
||||
Reference in New Issue
Block a user