dotfiles/polybar/.config/polybar/config.ini

245 lines
6.4 KiB
INI

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
; dark
[colors]
background = #0B0A07
background-alt = #0B0A07
background-inactive = #0B0A07
foreground = #cccccc
foreground-alt = #69caf0
;primary = #69caf0
;secondary = #e60053
underline-active = #69caf0
underline-inactive = #0B0A07
alert = #bd2c40
; transparent
[colors2]
background = #99000000
background-alt = #99000000
background-inactive = #30000000
foreground = #ffffff
foreground-alt = #ffffff
primary = #ffffff
secondary = #000000
alert = #bd2c40
; grey
[colors3]
background = #dddddd
background-alt = #dddddd
background-inactive = #50eeeeee
foreground = #111111
foreground-alt = #111111
primary = #dddddd
secondary = #dddddd
alert = #bd2c40
[bar/main]
monitor = ${env:MONITOR:HDMI-0}
width = 100%
height = 27
;offset-x = 1%
;offset-y = 1%
radius = 0
fixed-center = false
separator =
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 0px
padding-right = 0px
module-margin-left = 1
module-margin-right = 2
;font-0 = fixed:pixelsize=10;1
font-0 = FuraMono Nerd Font:pixelsize=10
font-1 = Source Han Sans JP,源ノ角ゴシック JP:style=Regular
font-2 = NotoSansMono Nerd Font:style=Regular
font-3 = FontAwesome6Free
font-4 = FontAwesome6Free:style=Solid
modules-left = i3 title
modules-center =
modules-right = pacman memory cpu filesystem weather wireless-network volume date
tray-position = right
tray-padding = 0
scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
strip-wsnumbers = false
; Only show workspaces on the same output as the bar
;pin-workspaces = 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 = 0;十
label-mode-padding = 1
;label-mode-foreground = #000
;label-mode-background = ${colors.underline-active}
; focused = Active workspace on focused monitor
label-focused = %icon%
label-focused-background = ${colors.background-alt}
label-focused-foreground = ${colors.foreground}
label-focused-underline= ${colors.underline-active}
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-background = ${colors.background-inactive}
label-unfocused-foreground = ${colors.foreground}
label-unfocused-underline= ${colors.underline-inactive}
label-unfocused-padding = 1
; visible = Active workspace on unfocused monitor
label-visible = %icon%
label-visible-background = ${self.label-focused-background}
label-visible-foreground = ${colors.foreground}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %icon%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
[module/date]
type = internal/date
interval = 1.0
;date = %{A1:alacritty -e calcurse:} %A, %B %d, %Y %I:%M:%S %p %{A}
date = %{A1:alacritty -e calcurse:} %b %d %I:%M:%S %p %{A}
format-prefix = 📅
format-prefix-foreground = ${colors.foreground-alt}
[module/filesystem]
type = internal/fs
interval = 3600
mount-0 = /
mount-1 = /home
format-mounted-prefix =
format-mounted-prefix-foreground = ${colors.foreground-alt}
label-mounted = %{A1:alacritty --hold -e df -h:} %mountpoint%: %percentage_used%% %{A}
[module/cpu]
type = internal/cpu
interval = 10
warn-percentage = 95
label = %{A1:alacritty -e htop:} CPU %percentage%% %{A}
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
[module/title]
type = internal/xwindow
format-background = ${colors.background-alt}
format-foreground = ${colors.foreground}
format-padding = 2
label-underline = ${colors.underline-active}
label-maxlen = 30
[module/memory]
type = internal/memory
interval = 10
warn-percentage = 95
format = <label>
label = RAM %percentage_used%%
bar-used-width = 50
bar-used-indicator =
bar-used-fill =
bar-used-empty =
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
[module/wireless-network]
type = internal/network
interface = wlan0
interval = 10
label-connected = %essid% %signal%%
format-background = #444444
format-connected-prefix =
format-connected-prefix-foreground = ${colors.foreground-alt}
[module/weather]
type = custom/script
exec = ~/scripts/i3_weather.sh
interval = 3600
click-left = alacritty --hold -e curl -Ss http://wttr.in
format-prefix-foreground = ${colors.foreground-alt}
[module/finance]
type = custom/script
format-prefix = " "
exec = ~/scripts/i3_finance.sh
format-prefix-foreground = ${colors.foreground-alt}
interval = 3600
[module/pacman]
type = custom/script
exec = ~/scripts/i3_pacman.sh
interval = 3600
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
[module/volume]
type = custom/script
exec = ~/scripts/i3_volume.sh
interval = 3600
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
click-left = pavucontrol
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini