Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;==========================================================
- ;
- ;
- ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
- ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
- ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
- ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
- ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
- ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
- ;
- ;
- ; To learn more about how to configure Polybar
- ; go to https://github.com/polybar/polybar
- ;
- ; The README contains a lot of information
- ;
- ;==========================================================
- [colors]
- alpha = #00000000
- background = #000
- foreground = #fff
- [bar/main]
- width = 99%
- height = 35
- fixed-center = true
- offset-x = 0.5%
- offset-y = 1%
- background = ${colors.alpha}
- foreground = ${colors.foreground}
- font-1 = "Cozette:size=10;2"
- font-0 = "Cozette:size=10;2"
- modules-left = ewmh player-mpris-tail
- modules-center =
- modules-right = dunst sep eth volume date
- padding-left = 0
- padding-right = 0
- module-margin-left = 0
- module-margin-right= = 0
- enable-ipc = true
- override-redirect = false
- [module/info-hackspeed]
- type = custom/script
- exec = ~/.config/polybar/scripts/info-hackspeed.sh
- tail = true
- format-foreground = #fff
- format-background = #666
- format-padding = 2
- [module/dunst]
- type = custom/ipc
- initial = 1
- format-foreground = #fff
- format-background = #000
- format-padding = 2
- hook-0 = echo "%{A1:notify-send "DUNST_COMMAND_PAUSE" && polybar-msg hook dunst 2:}" ■ "%{A}" &
- hook-1 = echo "%{A1:notify-send "DUNST_COMMAND_RESUME" && polybar-msg hook dunst 1:}" □ "%{A}" &
- [module/sep]
- type = custom/text
- content = "| "
- content-background = ${colors.alpha}
- content-foreground = ${colors.alpha}
- content-padding = 0
- [module/ewmh]
- type = internal/xworkspaces
- ; Only show workspaces defined on the same output as the bar
- ;
- ; Useful if you want to show monitor specific workspaces
- ; on different bars
- ;
- ; Default: false
- pin-workspaces = false
- ; Create click handler used to focus desktop
- ; Default: true
- enable-click = true
- ; Create scroll handlers used to cycle desktops
- ; Default: true
- enable-scroll = true
- icon-default = □
- ; Available tokens:
- ; %name%
- ; Default: %name%
- label-monitor = %name%
- ; Available tokens:
- ; %name%
- ; %icon%
- ; %index%
- ; Default: %icon% %name%
- label-active = ■
- label-active-foreground = #fff
- format-background = #000
- format-padding = 2
- label-active-background = #000
- label-empty-background = #000
- label-active-padding-right = 2
- ; Available tokens:
- ; %name%
- ; %icon%
- ; %index%
- ; Default: %icon% %name%
- label-urgent = %icon%
- label-urgent-foreground = #fff
- label-urgent-background = #444
- label-urgent-padding = 0
- label-urgent-padding-right = 0
- ; Available tokens:
- ; %name%
- ; %icon%
- ; %index%
- ; Default: %icon% %name%
- label-empty = %icon%
- label-empty-foreground = #fff
- label-empty-padding = 0
- label-empty-padding-right = 2
- [module/volume]
- type = internal/pulseaudio
- format-volume-background = #222
- format-muted-background = #222
- format-volume = <label-volume>
- label-volume = %percentage%%
- label-volume-foreground = ${root.foreground}
- label-muted = muted
- label-muted-foreground = ${root.foreground}
- ;sink = <alsa_output.pci-0000_09_00.4.analog-stereo>
- use-ui-max = true
- format-volume-padding = 2
- format-muted-padding = 2
- click-right = exec pavucontrol &
- [module/cpu]
- type = internal/cpu
- interval = 2
- format-background = #222
- label = %percentage:2%%
- format-padding = 2
- [module/eth]
- type = internal/network
- interface = enp5s0
- interval = 3.0
- format-connected-background = #444
- label-connected = ethernet
- format-disconnected = disconnected
- format-disconnected-background = #444
- format-disconnected-padding = 2
- format-connected-padding = 2
- ;format-disconnected = <label-disconnected>
- ;format-disconnected-underline = ${self.format-connected-underline}
- ;label-disconnected = %ifname% disconnected
- ;label-disconnected-foreground = ${colors.foreground-alt}
- [module/date]
- type = internal/date
- interval = 5
- date =
- date-alt = "%d/%m"
- time = "%H:%M"
- time-alt =
- label = %date%%time%
- format-background = #000
- format-foreground = #fff
- format-padding = 2
- [module/player-mpris-tail]
- format-background = #222
- type = custom/script
- exec = /home/npham/.config/polybar/scripts/player-mpris-tail.py -f '♫ {:artist:t20:{artist}:}{:artist: - :}{:t20:{title}:}'
- tail = true
- click-left = ~/.config/polybar/scripts/player-mpris-tail.py previous &
- click-right = ~/.config/polybar/scripts/player-mpris-tail.py next &
- click-middle = ~/.config/polybar/scripts/player-mpris-tail.py play-pause &
- format-padding = 2
- [settings]
- screenchange-reload = true
- ;compositing-background = xor
- ;compositing-background = screen
- ;compositing-foreground = source
- ;compositing-border = over
- ;pseudo-transparency = false
- [global/wm]
- margin-top = 0
- margin-bottom = 9
- ; vim:ft=dosini
Add Comment
Please, Sign In to add comment