Skip to content

Instantly share code, notes, and snippets.

@hvardhanx
Last active August 29, 2017 06:41
Show Gist options
  • Save hvardhanx/5aca07cf9714566a49736442eccf1081 to your computer and use it in GitHub Desktop.
Save hvardhanx/5aca07cf9714566a49736442eccf1081 to your computer and use it in GitHub Desktop.
[bar/top]
width = 100%
height = 24
monitor = ${env:MONITOR:eDP1}
background = #141021
foreground = #D6DAC2
fixed-center = true
font-0 = "PragmataPro Nerd Font:pixelsize=10;0"
font-1 = "MaterialIcons:pixelsize=10;-1"
font-2 = "icomoon:pixelsize=10;0"
# font-0 = PragmataPro Octicons:pixelsize=10;0
modules-left = i3
modules-center = date
modules-right = wireless-network cpu memory temperature backlight battery powermenu
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
[module/i3]
type = internal/i3
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;
pin-workspaces = true
strip-wsnumbers = true
index-sort = true
enable-scroll = false
format = <label-state>
format-padding-right = 2
label-unfocused-foreground = #ecf0f1
label-unfocused-padding = 1
label-focused-foreground = #03A9F4
label-focused-padding = 1
label-urgent-foreground = #f1c40f
label-urgent-padding = 1
[module/cpu]
type = internal/cpu
interval = 1
format = <label>
format-padding = 2
label =  %percentage%%
[module/memory]
type = internal/memory
interval = 1
format = <label>
format-padding = 2
label =  %gb_used% (%percentage_used%%)
[module/temperature]
# type = internal/temperature
#interval = 1
#thermal-zone = 6
#warn-temperature = 80
#format = <ramp> <label>
#format-padding = 2
#format-warn = <ramp> <label-warn>
#format-warn-padding = 2
#label = %temperature%
#label-warn = %temperature%
#label-warn-foreground = #e4b226
#ramp-0 = 
#ramp-1 = 
#ramp-2 = 
#ramp-3 = 
#ramp-4 = 
type = custom/script
exec = echo `sensors -A | grep -oP '^temp.+? \+\K\d+' | awk '{k+=$1}END{print k/NR}'`°
interval = 1
format-padding = 2
format-foreground = #fffdd0
format-prefix = " "
format-prefix-foreground = #e4b226
[module/date]
type = internal/date
interval = 1
date = %a %b %d,
time = %H:%M:%S
date-alt = %A, %d %B %Y
time-alt = %H:%M:%S
format = <label>
format-padding = 2
label =  %date% %time%
[module/battery]
type = internal/battery
full-at = 100
battery = BAT0
adapter = ADP1
poll-interval = 5
format-charging = <animation-charging> <label-charging>
format-charging-padding = 2
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-padding = 2
format-full = <ramp-capacity> <label-full>
format-full-padding = 2
label-charging = %percentage%%
label-discharging = %percentage%%
label-full = %percentage%%
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-framerate = 500
[module/backlight]
type = internal/backlight
card = intel_backlight
format = <label>
format-padding = 2
label =  %percentage%%
[module/pavolume]
type = custom/script
interval = 1
format-padding = 2
exec = ~/scripts/pavolume.sh
click-left = ~/scripts/pavolume.sh --togmute
scroll-up = ~/scripts/pavolume.sh --up
scroll-down = ~/scripts/pavolume.sh --down
[module/powermenu]
type = custom/menu
label-open = 
label-close = cancel
label-close-background = #312842
label-close-foreground = #ffeefc
label-open-padding-left = 4
label-open-padding-right = 3
label-close-padding = 3
menu-0-0 = lock
menu-0-0-exec = ~/scripts/lock.sh
menu-0-0-background = #312842
menu-0-0-foreground = #c05c47
menu-0-0-padding-right = 3
menu-0-1 = reboot
menu-0-1-exec = menu-open-1
menu-0-1-background = #312842
menu-0-1-foreground = #c05c47
menu-0-1-padding-right = 3
menu-0-2 = power off
menu-0-2-exec = menu-open-2
menu-0-2-background = #312842
menu-0-2-foreground = #c05c47
menu-0-2-padding-right = 3
menu-1-0 = reboot?
menu-1-0-exec = reboot
menu-1-0-background = #312842
menu-1-0-foreground = #e4b226
menu-1-0-padding-right = 3
menu-2-0 = power off?
menu-2-0-exec = poweroff
menu-2-0-background = #312842
menu-2-0-foreground = #e4b226
menu-2-0-padding-right = 3
[module/weather]
type = custom/script
interval = 120
format-padding = 2
exec = ~/scripts/weather.py
[module/wireless-network]
type = internal/network
interface = wlo1
format-connected = <label-connected>
format-connected-padding = 2
format-disconnected = <label-disconnected>
format-disconnected-padding = 2
label-connected =  %essid%
label-disconnected =  None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment