Clean polybar
This commit is contained in:
2
dotdrop
2
dotdrop
Submodule dotdrop updated: c026edaf32...736941a147
@@ -1,21 +1,32 @@
|
|||||||
[bar/mybar]
|
###############################################################################
|
||||||
; monitor = DP1
|
[colors]
|
||||||
|
green = #00d3a8
|
||||||
|
|
||||||
font-0 = "Inconsolata:pixelsize=12;0"
|
accent = ${self.green}
|
||||||
|
background = #18191E
|
||||||
|
foreground = #000000
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[font]
|
||||||
|
inconsolata = "Inconsolata:pixelsize=12;0"
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
[bar/laptop]
|
||||||
|
enable-ipc = false
|
||||||
|
|
||||||
|
font-0 = ${font.inconsolata}
|
||||||
|
|
||||||
bottom = false
|
bottom = false
|
||||||
fixed-center = true
|
fixed-center = true
|
||||||
width = 100%
|
width = 100%
|
||||||
height = 35
|
height = 35
|
||||||
|
|
||||||
background = #18191E
|
|
||||||
foreground = #000000
|
|
||||||
|
|
||||||
green = #00d3a8
|
|
||||||
|
|
||||||
#padding-left = 0.5
|
#padding-left = 0.5
|
||||||
padding-right = 1
|
padding-right = 1
|
||||||
|
|
||||||
|
foreground = ${colors.background}
|
||||||
|
background = ${colors.background}
|
||||||
|
|
||||||
module-margin = 1
|
module-margin = 1
|
||||||
|
|
||||||
modules-left = i3tabs title
|
modules-left = i3tabs title
|
||||||
@@ -33,8 +44,7 @@ wm-restack = i3
|
|||||||
dpi-x = 96
|
dpi-x = 96
|
||||||
dpi-y = 96
|
dpi-y = 96
|
||||||
|
|
||||||
enable-ipc = false
|
###############################################################################
|
||||||
|
|
||||||
[module/i3tabs]
|
[module/i3tabs]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
pin-workspaces = true
|
pin-workspaces = true
|
||||||
@@ -43,26 +53,30 @@ enable-click = true
|
|||||||
enable-scroll = false
|
enable-scroll = false
|
||||||
wrapping-scroll = false
|
wrapping-scroll = false
|
||||||
|
|
||||||
|
foreground = #00d3a8
|
||||||
|
background = #383D41
|
||||||
|
|
||||||
label-unfocused = %index%
|
label-unfocused = %index%
|
||||||
label-unfocused-padding = 2
|
label-unfocused-padding = 2
|
||||||
label-unfocused-foreground = #ffffff
|
label-unfocused-foreground = #ffffff
|
||||||
|
|
||||||
label-focused = %index%
|
label-focused = %index%
|
||||||
label-focused-foreground = #00d3a8
|
label-focused-foreground = ${self.foreground}
|
||||||
label-focused-background = #383D41
|
label-focused-background = ${self.background}
|
||||||
label-focused-underline = #fba922
|
label-focused-underline = #fba922
|
||||||
label-focused-padding = 2
|
label-focused-padding = 2
|
||||||
|
|
||||||
label-urgent = %index%
|
label-urgent = %index%
|
||||||
label-urgent-background = #00d3a8
|
label-urgent-background = ${self.foreground}
|
||||||
label-urgent-foreground = #383D41
|
label-urgent-foreground = ${self.background}
|
||||||
label-urgent-underline = #fba922
|
label-urgent-underline = #fba922
|
||||||
label-urgent-padding = 2
|
label-urgent-padding = 2
|
||||||
|
|
||||||
label-mode-padding = 2
|
label-mode-padding = 2
|
||||||
label-mode-foreground = #00d3ab
|
label-mode-foreground = ${self.foreground}
|
||||||
label-mode-background = #65737E
|
label-mode-background = ${self.background}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
|
|
||||||
@@ -79,6 +93,7 @@ label = %date% %time%
|
|||||||
label-font = 0
|
label-font = 0
|
||||||
label-foreground = #fff
|
label-foreground = #fff
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
[module/title]
|
[module/title]
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
label = %title%
|
label = %title%
|
||||||
@@ -88,6 +103,7 @@ label-empty = "Yoroshiku!"
|
|||||||
format-padding = 2
|
format-padding = 2
|
||||||
format-foreground = #fff
|
format-foreground = #fff
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
full-at = 99
|
full-at = 99
|
||||||
@@ -106,6 +122,7 @@ format-full = <label-full>
|
|||||||
format-full-foreground = #00d3a8
|
format-full-foreground = #00d3a8
|
||||||
label-full = FULL
|
label-full = FULL
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/alsa
|
type = internal/alsa
|
||||||
|
|
||||||
@@ -119,15 +136,21 @@ format-volume = <label-volume>
|
|||||||
format-volume-foreground = #fff
|
format-volume-foreground = #fff
|
||||||
label-volume = VOL %percentage%%
|
label-volume = VOL %percentage%%
|
||||||
|
|
||||||
label-muted = muted
|
format-muted <label-muted>
|
||||||
|
format-muted-foreground = #ff0000
|
||||||
|
label-muted = MUTED
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
[module/network]
|
[module/network]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlo1
|
interface = wlo1
|
||||||
interval = 3.0
|
interval = 10.0
|
||||||
|
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
format-disconnectded = <label-disconnected>
|
format-disconnectded = <label-disconnected>
|
||||||
|
|
||||||
label-connected = WIFI %essid%
|
label-connected = WIFI %essid%
|
||||||
label-connected-foreground = #fff
|
label-connected-foreground = #fff
|
||||||
|
|
||||||
|
label-disconnected = NO WIFI
|
||||||
|
label-disconnected-foreground = #fff
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
killall polybar
|
# Kill old polybars
|
||||||
polybar mybar
|
killall -q polybar
|
||||||
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
# Launch
|
||||||
|
laptop=$(xrandr --query | grep 'eDP-1')
|
||||||
|
|
||||||
|
if [[ ${laptop} = *connected* ]]; then
|
||||||
|
polybar laptop &
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user