Use polybar config
parent
4b74af8b99
commit
01842d8f1e
|
@ -0,0 +1,159 @@
|
|||
[colors]
|
||||
background = #cccccc
|
||||
background-alt = #aaaaaa
|
||||
foreground = #111111
|
||||
primary = #111111
|
||||
secondary = #555555
|
||||
disabled = #888888
|
||||
|
||||
[bar/example]
|
||||
height = 16pt
|
||||
radius = 0
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
padding-left = 0pt
|
||||
module-margin = 1
|
||||
|
||||
separator = " "
|
||||
separator-foreground = ${colors.disabled}
|
||||
|
||||
font-0 = Iosevka Term SS08:size=12;4
|
||||
|
||||
modules-left = xworkspaces xwindow
|
||||
modules-center = project pomo
|
||||
modules-right = filesystem pulseaudio memory cpu wlan eth date dunst-snooze xkeyboard battery
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
[module/xworkspaces]
|
||||
type = internal/xworkspaces
|
||||
|
||||
label-active = %name%
|
||||
label-active-background = ${colors.background-alt}
|
||||
label-active-underline= ${colors.primary}
|
||||
label-active-padding = 4pt
|
||||
|
||||
label-occupied = %name%
|
||||
label-occupied-padding = 4pt
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 4pt
|
||||
|
||||
label-empty = %name%
|
||||
label-empty-foreground = ${colors.disabled}
|
||||
label-empty-padding = 4pt
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:60:...%
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %mountpoint% %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume-prefix = "VOL "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
format-volume = <label-volume>
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = ${colors.disabled}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = "RAM "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage_used:2%%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = "CPU "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage:2%%
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
label-disconnected = %ifname% disconnected
|
||||
|
||||
[module/wlan]
|
||||
inherit = network-base
|
||||
interface-type = wireless
|
||||
label-connected = %ifname% %local_ip% %essid%
|
||||
|
||||
[module/eth]
|
||||
inherit = network-base
|
||||
interface-type = wired
|
||||
label-connected = %ifname% %local_ip%
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
date = W%V %d %b %H:%M
|
||||
date-alt = %Y-%m-%d %H:%M:%S
|
||||
label = %date%
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
[module/pomo]
|
||||
type = custom/script
|
||||
exec = ~/.bin/sb-pomo
|
||||
label-background = #fff
|
||||
interval = 1
|
||||
|
||||
[module/focus-mode]
|
||||
type = custom/script
|
||||
exec = [[ -f /tmp/focus-mode ]] && echo "Focus"
|
||||
label-background = #af0
|
||||
interval = 1
|
||||
|
||||
[module/project]
|
||||
type = custom/script
|
||||
exec = cat ~/.project
|
||||
label-background = #fa0
|
||||
interval = 1000
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
label-layout = %name% %variant%
|
||||
blacklist-0 = num lock
|
||||
blacklist-1 = scroll lock
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
full-at = 99
|
||||
low-at = 20
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
poll-interval = 5
|
||||
label-charging = .%percentage%++
|
||||
format-low = <label-low><animation-low>
|
||||
label-discharging = .%percentage%-- %time% %consumption%W
|
||||
animation-low-0 = !
|
||||
animation-low-1 = .
|
||||
animation-low-framerate = 200
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = true
|
||||
|
||||
; vim:ft=dosini
|
38
.xmobarrc
38
.xmobarrc
|
@ -1,38 +0,0 @@
|
|||
Config { overrideRedirect = False
|
||||
, font = "Iosevka Term SS08 12"
|
||||
, textOffset = 1
|
||||
, bgColor = "#cccccc"
|
||||
, fgColor = "#111"
|
||||
, position = TopH 20
|
||||
, commands = [ Run Cpu
|
||||
[ "-L", "3"
|
||||
, "-H", "50"
|
||||
, "--high" , "red"
|
||||
] 10
|
||||
, Run Battery [
|
||||
"-t", "<acstatus>〈<left>% <timeleft>〉 ",
|
||||
"--",
|
||||
--"-c", "charge_full",
|
||||
"-O", "AC",
|
||||
"-o", "Bat",
|
||||
"-h", "green",
|
||||
"-l", "red"
|
||||
] 10
|
||||
, Run Alsa "default" "Master"
|
||||
[ "--template", "V〈<volumestatus>〉 "
|
||||
, "--suffix" , "True"
|
||||
, "--"
|
||||
, "--on", ""
|
||||
]
|
||||
, Run Memory ["--template", "Mem: <usedratio>%"] 10
|
||||
, Run Date "W%V %a %b %d %H:%M" "date" 10
|
||||
, Run Com "sb-pomo" [] "pomo" 10
|
||||
, Run Com "sb-anki" [] "anki" 10
|
||||
, Run Com "sb-tasks" [] "tasks" 300
|
||||
, Run Com "sb-project" [] "proj" 300
|
||||
, Run XMonadLog
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = "%XMonadLog% %anki% }%pomo% %proj% { %alsa:default:Master% %battery% %date%"
|
||||
}
|
Loading…
Reference in New Issue