Last active
June 7, 2020 19:48
-
-
Save suggoitanoshi/c5d3829234eb7da14c53356589c07761 to your computer and use it in GitHub Desktop.
my polybar config (powerline-like)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[colors] | |
bg = ${xrdb:.background:#202020} | |
fg = ${xrdb:.foreground:#fff} | |
blu = ${xrdb:.color4:#45b6ea} | |
cyn = ${xrdb:.color6:#83e9f1} | |
red = ${xrdb:.color1:#ea4162} | |
grn = ${xrdb:color2:#77ed90} | |
mag = ${xrdb:color5:#ee76a9} | |
yel = ${xrdb:color3} | |
blk = ${xrdb:color0} | |
[bar/basic] | |
monitor = | |
monitor-fallback = | |
monitor-strict = false | |
monitor-exact = true | |
override-redirect = false | |
bottom = false | |
fixed-center = true | |
width = 100% | |
height = 24 | |
dpi-x = 100 | |
dpi-y = 100 | |
offset-x = 0 | |
offset-y = 0 | |
background = ${colors.bg} | |
foreground = ${colors.fg} | |
; {over,under}line-size | |
; {over,under}line-color | |
line-size = 2 | |
line-color = #3794bf | |
padding = 0 | |
font-0 = Monaco:size=10;2 | |
font-1 = SawarabiMincho:size=10;2 | |
font-2 = FontAwesome5FreeSolid:size=10;2 | |
font-3 = PowerLineSymbols:size=18;5 | |
modules-left = ws | |
modules-center = media-status | |
modules-right = backlight volume battery clock | |
separator = | |
tray-position = right | |
tray-detached = false | |
tray-maxsize = 16 | |
tray-background = ${root.background} | |
tray-padding = 2 | |
tray-scale = 1.0 | |
tray-offset-y = 0 | |
enable-ipc = false | |
[module/ws] | |
type=internal/i3 | |
format = "<label-state> <label-mode>" | |
format-background = ${colors.bg} | |
label-mode = %mode% | |
label-mode-padding = 1 | |
label-focused = %index% %{R} | |
label-focused-foreground = ${colors.bg} | |
label-focused-background = ${colors.blu} | |
label-unfocused = %index% | |
label-unfocused-foreground = ${colors.blu} | |
label-unfocused-padding = 1 | |
label-visible-foreground = ${colors.cyn} | |
label-visible = %index% | |
label-visible-padding = 1 | |
label-urgent = ! %index% | |
label-urgent-background = ${colors.red} | |
[module/media-status] | |
type = custom/script | |
exec = sh -c 'echo -n " %{T3}%{A1:playerctl previous:}%{A} %{A1:playerctl play-pause:}"; case $(playerctl status) in "Playing") echo -n "" ;; "Paused") echo -n "" ;; "Stopped") echo -n "" ;; *) "" ;; esac; echo -n "%{A}%{T-}"; playerctl metadata --format " {{ artist }} - {{ title }} [{{duration(mpris:length)}}] " | tr -d "\n"; echo -n "%{T3}%{A1:playerctl next:}%{A} "' | |
exec-if=playerctl status | |
interval=1 | |
format-background = ${colors.red} | |
format-padding = 0 | |
format-foreground = ${colors.bg} | |
[module/backlight] | |
type = internal/backlight | |
card = amdgpu_bl0 | |
format = "%{R}%{R} %{T3}%{T-} <label> " | |
format-background = ${colors.yel} | |
format-foreground = ${colors.blk} | |
label = %percentage%% | |
[module/volume] | |
type=custom/script | |
exec=amixer sget Master | awk -F"[][]" '/dB/{ print "%{R}%{R} "(($6=="off")?"%{F#ea4162}":"")" "$2" "; exit }' | |
label=%output% | |
label-background = ${colors.mag} | |
label-foreground = ${colors.bg} | |
padding-right = 1 | |
interval=1 | |
[module/battery] | |
type = internal/battery | |
full-at = 100 | |
battery = BAT0 | |
adapter = AC | |
poll-interval = 5 | |
format-charging = %{R}%{R} <ramp-capacity> <label-charging> | |
format-discharging = %{R}%{R} <ramp-capacity> <label-discharging> | |
ramp-capacity-0 = | |
ramp-capacity-1 = | |
ramp-capacity-2 = | |
ramp-capacity-3 = | |
ramp-capacity-4 = | |
label-charging = C%percentage%% - %time%L | |
label-discharging = D%percentage%% - %time%R | |
label-full = %{T3}%{T-} %percentage%% | |
format-discharging-background = ${colors.cyn} | |
format-charging-background = ${colors.cyn} | |
format-discharging-foreground = ${colors.bg} | |
format-charging-foreground = ${colors.bg} | |
[module/clock] | |
type=internal/date | |
interval = 1.0 | |
date = %d %b '%y% | |
time = %H:%M | |
format = <label> | |
format-background = ${colors.grn} | |
format-foreground = ${colors.blk} | |
format-padding = 0 | |
label = %{R}%{R} %date% %time% | |
label-font = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment