Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;=====================================================
- ; Modules
- ;=====================================================
- ;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Openbox Workspaces ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;
- [module/workspaces]
- type = internal/xworkspaces
- pin-workspaces = false
- enable-click = true
- enable-scroll = true
- format-padding = 1
- icon-0 = 1;
- icon-1 = 2;
- icon-2 = 3;
- icon-3 = 4;
- icon-4 = 5;
- icon-5 = 6;
- icon-6 = 7;
- icon-7 = 8;
- icon-8 = 9;
- icon-9 = 10;
- icon-default =
- format = <label-state>
- label-active = " %icon% %name% "
- label-active-foreground = ${colors.foreground}
- label-active-underline = ${colors.f-alt}
- label-occupied = " %icon% %name% "
- label-occupied-underline = ${colors.blue}
- label-urgent = " %icon% %name% "
- label-urgent-foreground = ${colors.urgent}
- label-urgent-underline = ${colors.urgent}
- label-empty = " %icon% %name% "
- label-empty-foreground = ${colors.foreground}
- ;;;;;;;;;;;;;;;;;;;
- ;; i3 Workspaces ;;
- ;;;;;;;;;;;;;;;;;;;
- [module/i3-workspaces]
- type = internal/i3
- pin-workspaces = false
- strip-wsnumbers = true
- index-sort = true
- enable-click = true
- enable-scroll = false
- wrapping-scroll = false
- reverse-scroll = false
- fuzzy-match = true
- 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;
- ws-icon-7 = 8;
- ws-icon-8 = 9;
- ws-icon-9 = 10;
- ws-icon-default =
- format = <label-state><label-mode>
- label-mode = %mode%
- label-mode-padding = 2
- label-mode-underline = ${colors.urgent}
- label-focused = "%name% %icon%"
- label-focused-underline = ${colors.blue}
- label-focused-padding = 2
- label-unfocused = "%name% %icon%"
- label-unfocused-padding = 2
- label-visible = "%name% %icon%"
- label-visible-underline = ${colors.blue}
- label-visible-padding = 2
- label-urgent = "%name% %icon%"
- label-urgent-underline = ${colors.urgent}
- label-urgent-padding = 2
- ;;;;;;;;;;;;;
- ;; Network ;;
- ;;;;;;;;;;;;;
- [module/network]
- type = custom/script
- interface = enp2s0
- interval = 3.0
- format-connected = <label-connected>
- ;format-connected-prefix = " "
- format-connected-prefix-foreground = ${colors.foreground-alt}
- format-disconnected = <label-disconnected>
- label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
- label-connected-foreground = ${colors.foreground}
- label-disconnected = no connection
- format-padding = 1
- ;;;;;;;;;;;;;;;;;;;
- ;; Window Switch ;;
- ;;;;;;;;;;;;;;;;;;;
- [module/window_switch]
- type = custom/script
- interval = 5
- label = "%{A1:skippy-xd:} %{A3:skippy-xd:} %output% %{A} %{A}"
- exec = echo " "
- format = <label>
- ;;;;;;;;;
- ;; CPU ;;
- ;;;;;;;;;
- [module/coreuse]
- type = internal/cpu
- interval = 1
- format = <label><ramp-coreload>
- label = %{A1:termite --exec=htop & disown:} %percentage%% %{A}
- ramp-coreload-0 = %{T1}%{F#8FA1B3}▂%{F-}%{T-}
- ramp-coreload-1 = %{T1}%{F#8FA1B3}▃%{F-}%{T-}
- ramp-coreload-2 = %{T1}%{F#6BA4E7}▄%{F-}%{T-}
- ramp-coreload-3 = %{T1}%{F#6BA4E7}▅%{F-}%{T-}
- ramp-coreload-4 = %{T1}%{F#FFFE5D}▆%{F-}%{T-}
- ramp-coreload-5 = %{T1}%{F#FFFE5D}▇%{F-}%{T-}
- ramp-coreload-6 = %{T1}%{F#FF5B6C}█%{F-}%{T-}
- [module/cpu]
- type = internal/cpu
- interval = 1
- format-prefix = " "
- format-prefix-foreground = ${colors.foreground}
- label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage%%%{A}
- ;;;;;;;;;
- ;; MEM ;;
- ;;;;;;;;;
- [module/memory]
- type = internal/memory
- interval = 3
- format-prefix = " "
- format-prefix-foreground = ${colors.foreground}
- label = %{A1:urxvt --geometry 150x30 -e htop:}%percentage_used%%%{A}
- [module/pkg]
- type = custom/script
- label = %output%
- tail = true
- label-padding = 1
- exec = $HOME/.config/polybar/updates
- exec-if = "ping -c 1 8.8.8.8 > /dev/null"
- click-left = termite "--exec=sudo pacman -Syyu" &
- ;;;;;;;;;;;
- ;; Clock ;;
- ;;;;;;;;;;;
- [module/clock]
- type = internal/date
- format = <label>
- interval = 5
- time = %R
- label = %{A1:gsimplecal & disown:} %{A3:gsimplecal & disown:} %time% %{A}%{A}
- ;;;;;;;;;;;;;;;;;
- ;; TEMPERATURE ;;
- ;;;;;;;;;;;;;;;;;
- [module/temperature]
- type = internal/temperature
- interval = 3
- thermal-zone = 0
- warn-temperature = 70
- format = <ramp><label>
- label = " %temperature%"
- ramp-0 = ""
- ramp-0-foreground = ${colors.blue}
- ramp-1 = ""
- ramp-1-foreground = ${colors.pink}
- ramp-2 = ""
- ramp-2-foreground = ${colors.purple}
- ramp-3 = ""
- ramp-3-foreground = ${colors.urgent}
- format-warn = <label-warn>
- label-warn = " %temperature%"
- label-warn-foreground = ${colors.urgent}
- [module/temp]
- type = internal/temperature
- thermal-zone = 2
- format = <ramp> <label>
- format-padding = 1
- label-foreground = ${colors.foreground}
- ramp-0 =
- ramp-1 =
- ramp-2 =
- ramp-foreground = ${colors.foreground}
- ;;;;;;;;;;;;
- ;; Volume ;;
- ;;;;;;;;;;;;
- [module/volume]
- type = internal/volume
- master-mixer = Master
- label-volume-foreground = ${colors.foreground}
- label-volume = %{A3:pavucontrol & disown:}%percentage%% %{A}
- format-volume = <ramp-volume> <label-volume>
- label-muted = " muted"
- label-muted-foreground = #888
- ramp-volume-0 = ""
- ramp-volume-0-foreground = ${colors.foreground}
- ramp-volume-1 = ""
- ramp-volume-1-foreground = ${colors.blue}
- ramp-volume-2 = ""
- ramp-volume-2-foreground = ${colors.orange}
- ramp-volume-3 = ""
- ramp-volume-3-foreground = ${colors.urgent}
- [module/volume1]
- type = custom/script
- interval = 1
- label = %output%
- exec = $HOME/.config/polybar/pavolume.sh
- click-right = exec pavucontrol &
- click-left = $HOME/.config/polybar/pavolume.sh --togmute
- scroll-up = $HOME/.config/polybar/pavolume.sh --up
- scroll-down = $HOME/.config/polybar/pavolume.sh --down
- tail = true
- ;;;;;;;;;;;;;
- ;; BATTERY ;;
- ;;;;;;;;;;;;;
- [module/battery]
- type = internal/battery
- ; Use $ ls -1 /sys/class/power_supply/
- battery = BAT1
- adapter = AC
- full-at = 98
- poll-interval = 5
- time-format = %H:%M
- format-charging = <animation-charging><label-charging>
- format-discharging = <ramp-capacity><label-discharging>
- format-full = <ramp-capacity><label-full>
- format-padding = 0
- ramp-capacity-0 = " "
- ramp-capacity-0-foreground = ${colors.urgent}
- ramp-capacity-1 = " "
- ramp-capacity-1-foreground = #ffa900
- ramp-capacity-2 = " "
- ramp-capacity-3 = " "
- ramp-capacity-4 = " "
- ramp-capacity-foreground = ${colors.blue}
- bar-capacity-width = 10
- animation-charging-0 = " "
- animation-charging-1 = " "
- animation-charging-2 = " "
- animation-charging-3 = " "
- animation-charging-4 = " "
- animation-charging-framerate = 750
- ;;;;;;;;;;
- ;; MENU ;;
- ;;;;;;;;;;
- [module/menu]
- type = custom/menu
- format-spacing = 1
- label-open = " "
- label-open-foreground = ${colors.foreground}
- label-close = " "
- label-close-foreground = ${colors.foreground}
- label-separator = "│"
- label-separator-foreground = ${colors.foreground-alt}
- menu-0-0 = Favs
- menu-0-0-exec = menu-open-1
- menu-0-1 = Extra
- menu-0-1-exec = menu-open-2
- menu-0-2 = System
- menu-0-2-exec = menu-open-3
- menu-0-3 = Power
- menu-0-3-exec = menu-open-4
- menu-1-0 = " "
- menu-1-0-exec = exo-open --launch WebBrowser
- menu-1-1 = " "
- menu-1-1-exec = exo-open --launch TerminalEmulator
- menu-1-2 = " "
- menu-1-2-exec = exo-open --launch FileManager
- menu-1-3 = " "
- menu-1-3-exec = subl3
- menu-2-0 = " "
- menu-2-0-exec = gimp-2.8
- menu-2-1 = " "
- menu-2-1-exec = spotify --force-device-scale-factor=1.5
- menu-2-2 = " "
- menu-2-2-exec = deluge
- menu-2-3 = " "
- menu-2-3-exec = exo-open --launch WebBrowser https://mail.google.com/mail/u/0/#inbox
- menu-2-4 = " "
- menu-2-4-exec = steam-runtime
- menu-2-5 = " "
- menu-2-5-exec = scrot %F-%S_$wx$h_scrot.png -e 'mv $f ~/images'
- menu-3-0 = " "
- menu-3-0-exec = termite --geometry=900x700 --exec=pacli &
- menu-3-1 = " "
- menu-3-1-exec = xfce4-taskmanager &
- menu-3-2 = " "
- menu-3-2-exec = pavucontrol &
- menu-3-3 = " "
- menu-3-3-exec = gnome-disks &
- menu-3-4 = " "
- menu-3-4-exec = obconf &
- menu-4-0 = " "
- menu-4-0-exec = i3lock-fancy
- menu-4-1 = " "
- menu-4-1-exec = systemctl reboot
- menu-4-2 = " "
- menu-4-2-exec = systemctl poweroff
- [module/time]
- type = internal/date
- interval = 5
- label-foreground = ${colors.foreground}
- date =
- date-alt = " %Y-%m-%d"
- time = %H:%M
- time-alt = %H:%M:%S
- format-prefix =
- format-prefix-foreground = ${colors.foreground}
- ;format-underline = #0a6cf5
- label = %date% %time%
- ;;;;;;;;;;;;;;;;;;;
- ;; Extra Modules
- ;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;
- ;; KEYBOARD ;;
- ;;;;;;;;;;;;;;;
- [module/keyboard]
- type = internal/xkeyboard
- ; List of indicators to ignore
- blacklist-0 = num lock
- blacklist-1 = scroll lock
- format = <label-layout>
- label-layout = %{A1:mintlocale & disown:} %{A3:mintlocale & disown:} %layout%%{A} %{A}
- ;;;;;;;;;;;;;;
- ;; ETHERNET ;;
- ;;;;;;;;;;;;;;
- [module/wired-network]
- type = custom/script
- ;label-background = ${colors.background}
- exec = ~/.config/polybar/network.sh
- click-left = networkmanager_dmenu
- click-right = networkmanager_dmenu
- label-padding = 1
- interval = 1
- tail = true
- ;;;;;;;;;;;;;;
- ;; REDSHIFT ;;
- ;;;;;;;;;;;;;;
- [module/redshift]
- type = custom/script
- interval = 5
- exec = $HOME/.config/polybar/redshift
- label = %output%
- tail = true
- click-left = $HOME/.config/polybar/redshift toggle
- click-right = $HOME/.config/polybar/redshift toggle
- format-online-prefix = " "
- ;;;;;;;;;;;;
- ;; GITHUB ;;
- ;;;;;;;;;;;;
- [module/github]
- type = internal/github
- token = ${~/.config/polybar/github_access.token}
- empty-notifications = false
- ;;;;;;;;;;;;;;;;
- ;; FILESYSTEM ;;
- ;;;;;;;;;;;;;;;;
- [module/filesystem]
- type = internal/fs
- format-mounted = <label-mounted>
- label-mounted = %mountpoint% : %percentage_free%%
- label-mounted-foreground = ${colors.yellow}
- mount-0 = /
- interval = 1200
- fixed-values = false
- spacing = 2
- ;;;;;;;;;
- ;; MPD ;;
- ;;;;;;;;;
- [module/mpd]
- type = internal/mpd
- format-online = <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
- format-offline = <label-offline>
- label-offline = mpd is off
- format-online-prefix = " "
- icon-play =
- icon-pause =
- icon-stop =
- icon-prev =
- icon-next =
- icon-random =
- icon-repeat =
- toggle-on-foreground =
- toggle-off-foreground = #55
- bar-progress-width = 35
- bar-progress-format = %{+o +u}%fill%%{-o -u}%indicator%%{+o +u}%empty%%{-u -o}
- ; bar-progress-indicator = |
- bar-progress-indicator = █
- bar-progress-indicator-foreground = #A85659
- bar-progress-indicator-font = 2
- ; bar-progress-fill = ─
- bar-progress-fill = █
- bar-progress-fill-foreground = #bb
- bar-progress-fill-font = 2
- ; bar-progress-empty = ─
- bar-progress-empty = ▒
- bar-progress-empty-font = 2
- bar-progress-empty-foreground = #44
- ;;;;;;;;;;
- ;; WIFI ;;
- ;;;;;;;;;;
- [module/wireless-network]
- type = internal/network
- interface =
- format-connected = <ramp-signal> <label-connected>
- format-packetloss = <animation-packetloss>
- label-connected = " %local_ip% "
- ramp-signal-0 =
- ramp-signal-0-foreground = #F03051
- ramp-signal-1 =
- ramp-signal-1-foreground = #F07127
- ramp-signal-2 =
- ramp-signal-2-foreground = #F9CE56
- ramp-signal-3 =
- ramp-signal-3-foreground = ${colors.purple}
- ramp-signal-4 =
- ramp-signal-4-foreground = ${colors.purple}
- ramp-signal-5 =
- ramp-signal-5-foreground = ${colors.purple}
- animation-packetloss-0 = ⚠
- animation-packetloss-0-foreground = #ffa64c
- animation-packetloss-1 = 📶
- animation-packetloss-1-foreground = #000000
- animation-packetloss-framerate = 500
- ;;;;;;;;;;;;;;;;
- ;; VOLUME BAR ;;
- ;;;;;;;;;;;;;;;;
- [module/volume-bar]
- type = internal/volume
- format-volume = <label-volume><bar-volume>
- label-volume = " "
- label-volume-foreground = #B6C2E7
- format-muted-foreground = #E76BB4
- label-muted = " mute"
- bar-volume-font = 2
- bar-volume-width = 20
- bar-volume-foreground-0 = #92A3F7
- bar-volume-foreground-1 = #92A3F7
- bar-volume-foreground-2 = #6BB3E7
- bar-volume-foreground-3 = #6BB3E7
- bar-volume-foreground-4 = #6BB3E7
- bar-volume-foreground-5 = #6BE7D8
- bar-volume-foreground-6 = #6BE7D8
- bar-volume-gradient = true
- bar-volume-indicator = |
- bar-volume-fill = •
- bar-volume-empty = ·
- bar-volume-empty-foreground = #666666
- [module/music2]
- type = custom/script
- interval = 2
- label = %output:0:305:...%
- label-padding = 1
- exec = ~/.config/polybar/mpris.sh
- [module/eth]
- type = internal/network
- interface = enp2s0
- interval = 3.0
- format-connected = <label-connected>
- format-connected-prefix = " "
- format-connected-prefix-foreground = ${colors.foreground}
- format-disconnected = <label-disconnected>
- label-connected = %{A1:networkmanager_dmenu:}%downspeed%%{A}
- label-connected-foreground = ${colors.foreground}
- label-disconnected = no connection
- format-padding = 1
- [module/play]
- type = custom/script
- exec = python3 ~/.config/polybar/Play.py
- format-padding = 1
- interval = 2
- format = <label>
- format-foreground = ${colors.foreground}
- ;format-background = ${colors.foreground-alt}
- click-left = playerctl play
- click-right = playerctl pause
- [module/next]
- type = custom/script
- exec = echo
- format-padding = 1
- format = <label>
- format-foreground = ${colors.foreground}
- ;format-background = ${colors.foreground-alt}
- click-left = playerctl next
- [module/previous]
- type = custom/script
- exec = echo
- format-padding = 1
- format = <label>
- format-foreground = ${colors.foreground}
- ;format-background = ${colors.foreground-alt}
- click-left = playerctl previous
- [module/pause]
- type = custom/script
- exec = python3 ~/.config/polybar/Pause.py
- format-padding = 1
- format = <label>
- interval = 2
- format-foreground = ${colors.foreground}
- ;format-background = ${colors.foreground-alt}
- click-left = playerctl pause
- [module/weather]
- type = custom/script
- interval = 10
- format = <label>
- format-prefix = " "
- format-prefix-foreground = ${colors.foreground}
- label-foreground = ${colors.foreground}
- label-padding = 1
- exec = ~/.config/polybar/weather
- format-padding = 1
- [module/rofi]
- type = custom/script
- exec = echo ""
- click-left = rofi -show drun -font "Pilcrow 20" -theme ~/.config/rofi/sidebar.rasi
- format-padding = 1
- [module/now_playing]
- type = custom/script
- exec = "python ~/.config/polybar/now_playing.py"
- tail = true
- format = <label>
- format-prefix = " "
- format-prefix-foreground = ${colors.foreground}
- label = %output%
- label-maxlen = 75
- label-ellipsis = true
- format-margin = 20
- [module/jgmenu]
- type = custom/script
- label = %output%
- label-padding = 1
- interval = 10
- exec = echo ""
- click-left = jgmenu_run xdg
- [bar/powermenubar]
- monitor = HDMI-A-0
- width = 28%
- height = 32
- radius = 0
- background = #DA222222
- foreground = ${colours.foreground}
- border-size = 0
- border-color =${colours.foreground}
- border-bottom-size = 0
- border-bottom-color = ${colours.foreground}
- border-top-size = 0
- border-top-color = ${colours.foreground}
- border-right-size = 0
- ; border-right-color = ${colours.foreground}
- offset-x = 1370
- offset-y = 35
- padding = 3
- module-margin = 2
- separator = %{F#33}|
- font-0 = System San Francisco Display:size=10;2
- font-1 = FontAwesome:size=14;3
- font-2 = MaterialIcons:size=14;4
- ;http://fontawesome.io/cheatsheet/
- ;https://shanfan.github.io/material-icons-cheatsheet/
- modules-center = lock logout suspend reboot poweroff closepowermenubar
- override-redirect = true
- wm-restack = true
- ;;;;;;;;;;;;;;;;;;;;;;;;
- ;; GoRice Config UI ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;
- [module/config]
- type = custom/script
- exec = echo ""
- interval = 5
- label = %output%
- label-padding = 2
- format = <label>
- click-left = ~/.go/bin/gorice dump i3 ~/.gorice/output.yaml.template; ~/bin/config_ui &
- click-right = termite "--exec=$HOME/go/bin/gorice edit i3/current" &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement