i3-dotfiles/polybar/config.ini
2022-02-26 22:52:31 -06:00

274 lines
6 KiB
INI

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
;;
;; ____ __ __
;; / __ \____ / /_ __/ /_ ____ ______
;; / /_/ / __ \/ / / / / __ \/ __ `/ ___/
;; / ____/ /_/ / / /_/ / /_/ / /_/ / /
;; /_/ \____/_/\__, /_.___/\__,_/_/
;; /____/
;;
;; Created By Aditya Shakya @adi1090x
;;
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[color]
bg = #1F1F1F
fg = #FFFFFF
fg-alt = #A9ABB0
#acolor = #00897b
acolor = #787878
curgent = #e53935
coccupied = #1e88e5
## Material Colors
red = #e53935
pink = #d81b60
purple = #8e24aa
deep-purple = #5e35b1
indigo = #3949ab
blue = #1e88e5
light-blue = #039be5
cyan = #00acc1
teal = #00897b
green = #43a047
light-green = #7cb342
lime = #c0ca33
yellow = #fdd835
amber = #ffb300
orange = #fb8c00
deep-orange = #f4511e
brown = #6d4c41
grey = #757575
blue-gray = #546e7a
;==========================================================
[bar/main]
monitor =
width = 100%
height = 20
offset-x = 5%
offset-y = 2%
bottom = false
fixed-center = false
line-size = 1
background = ${color.bg}
foreground = ${color.fg}
border-size = 1
border-color = ${color.bg}
module-margin-left = 1
module-margin-right = 1
;==========================================================
font-0 = "Fantasque Sans Mono:pixelsize=11;2"
font-1 = "Material Icons:size=11;4"
font-2 = "Noto Sans:size=9;2"
font-3 = "Iosevka Nerd Font:size=11;2"
font-4 = "Iosevka Nerd Font:size=16;3"
;==========================================================
cursor-click = pointer
;tray-position = right
;tray-padding = 0
;tray-maxsize = 16
enable-ipc = true
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
;== Module Location ========================================================
modules-left = menu workspaces term files browser settings
modules-right = mpd pkg volume battery network vpn date powermenu
#modules-center = date
;== Modules ========================================================
[module/menu]
type = custom/text
content =
;alt-icon = 
content-padding = 2
content-background = ${color.acolor}
content-foreground = ${color.fg}
click-left = $HOME/.config/polybar/scripts/menu
click-middle = $HOME/.config/polybar/scripts/menu_full
click-right = $HOME/.config/polybar/scripts/color-switch.sh
[module/workspaces]
type = internal/xworkspaces
pin-workspaces = false
enable-click = true
enable-scroll = true
format-padding = 0
icon-0 = 1;
icon-1 = 2;
icon-2 = 3;
icon-3 = 4;
icon-4 = 5;
icon-5 = 6;6
icon-default =
format = <label-state>
label-active = %icon%
label-occupied = %icon%
label-urgent = %icon%
label-empty = %icon%
label-occupied-padding = 2
label-empty-padding = 2
label-urgent-padding = 2
label-active-padding = 2
label-active-foreground = ${color.acolor}
label-urgent-foreground = ${color.curgent}
label-empty-foreground = ${color.fg}
label-occupied-foreground = ${color.coccupied}
label-active-underline = ${color.acolor}
label-urgent-underline = ${color.curgent}
label-occupied-underline = ${color.coccupied}
[module/term]
type = custom/text
content =
content-foreground = ${color.fg-alt}
click-left = gnome-terminal &
[module/files]
type = custom/text
content =
content-padding = 1
content-foreground = ${color.fg-alt}
click-left = nautilus &
[module/browser]
type = custom/text
content =
content-padding = 1
content-foreground = ${color.fg-alt}
click-left = google-chrome-stable &
click-right = firefox &
[module/settings]
type = custom/text
content =
content-padding = 1
content-foreground = ${color.fg-alt}
click-left = gnome-control-center sound &
click-right = gnome-control-center network &
[module/vpn]
type = custom/script
exec = $HOME/.config/polybar/scripts/vpn.sh
interval = 60
;==========================================================
[module/mpd]
type = internal/mpd
;format-online = <toggle> <label-song>
format-online =  <label-song>
icon-play =
icon-pause =
label-song-maxlen = 25
label-song-ellipsis = true
;==========================================================
[module/pkg]
type = custom/script
exec = $HOME/.config/polybar/scripts/updates.sh
;exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
;label = %{A1:termite -e "aurman -Syyu" & disown:} %{A3:termite -e "aurman -Syyu" & disown:}%output%%{A} %{A}
tail = true
[module/battery]
type = internal/battery
full-at = 99
time-format = %H:%M
battery = BAT0
adapter = AC0
format-charging = <animation-charging> <label-charging>
;label-charging = %percentage%% (%time%)
label-charging = %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
;label-discharging = %percentage%% (%time%)
label-discharging = %percentage%%
format-full = <label-full>
format-full-prefix = " "
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
ramp-capacity-0-foreground = ${color.red}
ramp-capacity-foreground = ${color.fg}
bar-capacity-width = 10
animation-charging-0 = ""
animation-charging-1 = ""
animation-charging-2 = ""
animation-charging-3 = ""
animation-charging-4 = ""
animation-charging-framerate = 750
[module/volume]
type = internal/alsa
;speaker-mixer = Speaker
;headphone-mixer = Headphone
;headphone-id = 16
;mapped = true
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
format-muted-prefix = " "
label-muted = MUTE
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
ramp-volume-3 =
ramp-volume-4 =
ramp-volume-5 =
ramp-volume-6 =
[module/network]
type = custom/script
exec = $HOME/.config/polybar/scripts/check-network
click-left = networkmanager_dmenu &
click-right = gnome-control-center network &
tail = true
[module/date]
type = internal/date
interval = 30
label = %time%
time =  %H:%M %p %d-%m-%Y
time-alt =  %H:%M %p %d-%m-%Y
[module/powermenu]
type = custom/text
content =
content-padding = 2
content-foreground = ${color.fg}
click-left = $HOME/.config/polybar/scripts/sysmenu
click-right = $HOME/.config/polybar/scripts/sysmenu
;== EOF ========================================================