Update dotfiles

This commit is contained in:
Marco Thomas
2020-09-02 13:13:08 +02:00
parent db23326055
commit 9973fd1bcf
9 changed files with 72 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
; ft=dosini
; vim: ft=dosini
[colors]
transparent = #00000000
@@ -26,8 +26,6 @@ accent = ${colors.green}
foreground = ${colors.frost2}
background = ${colors.nord0}
tray = ${colors.nord0}
################################################################################
[bar/global]
monitor = ${env:MONITOR}
@@ -63,7 +61,7 @@ offset-y = 8px
modules-left = i3
modules-center = spotify
modules-right = update brightness volume date
modules-right = update backlight volume date
################################################################################
[bar/workspaces]
@@ -75,6 +73,8 @@ override-redirect = true
offset-x = 8px
offset-y = 8px
line-size = 3
modules-center = i3
################################################################################
@@ -92,28 +92,33 @@ modules-center = spotify
################################################################################
[bar/status]
inherit = bar/global
width = 22%
width = 20%
override-redirect = true
fixed-center = true
offset-x = 67%:-8px
offset-x = 72%:-8px
offset-y = 8px
modules-center = update backlight volume battery date
module-margin = 1
line-size = 3
modules-center = backlight volume battery date
################################################################################
[bar/tray]
inherit = bar/global
width = 10%
width = 7%
override-redirect = true
fixed-center = true
offset-x = 90%:-8px
offset-x = 93%:-8px
offset-y = 8px
tray-position = center
tray-padding = 2
modules-center = update
@@ -143,11 +148,10 @@ ws-icon-default = 
#label-focused = ""
label-focused = "%icon%"
label-focused-padding = 1
label-focused-underline = ${colors.red}
label-focused-underline = ${colors.green}
#label-unfocused = ""
label-unfocused = "%icon%"
label-unfocused-foreground = ${colors.nord3}
label-unfocused-padding = 1
label-urgent = "%icon%"
@@ -158,8 +162,6 @@ label-urgent-padding = 1
[module/date]
type = internal/date
format-padding = 1
interval = 1.0
#time =  %I:%M %p - %A, %d %B %Y
@@ -167,6 +169,7 @@ time =  %I:%M %p %d.%m.%Y
time-alt =  %I:%M %p
format = <label>
format-underline = ${colors.blue1}
label = %time%
@@ -177,7 +180,6 @@ label = %title%
format = <label>
label-maxlen = 80
label-empty = "Yoroshiku!"
format-padding = 1
###############################################################################
[module/cpu]
@@ -187,7 +189,6 @@ interval = 5
format = <label>
format-prefix = 
format-padding = 1
label = " %percentage%%"
@@ -210,13 +211,13 @@ battery = BAT0
apdapter = ADP1
format-charging = <animation-charging> <label-charging>
format-charging-padding = 1
format-charging-underline = ${colors.green}
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-padding = 1
format-discharging-underline = ${colors.green}
format-full = <ramp-capacity> <label-full>
format-full-padding = 1
format-full-underline = ${colors.green}
label-charging = %percentage%%
label-discharging = %percentage%%
@@ -247,14 +248,13 @@ animation-charging-framerate = 750
[module/volume]
type = internal/pulseaudio
format-volume-padding = 1
format-volume = <ramp-volume> <label-volume>
format-volume-underline = ${colors.orange}
label-volume = %percentage%%
format-muted-prefix = " "
format-muted-padding = 1
label-muted = "Muted"
ramp-volume-0 = 
@@ -277,10 +277,8 @@ unknown-as-up = true
#format-connected = <ramp-signal> <label-connected>
format-connected =  <label-connected>
format-connected-padding = 1
format-disconnected = <label-disconnected>
format-disconnected-padding = 1
label-connected = %essid%
label-disconnected =  Disconnected
@@ -296,14 +294,13 @@ ramp-signal-4 = 
[module/backlight]
type = internal/backlight
format-padding = 1
# ls -1 /sys/class/backlight
card = amdgpu_bl0
format = <label>
format-prefix = ""
label = " %percentage%%"
format-underline = ${colors.yellow}
bar-width = 10
bar-indicator = |
@@ -329,8 +326,6 @@ interval = 2
[module/hostname]
type = custom/script
format-padding = 1
exec = ~/.config/polybar/scripts/hostname.sh
tail = true
interval = 60
@@ -339,7 +334,6 @@ interval = 60
[module/ip]
type = custom/script
format-padding = 1
format-prefix = "直 "
exec = ~/.config/polybar/scripts/ip.sh

View File

@@ -5,7 +5,7 @@ if type "xrandr"; then
for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do
if [ "$1" = "laptop" ]; then
MONITOR=$mon polybar --reload workspaces &
MONITOR=$mon polybar --reload music &
# MONITOR=$mon polybar --reload music &
MONITOR=$mon polybar --reload status &
MONITOR=$mon polybar --reload tray &
fi