- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- ;;
- ;; ____ __ __
- ;; / __ \____ / /_ __/ /_ ____ ______
- ;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
- ;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
- ;; /_/ \____/_/\__, /_.___/\__,_/_/
- ;; /____/
- ;;
- ;; Created By Aditya Shakya @adi1090x
- ;;
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- ;; Global WM Settings
- [global/wm]
- margin-bottom = 0
- margin-top = 0
- include-file = ~/.config/bspwm/polybar/colors
- [bar/main]
- monitor =
- monitor-strict = false
- override-redirect = false
- bottom = false
- fixed-center = true
- width = 100%
- height = 20
- offset-x = 0
- offset-y = 0
- background = ${color.BACKGROUND}
- foreground = ${color.FOREGROUND}
- radius-top = 0.0
- radius-bottom = 0.0
- line-size = 2
- line-color = ${color.BLUE}
- border-size = 4
- border-color = ${color.BACKGROUND}
- padding = 1
- module-margin-left = 1
- module-margin-right = 1
- font-0 = "Iosevka Nerd Font:size=13;3"
- font-1 = "Iosevka Nerd Font:size=12;3"
- modules-left = mod bspwm
- modules-center = spotify previous playpause next
- modules-right = volume backlight battery network date
- separator =
- spacing = 0
- dim-value = 1.0
- wm-name = bspwm
- locale =
- tray-position = right
- tray-detached = false
- tray-maxsize = 16
- tray-transparent = false
- tray-background = ${color.BACKGROUND}
- tray-offset-x = 0
- tray-offset-y = 0
- tray-padding = 0
- tray-scale = 1.0
- wm-restack = bspwm
- enable-ipc = true
- ; bspwm
- scroll-up = bspc desktop -f prev.local
- scroll-down = bspc desktop -f next.local
- [settings]
- throttle-output = 5
- throttle-output-for = 10
- throttle-input-for = 30
- screenchange-reload = false
- compositing-background = source
- compositing-foreground = over
- compositing-overline = over
- compositing-underline = over
- compositing-border = over
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- ;;
- ;; __ ___ __ __
- ;; / |/ /___ ____/ /_ __/ /__ _____
- ;; / /|_/ / __ \/ __ / / / / / _ \/ ___/
- ;; / / / / /_/ / /_/ / /_/ / / __(__ )
- ;; /_/ /_/\____/\__,_/\__,_/_/\___/____/
- ;;
- ;; Created By Aditya Shakya @adi1090x
- ;;
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/volume]
- type = internal/pulseaudio
- ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
- ; If not, uses default sink
- sink = alsa_output.pci-0000_12_00.3.analog-stereo
- ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
- ; Default: true
- use-ui-max = false
- ; Interval for volume increase/decrease (in percent points)
- ; Default: 5
- interval = 5
- format-volume = <ramp-volume> <label-volume>
- format-muted = <label-muted>
- format-muted-prefix = 婢
- format-muted-prefix-font = 2
- format-muted-prefix-foreground = ${color.WHITE}
- label-volume = %percentage%%
- label-muted = " Muted"
- label-muted-foreground = #757575
- ramp-volume-0 = 奄
- ramp-volume-1 = 奄
- ramp-volume-2 = 奄
- ramp-volume-3 = 奔
- ramp-volume-4 = 奔
- ramp-volume-5 = 奔
- ramp-volume-6 = 墳
- ramp-volume-7 = 墳
- ramp-volume-8 = 墳
- ramp-volume-9 = 墳
- ramp-volume-font = 2
- ramp-volume-foreground = ${color.WHITE}
- ramp-headphones-0 =
- ramp-headphones-1 =
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/backlight]
- type = internal/xbacklight
- card = intel_backlight
- format = <ramp> <label>
- label = %percentage%%
- ramp-0 =
- ramp-1 =
- ramp-2 =
- ramp-3 =
- ramp-4 =
- ramp-5 =
- ramp-6 =
- ramp-7 =
- ramp-8 =
- ramp-9 =
- ramp-font = 2
- ramp-foreground = ${color.WHITE}
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/battery]
- type = internal/battery
- full-at = 99
- battery = BAT1
- adapter = ACAD
- poll-interval = 2
- time-format = %H:%M
- format-charging = <animation-charging> <label-charging>
- format-charging-prefix =
- format-discharging = <ramp-capacity> <label-discharging>
- format-full = <label-full>
- format-full-prefix = " "
- format-full-prefix-font = 2
- format-full-prefix-foreground = ${color.WHITE}
- label-charging = %percentage%%
- label-discharging = %percentage%%
- label-full = %percentage%%
- ramp-capacity-0 =
- ramp-capacity-1 =
- ramp-capacity-2 =
- ramp-capacity-3 =
- ramp-capacity-4 =
- ramp-capacity-font = 2
- ramp-capacity-foreground = ${color.WHITE}
- animation-charging-0 =
- animation-charging-1 =
- animation-charging-2 =
- animation-charging-3 =
- animation-charging-4 =
- animation-charging-font = 2
- animation-charging-foreground = ${color.WHITE}
- animation-charging-framerate = 750
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/bspwm]
- type = internal/bspwm
- pin-workspaces = true
- inline-mode = false
- enable-click = true
- enable-scroll = true
- reverse-scroll = true
- fuzzy-match = true
- ; ws-icon-[0-9]+ = label;icon
- ; Note that the label needs to correspond with the bspwm workspace name
- ;;ws-icon-0 = code;♚
- ;;ws-icon-1 = office;♛
- ;;ws-icon-2 = graphics;♜
- ;;ws-icon-3 = mail;♝
- ;;ws-icon-4 = web;♞
- ;;ws-icon-default = ♟
- format = <label-state>
- label-monitor = %name%
- ; If any values for label-dimmed-N are defined, the workspace/mode
- ; colors will get overridden with those values if the monitor is out of focus
- ; To only override workspaces in a specific state, use:
- ; label-dimmed-focused
- ; label-dimmed-occupied
- ; label-dimmed-urgent
- ; label-dimmed-empty
- ;label-dimmed-foreground = ${color.FOREGROUND}
- ;label-dimmed-underline = ${color.YELLOW}
- ;label-dimmed-focused-background = ${color.BACKGROUND}
- label-focused = %name%
- label-focused-foreground = ${color.WHITE}
- label-focused-background = ${color.ALTMAGENTA}
- label-focused-underline = ${color.WHITE}
- label-focused-padding = 1
- label-occupied = %name%
- label-occupied-foreground = ${color.WHITE}
- label-occupied-background = ${color.BLUE}
- ;label-occupied-underline = ${color.GREEN}
- label-occupied-padding = 1
- label-urgent = %name%
- label-urgent-foreground = ${color.BACKGROUND}
- label-urgent-background = ${color.RED}
- ;label-urgent-underline = ${color.RED}
- label-urgent-padding = 1
- label-empty = %name%
- label-empty-foreground = ${color.FOREGROUND}
- label-empty-padding = 1
- ; Separator in between workspaces
- label-separator = " "
- label-separator-padding = 0
- ;label-separator-foreground = ${color.YELLOW}
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/mod]
- type = internal/bspwm
- format = <label-mode>
- ;;format-background = ${color.FOREGROUND}
- format-foreground = ${color.WHITE}
- format-padding = 1
- ;;label-floating = "Float"
- ;;label-monocle = "Monocle"
- ;;label-tiled = "Tiled"
- label-monocle = ""
- label-tiled = ""
- ;label-floating = ", Float"
- ;label-pseudotiled = ", Pseudo"
- ;label-fullscreen = ", Full"
- ;label-locked = " Locked"
- ;label-sticky = " Sticky"
- ;label-private = " Private"
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/modicons]
- type = internal/bspwm
- format = <label-mode>
- format-background = ${color.YELLOW}
- format-foreground = ${color.BACKGROUND}
- format-padding = 1
- label-monocle = ""
- label-tiled = ""
- label-fullscreen = " "
- label-floating = " "
- label-pseudotiled = " "
- label-locked = " "
- label-sticky = " "
- label-private = " "
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/date]
- type = internal/date
- interval = 1.0
- time = %I:%M %p
- time-alt = %A, %d %B %Y
- format = <label>
- format-prefix = " "
- format-prefix-font = 2
- format-prefix-foreground = ${color.WHITE}
- label = %time%
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/previous]
- type = custom/ipc
- format-font = 1
- ; Default
- hook-0 = echo ""
- ; When spotify active
- hook-1 = echo ""
- click-left = "spotifyctl -q previous"
- [module/next]
- type = custom/ipc
- format-font = 1
- ; Default
- hook-0 = echo ""
- ; When spotify active
- hook-1 = echo ""
- click-left = "spotifyctl -q next"
- [module/playpause]
- type = custom/ipc
- format-font = 1
- ; Default
- hook-0 = echo ""
- ; Playing
- hook-1 = echo ""
- ; Paused
- hook-2 = echo ""
- click-left = "spotifyctl -q playpause"
- [module/spotify]
- ;;format-underline = #0f0
- format-prefix = " "
- type = custom/ipc
- ; Default
- hook-0 = echo ""
- ; Playing/paused show song name and artist
- hook-1 = spotifyctl -q status --format '%artist%: %title%'
- ;;
- ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- [module/network]
- type = internal/network
- interface = wlan0
- interval = 1.0
- ;;ping-interval = 3
- ;;udspeed-minwidth = 5
- accumulate-stats = true
- unknown-as-up = true
- format-connected = <ramp-signal> <label-connected>
- format-disconnected = <label-disconnected>
- format-disconnected-prefix = "睊 "
- format-disconnected-prefix-font = 2
- format-disconnected-prefix-foreground = ${color.WHITE}
- label-connected = "%{A1:nmd &:}%essid%%{A}"
- label-disconnected = "%{A1:nmd &:}Disconnected%{A}"
- ramp-signal-0 = 直
- ramp-signal-1 = 直
- ramp-signal-2 = 直
- ramp-signal-3 = 直
- ramp-signal-4 = 直
- ramp-signal-font = 2
- ramp-signal-foreground = ${color.WHITE}