Merge branch 'master' of git.cheetah.remote:dot

This commit is contained in:
davidovski 2022-07-31 22:10:14 +01:00
commit 365412b61b
2 changed files with 90 additions and 88 deletions

View File

@ -1,16 +1,16 @@
[pos] [pos]
offsetx = 24 offsetx = 24
offsety = 24 offsety = 24
[color] [color]
bg = #191919 bg = #191919
bga = #191919 bga = #191919
fg1= #f58d44 fg1 = #f58d44
fg2 = #5f819d fg2 = #5f819d
[bar/base] [bar/base]
monitor = ${env:MONITOR} monitor = ${env:MONITOR}
enable-ipc = true enable-ipc = true
font-0 = mononoki:style=Regular:pixelsize=11;3 font-0 = mononoki:style=Regular:pixelsize=11;3
@ -18,34 +18,34 @@ font-1 = mononoki:style=Regular:pixelsize=15;4
font-2 = mononoki:style=Regular:pixelsize=19;5 font-2 = mononoki:style=Regular:pixelsize=19;5
font-3 = mononoki:style=Regular:pixelsize=11;3 font-3 = mononoki:style=Regular:pixelsize=11;3
font-4 = MesloLGM Nerd Font Mono:style=Regular:pixelsize=14;2 font-4 = MesloLGM Nerd Font Mono:style=Regular:pixelsize=14;2
font-5 = Noto Sans Mono CJK TC:style=Medium,Regular;pixelsize=10;2 font-5 = Noto Sans Mono CJK TC:style=Medium,Regular;pixelsize=10;2
height = 25 height = 25
background = ${color.bga} background = ${color.bga}
module-margin = 1 module-margin = 1
wm-restack = bspwm wm-restack = bspwm
radius = 0 radius = 0
foreground = ${color.fg1} foreground = ${color.fg1}
padding-right = 1 padding-right = 1
[bar/wsonly] [bar/wsonly]
inherit = bar/base inherit = bar/base
width = 100% width = 100%
modules-left = workspaces modules-left = workspaces
modules-right = time modules-right = time
[bar/ws] [bar/ws]
inherit = bar/base inherit = bar/base
width = 100% width = 100%
offset-x = 0 offset-x = 0
modules-left = workspaces xwindow modules-left = workspaces xwindow
modules-right = mpd temperature memory wlan battery pulseaudio microphone time modules-right = mpd temperature memory wlan battery pulseaudio microphone time
tray-position = right tray-position = right
background = ${color.bga} background = ${color.bga}
border-size = 0 border-size = 0
fg = ${color.fg1} fg = ${color.fg1}
[module/wsnumber] [module/wsnumber]
@ -63,22 +63,24 @@ type = internal/xwindow
label = %title:0:40:% label = %title:0:40:%
[module/workspaces] [module/workspaces]
type = internal/xworkspaces type = internal/xworkspaces
pin-workspaces = true pin-workspaces = true
enable-click = true enable-click = true
enable-scroll = true enable-scroll = true
format = <label-state> format = <label-state>
format-padding = 0 format-padding = 0
label-monitor = %name% label-monitor = %name%
label-active = %{T2}雷%{T-} label-active = %{T2}雷%{T-}
label-active-padding = 1 label-active-padding = 1
label-occupied = %{T2}ﲭ%{T-} label-occupied = %{T2}ﲭ%{T-}
label-occupied-padding = 1 label-occupied-padding = 1
label-empty = %{T2}ﱤ%{T-} label-empty = %{T2}ﱤ%{T-}
label-empty-padding = 1 label-empty-padding = 1
label-urgent = %{T2}ﲭ%{T-}
label-urgent-padding = 1
[module/time] [module/time]
@ -94,13 +96,13 @@ type = internal/mpd
host = 127.0.0.1 host = 127.0.0.1
port = 6600 port = 6600
format-online = <label-song> <icon-prev> <toggle> <icon-next> <bar-progress> format-online = <label-song> <icon-prev> <toggle> <icon-next> <bar-progress>
label-song = %title% label-song = %title%
bar-progress-width = 12 bar-progress-width = 12
bar-progress-indicator = | bar-progress-indicator = |
bar-progress-fill = ─ bar-progress-fill = ─
bar-progress-empty = ─ bar-progress-empty = ─
format-online-padding = 0 format-online-padding = 0
@ -109,11 +111,11 @@ format-offline-padding = 0
label-song-maxlen = 40 label-song-maxlen = 40
label-song-ellipsis = true label-song-ellipsis = true
icon-play =  icon-play = 
bar-empty = ─ bar-empty = ─
icon-pause =  icon-pause = 
icon-prev =  icon-prev = 
icon-next =  icon-next = 
[module/pulseaudio] [module/pulseaudio]
@ -131,71 +133,71 @@ ramp-volume-2 = ""
label-muted = "%{T3} %{T-}--%" label-muted = "%{T3} %{T-}--%"
[module/microphone] [module/microphone]
type = custom/script type = custom/script
exec = pactl list sources | grep -qi 'Mute: yes' && echo "" || echo "" exec = pactl list sources | grep -qi 'Mute: yes' && echo "" || echo ""
interval = 1 interval = 1
click-left = pactl list sources | grep -qi 'Mute: yes' && pactl set-source-mute 2 false || pactl set-source-mute 2 true click-left = pactl list sources | grep -qi 'Mute: yes' && pactl set-source-mute 2 false || pactl set-source-mute 2 true
[module/vpn] [module/vpn]
type = custom/script type = custom/script
exec = echo vpn exec = echo vpn
exec-if = pgrep -x openvpn exec-if = pgrep -x openvpn
interval = 5 interval = 5
format-underline = #268bd2 format-underline = #268bd2
format-prefix = "🖧 " format-prefix = "🖧 "
format-prefix-foreground = #5b format-prefix-foreground = #5b
[module/temperature] [module/temperature]
type = custom/script type = custom/script
exec = sensors | awk '/^Tctl:/ { print substr($2, 2) }' exec = sensors | awk '/^Tctl:/ { print substr($2, 2) }'
format-prefix = " " format-prefix = " "
interval = 1 interval = 1
[module/memory] [module/memory]
type = custom/script type = custom/script
exec = free -h | awk '/^Mem:/ {print $3 "/" $2}' exec = free -h | awk '/^Mem:/ {print $3 "/" $2}'
interval = 1 interval = 1
format-prefix = "力 " format-prefix = "力 "
[module/battery] [module/battery]
type = internal/battery type = internal/battery
full-at = 99 full-at = 99
battery = BAT1 battery = BAT1
adapter = ADP1 adapter = ADP1
poll-interval = 3 poll-interval = 3
time-format = %H:%M time-format = %H:%M
format-charging = <animation-charging> <label-charging> format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging> format-discharging = <ramp-capacity> <label-discharging>
label-charging = -%percentage%% label-charging = %percentage%%
label-discharging = -%percentage%% label-discharging = %percentage%%
label-full = %percentage%% label-full = %percentage%%
ramp-capacity-0 =  ramp-capacity-0 = 
ramp-capacity-1 =  ramp-capacity-1 = 
ramp-capacity-2 =  ramp-capacity-2 = 
ramp-capacity-3 =  ramp-capacity-3 = 
ramp-capacity-4 =  ramp-capacity-4 = 
animation-charging-0 =  animation-charging-0 = 
animation-charging-1 =  animation-charging-1 = 
animation-charging-2 =  animation-charging-2 = 
animation-charging-3 =  animation-charging-3 = 
animation-charging-4 =  animation-charging-4 = 
animation-charging-framerate = 750 animation-charging-framerate = 750
[module/network] [module/network]
type = internal/network type = internal/network
interface = wlan1 interface = wlan0
udspeed-minwidth = 5 udspeed-minwidth = 5
accumulate-stats = true accumulate-stats = true
unknown-as-up = true unknown-as-up = true
format-connected = <label-connected> format-connected = <label-connected>
format-disconnected = <label-disconnected> format-disconnected = <label-disconnected>
format-packetloss = <label-connected> format-packetloss = <label-connected>
label-connected = %essid% label-connected = %essid%

View File

@ -50,7 +50,7 @@ load () {
printf "\033[31mWARNING THIS WILL REPLACE EXISTING CONFIGURATIONS\n\033[0mTo proceed type 'confirm': " printf "\033[31mWARNING THIS WILL REPLACE EXISTING CONFIGURATIONS\n\033[0mTo proceed type 'confirm': "
read confirmation read confirmation
if [[ $confirmation == "confirm" ]]; then if [ $confirmation = "confirm" ]; then
mkdir -p $HOME/.config mkdir -p $HOME/.config
cp -r config/* $HOME/.config cp -r config/* $HOME/.config
mkdir -p $HOME/.scripts mkdir -p $HOME/.scripts