dotfiles/.config/polybar/config

611 lines
13 KiB
INI

=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = #00
background-alt = #00
;foreground = ${xrdb:color3:#222}
;foreground-alt = ${xrdb:color3:#222}
;primary = ${xrdb:color1:#222}
;secondary = ${xrdb:color2:#222}
foreground = #FFFFFF
foreground-alt = #FFFFFF
primary = #FFFFFF
secondary = #FFFFFF
alert = ${xrdb:color3:#222}
[bar/bar1]
width = 100%
height = 25
radius = 0
fixed-center = true
bottom = false
monitor=${env:MONITOR:}
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
border-size = 10
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 3
module-margin-right = 0
font-0 = "Hack":pixelsize=12;1"
font-1 = unifont:fontformat=truetype:size=12:antialias=false;0
font-2 = "Wuncon Siji:pixelsize=9;1"
font-3 = "Font Awesome 5 Free:style=Regular:pixelsize=12;1"
font-4 = "Font Awesome 5 Free:style=Solid:pixelsize=12;1"
font-5 = "Font Awesome 5 Brands:pixelsize=12;1"
modules-left = i3 workspaces-xmonad
modules-center = xwindow
;weather update installed
modules-right = temperature xbacklight volume wlan battery date
tray-postion = right
override-redirect = false
cursor-click = pointer
cursor-scroll = ns-resize
[bar/touchbar]
width = 100%
height = 25
radius = 0
fixed-center = true
bottom = true
monitor=${env:MONITOR:}
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
border-size = 10
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 3
module-margin-right = 0
font-0 = "Hack":pixelsize=12;1"
font-1 = unifont:fontformat=truetype:size=12:antialias=false;0
font-2 = "Wuncon Siji:pixelsize=9;1"
font-3 = "Font Awesome 5 Free:style=Regular:pixelsize=12;1"
font-4 = "Font Awesome 5 Free:style=Solid:pixelsize=12;1"
font-5 = "Font Awesome 5 Brands:pixelsize=12;1"
modules-left = touchvolmute touchvoldown touchvolup touchbrightdown touchbrightup
modules-center = i3touchmenu
modules-right = touchrofi touchkeyboard
override-redirect = false
enable-ipc = true
[module/workspaces-xmonad]
type = custom/script
exec = tail -F /tmp/.xmonad-workspace-log
exec-if = [ -p /tmp/.xmonad-workspace-log ]
tail = true
[module/title-xmonad]
type = custom/script
exec = tail -F /tmp/.xmonad-title-log
exec-if = [ -p /tmp/.xmonad-title-log ]
tail = true
[module/touchkeyboard]
;; Open onscreen keyboard (onboard)
type=custom/text
content=" "
content-foreground=#fff
click-left=onboard
[module/touchrofi]
type=custom/text
content=" "
content-foreground=#fff
click-left=rofi -show run
[module/touchbrightdown]
;; Brightness down
type=custom/text
content=" "
content-foreground=#fff
click-left=xbacklight -dec 10
[module/touchbrightup]
;; Brightness up
type=custom/text
content=" "
content-foreground=#fff
click-left=xbacklight -inc 10
[module/touchvolmute]
;; Mute
type=custom/text
content=" "
content-foreground=#fff
click-left=pactl set-sink-mute 0 toggle
[module/touchvoldown]
;; Volume down
type=custom/text
content=" "
content-foreground=#fff
click-left=pactl set-sink-mute 0 false && pactl set-sink-volume 0 -5%
[module/touchvolup]
;; Volume up
type=custom/text
content=" "
content-foreground=#fff
click-left=pactl set-sink-mute 0 false && pactl set-sink-volume 0 +5%
[module/update]
type = custom/script
label-foreground = ${colors.foreground-alt}
interval = 30
format = <label>
label =  %output%
exec = yay -Pu | wc -l
[module/installed]
type = custom/script
label-foreground = ${colors.foreground-alt}
interval = 3600
format = <label>
label =  %output%
exec = pacman -Q | wc -l
[module/weather]
type = custom/script
tray-postion = right
interval = 10
label = %{A: xdg-open 'https\://www.google.com/search?q=weather' &:} %output%%{A}
label-foreground = ${colors.foreground-alt}
exec = cat /tmp/weather
[module/xwindow]
type = internal/xwindow
label-foreground = ${colors.foreground-alt}
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = caps lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.primary}
label-layout = %layout%
label-layout-underline = ${colors.primary}
;label-indicator-padding = 2
;label-indicator-margin = 1
;label-indicator-underline = ${colors.primary}
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
ws-icon-0 = "1;"
ws-icon-1 = "2;"
ws-icon-2 = "3;"
ws-icon-3 = "4;4"
ws-icon-4 = "5;5"
ws-icon-5 = "6;6"
ws-icon-6 = "7;7"
ws-icon-7 = "8;8"
ws-icon-8 = "9;9"
ws-icon-9 = "10;10"
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = false
label-mode-padding = 2
;label-mode-margin = 1
label-mode-foreground = ${colors.foreground-alt}
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %icon%
label-focused-underline = ${colors.foreground-alt}
label-focused-padding = 2
;label-focused-background = #22FFFFFF
label-focused-foreground = ${colors.foreground-alt}
;label-focused-margin = 1
label-active-foreground = ${colors.foreground-alt}
label-inactive-foreground = ${colors.foreground-alt}
label-unfocused-foreground = ${colors.foreground-alt}
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-padding = 2
;label-unfocused-margin = 1
; visible = Active workspace on unfocused monitor
;label-visible = %icon%
;label-visible-background = ${self.label-focused-background}
;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.background-alt}
label-urgent-padding = 2
;label-urgent-margin = 1
[module/xbacklight]
type = internal/xbacklight
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
format-foreground = ${colors.foreground-alt}
format-padding = 1
label = %percentage%%
label-padding-left = 1
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "cpu "
format-prefix-foreground = ${colors.foreground-alt}
format-foreground = ${colors.foreground-alt}
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = "ram "
format-prefix-foreground = ${colors.foreground-alt}
format-foreground = ${colors.foreground-alt}
label = %gb_used:2%
[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3
format-connected = <label-connected>
label-connected = %signal%
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
format-connected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date = %I:%M %p
date-alt = %Y-%m-%d %I:%M %p
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-foreground = ${colors.foreground-alt}
[module/volume]
type = internal/volume
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
format-volume = <ramp-volume> <label-volume>
ramp-volume-foreground = ${colors.foreground-alt}
label-volume-foreground = ${colors.foreground-alt}
label-muted = " muted"
label-muted-foreground = ${colors.foreground-alt}
mapping = false
format = <label>
[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 99
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
label-discharging-foreground = ${colors.foreground-alt}
label-charging-foreground = ${colors.foreground-alt}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
format = <ramp> <label>
;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
label = %temperature%
label-foreground = ${colors.foreground-alt}
ramp-0 =
ramp-1 =
ramp-2 =
ramp-3 =
ramp-4 =
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/script
exec = echo ""
click-left = ./home/daan/.config/i3/exit.sh
label-underline = ${colors.primary}
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 0
margin-bottom = 0
[module/i3touchmenu]
type = custom/menu
expand-right = true
format-spacing = 1
;; Open the menu
label-open = " "
label-open-foreground = #FFF
;; Close the menu
label-close =
label-close-foreground = ${colors.secondary}
label-separator = " "
label-separator-foreground = ${colors.foreground-alt}
;; Launcher
menu-0-0 =
menu-0-0-exec = menu-open-1
;; Move
menu-0-1 =
menu-0-1-exec = menu-open-2
;; Layout
menu-0-2 =
menu-0-2-exec = menu-open-3
;; Split
menu-0-3 =
menu-0-3-exec = menu-open-4
;; Resize
menu-0-4 =
menu-0-4-exec = menu-open-5
;; Move to workspace
menu-0-5 =
menu-0-5-exec = menu-open-6
;; Kill
menu-0-6 =
menu-0-6-exec = menu-open-7
;; Power
menu-0-7 =" "
menu-0-7-exec = menu-open-8
;; Launcher: Back to main menu
menu-1-0 =
menu-1-0-exec = menu-open-0
;; Launcher: chromium
menu-1-1=
menu-1-1-exec= chromium &
:: Launcher: termite
menu-1-2=" "
menu-1-2-exec = termite &
;; Move: Back to main menu
menu-2-0 =
menu-2-0-exec = menu-open-0
;; Move: Left
menu-2-1 =
menu-2-1-exec = i3-msg 'move left'
;; Move: Right
menu-2-2 =
menu-2-2-exec = i3-msg 'move right'
;; Move: Up
menu-2-3 =
menu-2-3-exec = i3-msg 'move up'
;; Move: Down
menu-2-4 = " "
menu-2-4-exec = i3-msg 'move down'
;; Layout: Back to main menu
menu-3-0 =
menu-3-0-exec = menu-open-0
;; Layout: Split
menu-3-1 =
menu-3-1-exec = i3-msg 'layout toggle split'
;; Layout: Stacking
menu-3-2 =
menu-3-2-exec = i3-msg 'layout stacking'
;; Layout: Tabbed
menu-3-3 =
menu-3-3-exec = i3-msg 'layout tabbed'
;; Layout: Toggle floating
menu-3-4 = " "
menu-3-4-exec = i3-msg 'floating toggle'
;; Split: Back to main menu
menu-4-0 =
menu-4-0-exec = menu-open-0
;; Split: Vertical
menu-4-1 =
menu-4-1-exec = i3-msg 'split v'
;; Split: Horizontal
menu-4-2 = " "
menu-4-2-exec = i3-msg 'split h'
;; Resize: Back to main menu
menu-5-0 =
menu-5-0-exec = menu-open-0
;; Resize: Grow height
menu-5-1 =
menu-5-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
;; Resize: Shrink height
menu-5-2 =
menu-5-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
;; Resize: Grow width
menu-5-3 =
menu-5-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
;; Resize: Shrink width
menu-5-4 = " "
menu-5-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
;; Move to workspace: Back to main menu
menu-6-0 =
menu-6-0-exec = menu-open-0
;; Move to workspace: 1
menu-6-1 = 1
menu-6-1-exec = i3-msg 'move container to workspace 1'
;; Move to workspace: 2
menu-6-2 = 2
menu-6-2-exec = i3-msg 'move container to workspace 2'
;; Move to workspace: 3
menu-6-3 = 3
menu-6-3-exec = i3-msg 'move container to workspace 3'
;; Move to workspace: 4
menu-6-4 = 4
menu-6-4-exec = i3-msg 'move container to workspace 4'
;; Move to workspace: 5
menu-6-5 = 5
menu-6-5-exec = i3-msg 'move container to workspace 5'
;; Move to workspace: 6
menu-6-6 = 6
menu-6-6-exec = i3-msg 'move container to workspace 6'
;; Move to workspace: 7
menu-6-7 = 7
menu-6-7-exec = i3-msg 'move container to workspace 7'
;; Move to workspace: 8
menu-6-8 = 8
menu-6-8-exec = i3-msg 'move container to workspace 8'
;; Move to workspace: 9
menu-6-9 = 9
menu-6-9-exec = i3-msg 'move container to workspace 9'
;; Move to workspace: 10
menu-6-10 = "10 "
menu-6-10-exec = i3-msg 'move container to workspace 10'
;; Kill: Back to main menu
menu-7-0 =
menu-7-0-exec = menu-open-0
;; Kill: Kill
menu-7-1 = "You sure?  "
menu-7-1-exec = i3-msg 'kill'
;; Power: Back to main menu
menu-8-0 =
menu-8-0-exec = menu-open-0
;; Power: Screen off
menu-8-1 =
menu-8-1-exec = xset dpms force off
;; Power: Lock
menu-8-2 =
menu-8-2-exec = i3lock
;; Power: Reboot
menu-8-3 =
menu-8-3-exec = shutdown -r now
;; Power: Shutdown
menu-8-4 = " "
menu-8-4-exec = shutdown -h now
; vim:ft=dosini