dots/configs/home/.config/polybar/config.ini

445 lines
8.8 KiB
INI
Raw Permalink Normal View History

2022-04-03 01:11:04 +02:00
[fonts]
2024-04-29 19:05:39 +02:00
opensansreg = Sarabun:Regular:size=7.5
opensanssemibold = Sarabun:SemiBold:size=7.5
opensansbold = Sarabun:Bold:size=7.5
opensansboldhigh = Sarabun:Bold:size=11
opensansital = Sarabun:Italic:size=9
2022-04-03 01:11:04 +02:00
xos = xos4\ Terminus:size=14;0
nerd = TerminessTTF Nerd Font:size=12;0
nerdsym = Symbols Nerd Font:size=12
[colors]
light-red = #D95B5B
2023-10-27 19:56:44 +02:00
light-green = #249824
2022-04-03 01:11:04 +02:00
light-purple = #A44BA0
menucol-yellow = #F7F272
menucol-blue = #1771F1
menucol-orange = #FFAF60
menucol-red = #F85C50
menucol-green = #77BD8B
menucol-sealine = #00CF91
menucol-purple = #9A76B3
menucol-pink = #FF77BF
menucol-deepblue = #6560FF
menucol-lightblue = #60FFF7
menucol-peagreen = #30C154
menucol-eth = #ADD8E6
orangebby = #ddcc4738
fav-purple = #6633FF
uwu-purple = #000B1E
uwutp-purple = #dd000B1E
blackbaby = #dd0f0f0f
dark = #111
dark-red = #311
dark-green = #131
dark-purple = #201134
light = #eee
gray = #999
dark-gray = #333
2024-04-29 19:05:39 +02:00
mainbg = #c9000000
2023-10-27 19:56:44 +02:00
oldmainbg = #212121
2022-04-03 01:11:04 +02:00
2024-04-29 19:05:39 +02:00
[scripts]
weatherz = ~/.config/polybar/Scripts/weatherz.sh
weatherj = ~/.config/polybar/Scripts/weatherj.sh
nvidiatemps = ~/.config/polybar/Scripts/nvidiatemps.sh
mediaplyer = ~/.config/polybar/Scripts/player.sh
popupcalendar = ~/.config/polybar/Scripts/popup-calendar.sh
gamemoderun = ~/.config/polybar/Scripts/gmr.sh
2022-04-03 01:11:04 +02:00
[bar/main]
2023-10-27 19:56:44 +02:00
2022-04-03 01:11:04 +02:00
enable-ipc = true
override-redirect = false
2023-10-27 19:56:44 +02:00
monitor = ${env:MONITOR:DP-1}
2022-04-03 01:11:04 +02:00
2023-10-27 19:56:44 +02:00
fixed-center = true
2022-04-03 01:11:04 +02:00
bottom = false
2024-04-29 19:05:39 +02:00
width = 6%
2023-10-27 19:56:44 +02:00
height = 20px
2024-04-29 19:05:39 +02:00
offset-y = 0
offset-x = 0
2023-10-27 19:56:44 +02:00
padding = 0
2022-04-03 01:11:04 +02:00
2023-10-27 19:56:44 +02:00
background = ${colors.mainbg}
2022-04-03 01:11:04 +02:00
foreground = ${colors.light}
line-color = ${colors.light-purple}
line-size = 3
;separator = " | "
;List of fonts
font-0 = ${fonts.opensansreg}
font-1 = ${fonts.opensanssemibold}
font-2 = ${fonts.opensansbold}
font-3 = ${fonts.opensansital}
font-4 = ${fonts.xos}
font-5 = ${fonts.nerd}
font-6 = ${fonts.opensansboldhigh}
wm-restack = bspwm
modules-left = bspwm
2023-10-27 19:56:44 +02:00
;modules-center = mediaplayer media
;modules-right = layout memory memoryswap cpu popup-calendar pulse
[bar/main2]
enable-ipc = true
override-redirect = false
monitor = ${env:MONITOR:DP-1}
background = ${colors.mainbg}
foreground = ${colors.light}
line-color = ${colors.light-purple}
line-size = 3
font-0 = ${fonts.opensansreg}
font-1 = ${fonts.opensanssemibold}
font-2 = ${fonts.opensansbold}
font-3 = ${fonts.opensansital}
font-4 = ${fonts.xos}
font-5 = ${fonts.nerd}
font-6 = ${fonts.opensansboldhigh}
wm-restack = bspwm
bottom = false
2024-04-29 19:05:39 +02:00
width = 70% ;65.5%
2023-10-27 19:56:44 +02:00
height = 20px
offset-y = 0 ;+5
offset-x = 6%
padding = 0
fixed-center = true
2024-04-29 19:05:39 +02:00
modules-left = weatherj weatherz
2022-04-03 01:11:04 +02:00
modules-center = mediaplayer media
2023-10-27 19:56:44 +02:00
modules-right = nvidiatemps
2022-04-03 01:11:04 +02:00
2023-10-27 19:56:44 +02:00
[bar/main3]
enable-ipc = true
override-redirect = false
2022-04-03 01:11:04 +02:00
monitor = ${env:MONITOR:DP-1}
2023-10-27 19:56:44 +02:00
background = ${colors.mainbg}
2024-04-29 19:05:39 +02:00
foreground = ${colors.light}
2023-10-27 19:56:44 +02:00
line-color = ${colors.light-purple}
line-size = 3
font-0 = ${fonts.opensansreg}
font-1 = ${fonts.opensanssemibold}
font-2 = ${fonts.opensansbold}
font-3 = ${fonts.opensansital}
font-4 = ${fonts.xos}
font-5 = ${fonts.nerd}
font-6 = ${fonts.opensansboldhigh}
wm-restack = bspwm
bottom = false
2024-04-29 19:05:39 +02:00
width = 24%
2023-10-27 19:56:44 +02:00
height = 20px
offset-y = 0 ;+5
2024-04-29 19:05:39 +02:00
offset-x = 76%
2023-10-27 19:56:44 +02:00
padding = 0
2024-04-29 19:05:39 +02:00
fixed-center = false
2023-10-27 19:56:44 +02:00
tray-position = right
2024-04-29 19:05:39 +02:00
tray-padding = 0
tray-offset-x = 0 ;145
2023-10-27 19:56:44 +02:00
tray-offset-y = 0
2024-04-29 19:05:39 +02:00
tray-detached = false
2023-10-27 19:56:44 +02:00
modules-left =
modules-center =
modules-right = gmr updates layout memory memoryswap cpu popup-calendar
[bar/secondary]
monitor = ${env:MONITOR:HDMI-0}
2022-04-03 01:11:04 +02:00
enable-ipc = true
override-redirect = false
bottom = false
2024-04-29 19:05:39 +02:00
width = 100%
2023-10-27 19:56:44 +02:00
height = 20px
offset-y = 0 ;+5
offset-x = 0 ;+8
2022-04-03 01:11:04 +02:00
2023-10-27 19:56:44 +02:00
background = ${colors.mainbg}
2022-04-03 01:11:04 +02:00
foreground = ${colors.light}
line-color = ${colors.light-purple}
line-size = 3
;separator = " | "
;List of fonts
font-0 = ${fonts.opensansreg}
font-1 = ${fonts.opensanssemibold}
font-2 = ${fonts.opensansbold}
font-3 = ${fonts.opensansital}
font-4 = ${fonts.xos}
font-5 = ${fonts.nerd}
font-6 = ${fonts.opensansboldhigh}
wm-restack = bspwm
;tray-position = right
modules-left = bspwm
2023-10-27 19:56:44 +02:00
modules-center =
2022-04-03 01:11:04 +02:00
modules-right =
2023-10-27 19:56:44 +02:00
2022-04-03 01:11:04 +02:00
[bar/third]
monitor = ${env:MONITOR:DP-2}
enable-ipc = true
override-redirect = false
bottom = false
width = 100%
2023-10-27 19:56:44 +02:00
height = 20px
2022-04-03 01:11:04 +02:00
background = ${colors.blackbaby}
foreground = ${colors.light}
line-color = ${colors.light-purple}
line-size = 3
;separator = " | "
;List of fonts
font-0 = ${fonts.opensansreg}
font-1 = ${fonts.opensanssemibold}
font-2 = ${fonts.opensansbold}
font-3 = ${fonts.opensansital}
font-4 = ${fonts.xos}
font-5 = ${fonts.nerd}
font-6 = ${fonts.opensansboldhigh}
wm-restack = bspwm
tray-position = left
modules-left = bspwm
modules-center =
modules-right =
2023-10-27 19:56:44 +02:00
;weather
2024-04-29 19:05:39 +02:00
[module/weatherz]
2023-10-27 19:56:44 +02:00
type = custom/script
format = <label>
format-padding = 2
2024-04-29 19:05:39 +02:00
exec = ${scripts.weatherz}
2023-10-27 19:56:44 +02:00
interval = 600
label-font = 3
;format-underline = ${colors.menucol-blue}
format-foreground = ${colors.menucol-white}
2024-04-29 19:05:39 +02:00
[module/weatherj]
2023-10-27 19:56:44 +02:00
type = custom/script
format = <label>
format-padding = 2
2024-04-29 19:05:39 +02:00
exec = ${scripts.weatherj}
2023-10-27 19:56:44 +02:00
interval = 600
label-font = 3
;format-underline = ${colors.menucol-blue}
format-foreground = ${colors.menucol-white}
;nvidiatemps
[module/nvidiatemps]
type = custom/script
format = <label>
format-padding = 2
2024-04-29 19:05:39 +02:00
exec = ${scripts.nvidiatemps}
2023-10-27 19:56:44 +02:00
interval = 4
label-font = 3
2022-04-03 01:11:04 +02:00
;Date correction
[module/date]
type = internal/date
time = %H:%M
date = %A, %B %d
date-alt = %A, %B %d, %Y
time-alt = %H:%M:%S
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-padding = 2
format-underline = ${colors.menucol-orange}
format-foreground = ${colors.menucol-orange}
interval = 20
label = %date%, %time%
label-font = 2
label-foreground = ${colors.light}
;Checkupdates
[module/updates]
type = custom/script
format = <label>
2023-10-27 19:56:44 +02:00
exec = checkupdates | wc -l
;tail = true
2022-04-03 01:11:04 +02:00
interval = 600
label-font = 3
label-foreground = ${colors.light}
label-layout-foreground = ${colors.light}
2023-10-27 19:56:44 +02:00
click-left = st -e yay
2022-04-03 01:11:04 +02:00
format-padding = 2
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-foreground = ${colors.menucol-peagreen}
format-underline = ${colors.menucol-peagreen}
;Workspaces
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
;strip-wsnumbers = true
index-sort = true
format = <label-state> <label-mode>
label-dimmed-underline = ${colors.background}
;On editing mode (resize for ex)
label-mode = %mode%
label-mode-background = ${colors.dark-purple}
label-mode-underline = ${colors.fav-purple}
2023-10-27 19:56:44 +02:00
label-mode-padding = 2
2022-04-03 01:11:04 +02:00
label-mode-font = 3
; the %name% were %index%
label-focused = %name%
2023-10-27 19:56:44 +02:00
label-focused-background = ${colors.dark-purple}
label-focused-underline = ${colors.light-purple}
label-focused-padding = 3
2022-04-03 01:11:04 +02:00
label-focused-font = 3
label-unfocused = %name%
label-unfocused-foreground = ${colors.gray}
2023-10-27 19:56:44 +02:00
label-unfocused-padding = 4
2022-04-03 01:11:04 +02:00
label-unfocused-font = 3
label-visible = %name%
label-visible-background = ${colors.dark-purple}
label-visible-underline = ${colors.light-purple}
2023-10-27 19:56:44 +02:00
label-visible-padding = 4
2022-04-03 01:11:04 +02:00
label-visible-font = 3
label-urgent = %name%
label-urgent-background = ${colors.dark-red}
label-urgent-underline = ${colors.light-red}
2023-10-27 19:56:44 +02:00
label-urgent-padding = 4
2022-04-03 01:11:04 +02:00
label-urgent-font = 3
[module/mediaplayer]
type = custom/script
format = <label>
format-padding = 2
2024-04-29 19:05:39 +02:00
exec = ${scripts.mediaplayer}
2022-04-03 01:11:04 +02:00
exec-if = playerctl status
interval = 0.5
label-font = 3
click-middle = playerctl play-pause
format-underline = ${colors.menucol-blue}
format-foreground = ${colors.menucol-blue}
[module/popup-calendar]
type = custom/script
2024-04-29 19:05:39 +02:00
exec = ${scripts.popupcalendar}
2022-04-03 01:11:04 +02:00
label-font = 3
label-foreground = ${colors.light}
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-padding = 2
format-underline = ${colors.menucol-orange}
format-foreground = ${colors.menucol-orange}
interval = 5
2024-04-29 19:05:39 +02:00
click-left = ${scripts.popupcalendar} --popup &
2022-04-03 01:11:04 +02:00
2023-10-27 19:56:44 +02:00
[module/gmr]
2022-04-03 01:11:04 +02:00
type = custom/script
2024-04-29 19:05:39 +02:00
exec = ${scripts.gamemoderun}
2023-10-27 19:56:44 +02:00
interval = 15
2022-04-03 01:11:04 +02:00
format = <label>
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
format-underline = ${colors.uwutp-purple}
label-font = 3
2022-04-03 01:11:04 +02:00
format-padding = 2
[module/layout]
type = internal/xkeyboard
blacklist-0 = num lock
blacklist-1 = caps lock
blacklist-2 = scroll lock
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-underline = ${colors.menucol-blue}
format-foreground = ${colors.menucol-blue}
format-padding = 3
label-layout = %layout%
label-layout-font = 2
label-layout-foreground = ${colors.light}
[module/cpu]
type = internal/cpu
interval = 3
format = <label>%
format-padding = 2
format-underline = ${colors.menucol-red}
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-prefix-foreground = ${colors.menucol-red}
label = " %percentage%"
label-font = 3
[module/memory]
type = internal/memory
interval = 3
format = <label>
format-padding = 2
format-underline = ${colors.menucol-purple}
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-prefix-foreground = ${colors.menucol-purple}
label = " %gb_used%"
label-font = 3
[module/memoryswap]
type = internal/memory
interval = 3
format = <label>
format-padding = 2
format-underline = ${colors.menucol-pink}
2023-10-27 19:56:44 +02:00
format-prefix = " "
format-suffix = " "
2022-04-03 01:11:04 +02:00
format-prefix-foreground = ${colors.menucol-pink}
label = " %gb_swap_used%"
label-font = 3