Configuration files for my GNU/Linux installation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/.config/polybar/config

325 lines
7.9 KiB

3 years ago
[settings]
#compositing-foreground = over
5 years ago
[colors]
background = #111015
3 years ago
foreground = #fefefe
foreground2 = #aafefefe
4 years ago
line = #bbb
border = #bbb
accent = #434d5e
accent2 = #637291
4 years ago
selected = #81a2be
4 years ago
focused = #f0c674
5 years ago
4 years ago
#background = ${xrdb:color0:#222}
#foreground = ${xrdb:color7:#222}
4 years ago
foreground-alt = ${xrdb:color7:#222}
4 years ago
primary = ${xrdb:color4:#222}
4 years ago
secondary = ${xrdb:color2:#222}
3 years ago
alert = #2f2f2ffa
#${xrdb:color8:#222}
4 years ago
special = ${xrdb:color12:#222}
4 years ago
4 years ago
black = #32344a
red = #f7768c
green = #9ece6a
yellow = #e0af68
blue = #7aa2f7
magenta = #ad8ee6
cyan = #449dab
white = #787c99
5 years ago
[global/wm]
# margin-top = 0
# margin-bottom = 0
5 years ago
[bar/top]
font-0 = "Iosevka:pixelsize=10;1"
font-1 = "siji:pixelsize=12;1"
3 years ago
font-2 = "Font Awesome 5 Free Regular:size=12;1"
font-3 = "Font Awesome 5 Free Solid:size=12;1"
font-4 = "Font Awesome 5 Brands Regular:size=12;1"
5 years ago
4 years ago
monitor = ${env:MONITOR}
5 years ago
# fixed-center = true
# override-redirect = true
5 years ago
4 years ago
width = 100%
3 years ago
height = 20
5 years ago
bottom = 1
4 years ago
4 years ago
background = ${colors.background}
foreground = ${colors.foreground}
5 years ago
padding-left = 8
padding-right = 8
4 years ago
module-margin = 1
5 years ago
4 years ago
modules-left = dwm title
modules-center = time
modules-right = cmus pulseaudio wlan battery date
5 years ago
4 years ago
#################################################
4 years ago
# MODULES #
4 years ago
#################################################
4 years ago
[module/dwm]
type = internal/dwm
4 years ago
format = <label-tags> <label-layout> <label-floating>
4 years ago
# Path to dwm socket (default: /tmp/dwm.sock)
# socket-path = /tmp/dwm.sock
# Left-click to view tag, right-click to toggle tag view
4 years ago
enable-tags-click = true
4 years ago
# Scroll to cycle between available tags
4 years ago
enable-tags-scroll = true
4 years ago
# If true and enable-tags-scroll = true, scrolling will view all tags regardless if occupied
tags-scroll-empty = false
# If true and enable-tags-scroll = true, scrolling will cycle through tags backwards
4 years ago
tags-scroll-reverse = true
4 years ago
# If true and enable-tags-scroll = true, wrap active tag when scrolling
4 years ago
tags-scroll-wrap = true
4 years ago
# Left-click to set secondary layout, right-click to switch to previous layout
4 years ago
enable-layout-click = true
4 years ago
# Scroll to cycle between available layouts
enable-layout-scroll = false
# Wrap when scrolling and reaching beginning/end of layouts
layout-scroll-wrap = false
# Reverse scroll direction
layout-scroll-reverse = false
# If enable-layout-click = true, clicking the layout symbol will switch to this layout
secondary-layout-symbol = [M]
# Separator in between shown tags
4 years ago
# label-separator = -
4 years ago
# Title of currently focused window
# Available tokens:
# %title%
label-title = %title%
label-title-padding = 1
4 years ago
label-title-foreground = ${colors.primary}
4 years ago
label-title-maxlen = 50
4 years ago
# Symbol of current layout
# Available tokens:
# %symbol%
label-layout = %symbol%
4 years ago
label-layout-padding = 1
4 years ago
label-layout-foreground = ${colors.foreground}
label-layout-background = ${colors.background}
# Text to show when currently focused window is floating
4 years ago
label-floating = ~
4 years ago
# States: focused, unfocused, visible, urgent, empty
# Available tokens:
# %name%
# focused = Selected tag on focused monitor
label-focused = %name%
label-focused-background = ${colors.background}
3 years ago
label-focused-foreground = ${colors.blue}
4 years ago
label-focused-underline= ${colors.line}
label-focused-padding = 1
# unfocused = Unselected tag on unselected monitor
label-unfocused = %name%
4 years ago
label-unfocused-padding = 1
4 years ago
# visible = Unselected tag, but occupied tag on any monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
3 years ago
label-visible-foreground = ${colors.foreground}
4 years ago
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
# urgent = Unselected tag with window that has urgency hint set
4 years ago
label-urgent = %name%
label-urgent-background = ${colors.selected}
label-urgent-foreground = ${colors.foreground}
4 years ago
label-urgent-padding = 1
4 years ago
# empty = Unselected and unoccupied tag
# This can be set to an empty string to hide empty tags
4 years ago
label-empty = %name%
4 years ago
label-empty-background = ${colors.background}
3 years ago
label-empty-foreground = ${colors.foreground2}
4 years ago
label-empty-padding = 1
5 years ago
[module/cmus]
type = custom/script
exec = ~/.config/polybar/scripts/cmus.sh
exec-if = pgrep -x cmus
interval = 1
click-left = cmus-remote --next
click-right = cmus-remote --prev
click-middle = cmus-remote --pause
scroll-up = cmus-remote --volume +5%
scroll-down = cmus-remote --volume -5%
label-font = 3
format = <label>
4 years ago
format-underline = ${colors.line}
label = %output%
3 years ago
label-maxlen = 80
[module/spotify]
type = custom/script
tail = true
; prefix symbol is shown before the text
format-prefix = " "
format = <label>
exec = ~/.config/polybar/scripts/scroll_spotify_status.sh
[module/spotify-prev]
type = custom/script
exec = echo "<previous-song-symbol>"
format = <label>
click-left = playerctl previous spotify
[module/spotify-play-pause]
type = custom/ipc
hook-0 = echo "<playing-symbol>"
hook-1 = echo "<pause-symbol>"
initial = 1
click-left = playerctl play-pause spotify
[module/spotify-next]
type = custom/script
exec = echo "next-song-symbol"
format = <label>
click-left = playerctl next spotify
4 years ago
[module/wlan]
type = internal/network
interface = wlp1s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = ${colors.foreground}
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-4 =
ramp-signal-foreground = ${colors.foreground}
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-underline = ${colors.foreground}
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
4 years ago
5 years ago
[module/date]
type = internal/date
4 years ago
label = %date%
5 years ago
date = %Y-%m-%d
time = %H:%M:%S
interval = 1
4 years ago
[module/time]
type = internal/date
label = %time%
time = %H:%M:%S
interval = 1
5 years ago
4 years ago
[module/filesystem]
type = internal/fs
mount-0 = /
interval= 60
fixed-values = true
spacing = 2
format-mounted = <label-mounted>
label-mounted = %mountpoint% %free%
[module/kernel]
type = custom/script
exec = uname -r
interval = 600
format = " <label>"
label = %output%
4 years ago
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
format-muted = <label-muted> <bar-volume>
label-muted = %percentage%%
4 years ago
label-muted-foreground = ${colors.red}
bar-volume-width = 10
bar-volume-foreground-0 = ${colors.green}
bar-volume-foreground-1 = ${colors.green}
bar-volume-foreground-2 = ${colors.green}
bar-volume-foreground-3 = ${colors.green}
bar-volume-foreground-4 = ${colors.yellow}
bar-volume-foreground-5 = ${colors.yellow}
bar-volume-foreground-6 = ${colors.red}
bar-volume-gradient = false
bar-volume-indicator = >
bar-volume-indicator-font = 0
bar-volume-fill = ─
bar-volume-fill-font = 0
bar-volume-empty = ─
bar-volume-empty-font = 0
bar-volume-empty-foreground = #666
4 years ago
[module/title]
5 years ago
type = internal/xwindow
4 years ago
format-background = ${colors.background}
format-foreground = #f0c674
format-padding = 1
label-maxlen = 50
4 years ago
[module/battery]
type = internal/battery
full-at = 98
time-format = %H:%M
format-charging = <animation-charging> <label-charging>
label-charging = %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-full = <label-full>
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-foreground = ${colors.foreground}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-foreground = ${colors.foreground}
animation-charging-framerate = 750