Advertisement
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/jaagr/polybar #
- # #
- # The README contains alot of information #
- # #
- #####################################################
- #########################
- # GENERAL #
- #########################
- [settings]
- screenchange-reload = true
- ;compositing-background = xor
- ;compositing-background = screen
- ;compositing-foreground = source
- ;compositing-border = over
- [global/wm]
- margin-top = 0
- margin-bottom = 0
- ;vim:ft=dosini
- #########################
- # COLORS #
- #########################
- [colors]
- background = #303d44
- background-alt = #4f6571
- foreground = #eeeeee
- foreground-alt = #4f6571
- transparent = #00ffffff
- alert = #d8d782
- #########################
- # BAR/TOP #
- #########################
- [bar/top]
- locale = sk_SK.UTF-8
- monitor = ${env:MONITOR:DVI-I-1}
- monitor-fallback = HDMI-0
- monitor-strict = false
- ;fixed-center = true
- ;wm-restack = i3
- ;override-redirect = true
- ;enable-ipc = true
- width = 100%
- height = 21
- ;offset-x = 0
- ;offset-y = 0
- ;radius = 6.0
- background = ${colors.background}
- foreground = ${colors.foreground}
- line-size = 0
- line-color = #303d44
- border-size = 4
- border-color = #00000000
- padding-left = 0
- padding-right = 0
- module-margin-left = 0
- module-margin-right = 0
- modules-left = i3
- modules-center =
- modules-right = volume root home trash packages cpu temperature memory date powermenu
- font-0 = Hack:weight=Regular:pixelsize=11;2
- font-1 = Hack:weight=Regular:size=10:antialias=false;0
- font-2 = Hack:weight=Regular:pixelsize=14;2
- font-3 = FontAwesome:pixelsize=11;2
- tray-position = right
- tray-padding = 2
- tray-detached = false
- ;tray-transparent = true
- ;tray-background = #4f6571
- click-left = gsimplecal
- click-right = exo-open --launch TerminalEmulator
- click-middle = rofi -show run -sidebar-mode
- scroll-up = i3wm-wsnext
- scroll-down = i3wm-wsprev
- double-click-left =
- double-click-middle =
- double-click-right =
- #########################
- # FILESYSTEM #
- #########################
- [module/filesystem]
- type = internal/fs
- interval = 10
- format-mounted = <label-mounted>
- mount-0 = /
- ;mount-1 = /home
- label-padding = 0
- label-mounted = " %free% "
- label-mounted-background = ${colors.background}
- label-mounted-foreground = ${colors.foreground}
- label-unmounted = %mountpoint% not mounted
- label-unmounted-foreground = ${colors.background}
- format-mounted-prefix-font = 3
- format-mounted-suffix-font = 3
- format-mounted-prefix-padding = 0
- format-mounted-suffix-padding = 0
- format-mounted-suffix =
- format-mounted-suffix-background = ${colors.background}
- format-mounted-suffix-foreground = ${colors.background-alt}
- [module/root]
- type = custom/script
- interval = 1
- format = <label>
- format-suffix-font = 3
- format-suffix-padding = 0
- format-suffix =
- format-suffix-background = ${colors.background}
- format-suffix-foreground = ${colors.background-alt}
- label-background = ${colors.background}
- label-foreground = ${colors.foreground}
- exec = ~/.config/polybar/root
- click-left = pcmanfm -n /
- [module/home]
- type = custom/script
- interval = 1
- format = <label>
- format-suffix-font = 3
- format-suffix-padding = 0
- format-suffix =
- format-suffix-background = ${colors.background-alt}
- format-suffix-foreground = ${colors.background}
- label-background = ${colors.background-alt}
- label-foreground = ${colors.foreground}
- exec = ~/.config/polybar/home
- click-left = pcmanfm -n $HOME
- [module/trash]
- type = custom/script
- interval = 1
- exec = ~/.config/polybar/trash
- format-suffix-font = 3
- format-prefix = " "
- format-prefix-background = ${colors.background}
- format-prefix-foreground = ${colors.foreground}
- format-suffix = " "
- format-suffix-background = ${colors.background}
- format-suffix-foreground = ${colors.background-alt}
- format-prefix-padding-left = 0
- format-prefix-padding-right = 0
- label-background = ${colors.background}
- label-foreground = ${colors.foreground}
- label-padding = 0
- click-left = pcmanfm -n ~/.local/share/Trash/files
- click-right = rm -rf ~/.local/share/Trash/files/* ;exec notify-send 'Kôš vyprázdnený'"
- #########################
- # i3WM #
- #########################
- [module/i3]
- type = internal/i3
- format = <label-state> <label-mode>
- index-sort = true
- wrapping-scroll = true
- fuzzy-match = false
- strip-wsnumbers = true
- pin-workspaces = false
- reverse-scroll = true
- ; focused = Active workspace on focused monitor
- label-focused = %icon%
- label-focused-background = ${colors.background-alt}
- label-focused-foreground = ${colors.foreground}
- label-focused-padding = 1
- ; unfocused = Inactive workspace on any monitor
- label-unfocused = %icon%
- label-unfocused-background = ${colors.background}
- label-unfocused-foreground = ${colors.foreground}
- label-unfocused-padding = 1
- ; visible = Active workspace on unfocused monitor
- label-visible = %icon%
- label-visible-background = ${colors.background-alt}
- label-visible-foreground = ${colors.background}
- label-visible-padding = 1
- ; urgent = Workspace with urgency hint set
- label-urgent = %icon%
- label-urgent-background = ${colors.background}
- label-urgent-foreground = ${colors.alert}
- label-urgent-padding = 1
- ; ws-icon-[0-9]+ = label;icon
- ; ; NOTE: The label needs to match the name of the i3 workspace
- 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-10 = 11:;
- ws-icon-11 = 12:;
- ws-icon-default =
- #########################
- # CPU #
- #########################
- [module/cpu]
- type = internal/cpu
- interval = 0.5
- format = <label>
- format-suffix-font = 3
- format-suffix = " "
- format-suffix-background = ${colors.background}
- format-suffix-foreground = ${colors.background-alt}
- label = " %percentage%%"
- label-background = ${colors.background}
- label-foreground = ${colors.foreground}
- label-padding = 0
- #########################
- # TEMPERATURE #
- #########################
- [module/temperature]
- type = internal/temperature
- thermal-zone = 0
- interval = 10
- warn-temperature = 60
- format = <label>
- format-suffix = " "
- format-suffix-background = ${colors.background-alt}
- format-suffix-foreground = ${colors.background}
- format-suffix-font =3
- format-warn = <label-warn>
- label = " %temperature%"
- label-padding = 0
- label-background = ${colors.background-alt}
- label-foreground = ${colors.foreground}
- label-warn = " %temperature%"
- label-warn-foreground = #ad8b85
- #########################
- # MEMORY #
- #########################
- [module/memory]
- type = internal/memory
- interval = 0.5
- format-suffix = " "
- format-suffix-background = ${colors.background}
- format-suffix-foreground = ${colors.background-alt}
- format-suffix-font =3
- label = " %percentage_used%%"
- label-background = ${colors.background}
- label-foreground = ${colors.foreground}
- label-padding = 0
- #########################
- # DATE #
- #########################
- [module/date]
- type = internal/date
- interval = 1
- date =
- date-alt = " %a * %d.%m.%Y"
- time = %H:%M
- time-alt = %H:%M
- format-suffix-font = 3
- format-suffix = " "
- format-suffix-foreground = ${colors.background}
- format-background = ${colors.background-alt}
- format-foreground = ${colors.foreground}
- label = %date% %time%
- label-padding = 0
- #########################
- # VOLUME #
- #########################
- [module/volume]
- type = internal/volume
- format-volume = <ramp-volume><label-volume>
- format-muted = <label-muted>
- label-volume = %percentage%%
- label-volume-background = ${colors.background-alt}
- label-volume-foreground = ${colors.foreground}
- label-muted = " muted"
- label-muted-background = ${colors.background-alt}
- label-muted-foreground = ${colors.foreground}
- format-volume-padding = 0
- format-muted-padding = 0
- format-volume-prefix-font = 3
- format-volume-prefix =
- format-volume-prefix-background = ${colors.background}
- format-volume-prefix-foreground = ${colors.background-alt}
- format-volume-suffix-font = 3
- format-volume-suffix = " "
- format-volume-suffix-background = ${colors.background-alt}
- format-volume-suffix-foreground = ${colors.background}
- format-muted-prefix-font = 3
- format-muted-prefix =
- format-muted-prefix-background = ${colors.background}
- format-muted-prefix-foreground = ${colors.background-alt}
- format-muted-suffix-font = 3
- format-muted-suffix = " "
- format-muted-suffix-background = ${colors.background-alt}
- format-muted-suffix-foreground = ${colors.background}
- ramp-volume-0 = " "
- ramp-volume-1 = " "
- ramp-volume-2 = " "
- ramp-volume-3 = " "
- ramp-volume-4 = " "
- ramp-volume-5 = " "
- ramp-volume-6 = " "
- ramp-headphones-0 = " "
- ramp-volume-0-background = ${colors.background-alt}
- ramp-volume-0-foreground = ${colors.foreground}
- ramp-volume-1-background = ${colors.background-alt}
- ramp-volume-1-foreground = ${colors.foreground}
- ramp-volume-2-background = ${colors.background-alt}
- ramp-volume-2-foreground = ${colors.foreground}
- ramp-volume-3-background = ${colors.background-alt}
- ramp-volume-3-foreground = ${colors.foreground}
- ramp-volume-4-background = ${colors.background-alt}
- ramp-volume-4-foreground = ${colors.foreground}
- ramp-volume-5-background = ${colors.background-alt}
- ramp-volume-5-foreground = ${colors.foreground}
- ramp-volume-6-background = ${colors.background-alt}
- ramp-volume-6-foreground = ${colors.foreground}
- ramp-headphones-0-background = ${colors.foreground}
- ramp-headphones-0-foreground = ${colors.background-alt}
- ramp-volume-0-padding-left = 0
- ramp-volume-0-padding-right = 0
- ramp-volume-1-padding-left = 0
- ramp-volume-1-padding-right = 0
- ramp-volume-2-padding-left = 0
- ramp-volume-2-padding-right = 0
- ramp-volume-3-padding-left = 0
- ramp-volume-3-padding-right = 0
- ramp-volume-4-padding-left = 0
- ramp-volume-4-padding-right = 0
- ramp-volume-5-padding-left = 0
- ramp-volume-5-padding-right = 0
- ramp-volume-6-padding-left = 0
- ramp-volume-6-padding-right = 0
- ramp-headphones-0-padding-left = 0
- ramp-headphones-0-padding-right = 0
- #########################
- # PACKAGES #
- #########################
- [module/packages]
- type = custom/script
- interval = 1
- format = <label>
- format-suffix-font = 3
- format-suffix-padding = 0
- format-suffix =
- format-suffix-background = ${colors.background-alt}
- format-suffix-foreground = ${colors.background}
- label-background = ${colors.background-alt}
- label-foreground = ${colors.foreground}
- exec = ~/.config/polybar/packages
- click-left = pamac-updater
- click-right = pamac-manager
- click-middle = octopi
- #########################
- # POWERMENU #
- #########################
- [module/powermenu]
- type = custom/menu
- format-spacing = 1
- label-open =
- label-open-padding = 1
- label-open-foreground = ${colors.foreground}
- label-close =
- label-close-foreground = ${colors.alert}
- ;label-separator = |
- ;label-separator-foreground = ${colors.foreground-alt}
- menu-0-0 = " "
- menu-0-0-exec = shutdown -r now
- menu-0-1 = " "
- menu-0-1-exec = shutdown -h now
- ;menu-0-0 = " "
- ;menu-0-0-exec = menu-open-1
- ;menu-0-1 = " "
- ;menu-0-1-exec = menu-open-2
- ;menu-1-0 =
- ;menu-1-0-exec = menu-open-0
- ;menu-1-1 =
- ;menu-1-1-exec = shutdown -r now
- ;menu-2-0 =
- ;menu-2-0-exec = shutdown -h now
- ;menu-2-1 =
- ;menu-2-1-exec = menu-open-0
- ROOT:
- #!/bin/bash
- DIR=$(df -h / | grep dev | awk -F ' ' '{ print $4 }' | sed 's/\G//')
- if [[ "${DIR}" ]]; then
- echo " ${DIR} GB "
- fi
- HOME:
- #!/bin/bash
- DIR=$(df -h /home | grep dev | awk -F ' ' '{ print $4 }' | sed 's/\G//')
- if [[ "${DIR}" ]]; then
- echo " ${DIR} GB "
- fi
- TRASH:
- #!/bin/bash
- TRASH_DIRECTORY="${BLOCK_INSTANCE}"
- if [[ "${TRASH_DIRECTORY}" = "" ]]; then
- TRASH_DIRECTORY="${XDG_DATA_HOME:-${HOME}/.local/share}/Trash"
- fi
- # Left click
- if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
- xdg-open "${TRASH_DIRECTORY}/files"
- # Right click
- elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then
- # Delete all files permanently (unlink them)
- rm -r "${TRASH_DIRECTORY}/files"
- rm -r "${TRASH_DIRECTORY}/info"
- exec paplay ~/.sounds/freedesktop/stereo/trash-empty.oga
- # Create new directory
- mkdir "${TRASH_DIRECTORY}/files"
- mkdir "${TRASH_DIRECTORY}/info"
- fi
- TRASH_COUNT=$(ls -A -U -1 "${TRASH_DIRECTORY}/files" | wc -l)
- echo "${TRASH_COUNT}"
- PACKAGES:
- #!/usr/bin/bash
- PACKAGE_COUNT=$(pacman -Q | wc -l)
- if [[ "${PACKAGE_COUNT}" -gt 0 ]]; then
- echo " ${PACKAGE_COUNT} "
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement