aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/config.ini
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-26 20:19:40 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-26 20:19:40 +0530
commit08db1e0f2ef400d22368168deeac24d77f37d516 (patch)
treef6392fc9258715873549358e3a7cbb24beeb074b /.config/polybar/config.ini
parent458a1c1016c47c76e17ab222c26d6558e5d75500 (diff)
added keybindings to switch monitors in XMonad
Diffstat (limited to '.config/polybar/config.ini')
-rw-r--r--.config/polybar/config.ini51
1 files changed, 49 insertions, 2 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index 2786f49..68faf65 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -85,8 +85,56 @@ batt-discharging-fg = ${colors.module-color-1}
batt-full-bg = ${colors.module-bg}
batt-full-fg = ${colors.module-color-0}
+; same as mybar but on second monitor
+; also has different font size, bar height, etc
+; modules are the same and should be synced if either is changed
+[bar/mybar2]
+monitor = ${env:MONITOR:HDMI-0}
+enable-ipc = true
+width = 100%
+height = 20
+offset-x = 0
+offset-y = 0
+radius = 0
+fixed-center = true
+bottom = 0
+
+background = ${colors.background}
+foreground = ${colors.foreground}
+
+line-size = 0
+line-color = #f00
+
+border-size = 0
+border-color = #00000000
+
+padding-left = 0
+padding-right = 0
+
+module-margin-left = 0
+module-margin-right = 0
+
+font-0 = "SauceCodePro:style=Regular:size=9;3"
+font-1 = "Source Han Sans JP Normal:size=9;3"
+font-2 = "RobotoMono Nerd Font Mono:size=22;5"
+font-3 = fixed:pixelsize=10;1
+;font-4 = unifont:fontformat=truetype:size=8:antialias=false;0
+;font-5 = siji:pixelsize=10;1
+
+modules-left = date uptime wlan eth filesystem-root filesystem-home filesystem-hdd cpu temperature memory xwindow
+modules-right = pulseaudio ewmh battery
+
+tray-position = right
+tray-padding = 2
+tray-background = ${colors.systray-bg}
+
+override-redirect = true
+
+cursor-click = pointer
+cursor-scroll = ns-resize
+
[bar/mybar]
-;monitor = ${env:MONITOR:eDP-1-1}
+;monitor = ${env:MONITOR:eDP-1}
enable-ipc = true
width = 100%
height = 28
@@ -119,7 +167,6 @@ font-3 = fixed:pixelsize=10;1
;font-5 = siji:pixelsize=10;1
modules-left = date uptime wlan eth filesystem-root filesystem-home filesystem-hdd cpu temperature memory xwindow
-;modules-center = xwindow
modules-right = pulseaudio ewmh battery
tray-position = right