From 02c60f1af7840fc8502723f574bd73e97db3d49a Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 10 Oct 2021 00:27:22 +0100 Subject: added polybar configs --- config/polybar/config | 163 ++++++++++++++++++++++++++++++++++++++++++++++++++ deploy.sh | 2 +- scripts/bg.sh | 1 - 3 files changed, 164 insertions(+), 2 deletions(-) diff --git a/config/polybar/config b/config/polybar/config index 21c2a04..0fd3ec8 100644 --- a/config/polybar/config +++ b/config/polybar/config @@ -157,3 +157,166 @@ exec = free -h | awk '/^Mem:/ {print $3 "/" $2}' interval = 1 format-prefix = "力 " +[module/battery] +type = internal/battery +full-at = 99 +battery = BAT0 +adapter = ADP1 + +poll-interval = 5 +; see "man date" for details on how to format the time string +; NOTE: if you want to use syntax tags here you need to use %%{...} +; Default: %H:%M:%S +time-format = %H:%M + +; Available tags: +; (default) +; +; +; +format-charging = + +; Available tags: +; (default) +; +; +; +format-discharging = + +; Available tags: +; (default) +; +; +;format-full = + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +; %time% +; %consumption% (shows current charge rate in watts) +label-charging = Charging %percentage%% + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +; %time% +; %consumption% (shows current discharge rate in watts) +label-discharging = Discharging %percentage%% + +; Available tokens: +; %percentage% (default) - is set to 100 if full-at is reached +; %percentage_raw% +label-full = Fully charged + +; Only applies if is used +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  + +; Only applies if is used +bar-capacity-width = 10 + +; Only applies if is used +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-3 =  +animation-charging-4 =  +; Framerate in milliseconds +animation-charging-framerate = 750 + +; Only applies if is used +animation-discharging-0 =  +animation-discharging-1 =  +animation-discharging-2 =  +animation-discharging-3 =  +animation-discharging-4 =  +; Framerate in milliseconds +animation-discharging-framerate = 500 + +[module/network] +type = internal/network +; Name of the network interface to display. You can get the names of the +; interfaces on your machine with `ip link` +; Wireless interfaces often start with `wl` and ethernet interface with `eno` or `eth` +interface = wlan1 + +; Seconds to sleep between updates +; Default: 1 +interval = 3.0 + +; Test connectivity every Nth update +; A value of 0 disables the feature +; NOTE: Experimental (needs more testing) +; Default: 0 +;ping-interval = 3 + +; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%) +; Minimum output width of upload/download rate +; Default: 3 +udspeed-minwidth = 5 + +; Accumulate values from all interfaces +; when querying for up/downspeed rate +; Default: false +accumulate-stats = true + +; Consider an `UNKNOWN` interface state as up. +; Some devices like USB network adapters have +; an unknown state, even when they're running +; Default: false +unknown-as-up = true +; Available tags: +; (default) +; +format-connected = + +; Available tags: +; (default) +format-disconnected = + +; Available tags: +; (default) +; +; +format-packetloss = + +; All labels support the following tokens: +; %ifname% [wireless+wired] +; %local_ip% [wireless+wired] +; %local_ip6% [wireless+wired] +; %essid% [wireless] +; %signal% [wireless] +; %upspeed% [wireless+wired] +; %downspeed% [wireless+wired] +; %linkspeed% [wired] + +; Default: %ifname% %local_ip% +label-connected = %essid% %downspeed:9% +label-connected-foreground = #eefafafa + +; Default: (none) +label-disconnected = not connected +label-disconnected-foreground = #66ffffff + +; Default: (none) +;label-packetloss = %essid% +;label-packetloss-foreground = #eefafafa + +; Only applies if is used +ramp-signal-0 = 😱 +ramp-signal-1 = 😠 +ramp-signal-2 = 😒 +ramp-signal-3 = 😊 +ramp-signal-4 = 😃 +ramp-signal-5 = 😈 + +; Only applies if is used +animation-packetloss-0 = ⚠ +animation-packetloss-0-foreground = #ffa64c +animation-packetloss-1 = 📶 +animation-packetloss-1-foreground = #000000 +; Framerate in milliseconds +animation-packetloss-framerate = 500 diff --git a/deploy.sh b/deploy.sh index 62606e2..30989b3 100755 --- a/deploy.sh +++ b/deploy.sh @@ -59,7 +59,7 @@ load () { install () { PKG="yay -S " - $PKG xorg xorg-xinit pulseaudio fzf bspwm cava neofetch mpd mpv ncmpcpp vim sxhkd polybar picom rofi rxvt-unicode + $PKG xorg xorg-xinit pulseaudio pulsemixer alsa-utils fzf bspwm cava neofetch mpd mpv ncmpcpp vim sxhkd polybar picom rofi rxvt-unicode ln -s /usr/bin/rofi /usr/bin/dmenu diff --git a/scripts/bg.sh b/scripts/bg.sh index 23bf6a3..005ee8f 100755 --- a/scripts/bg.sh +++ b/scripts/bg.sh @@ -1,3 +1,2 @@ #!/bin/sh - feh --bg-fill ~/.config/bg -- cgit v1.2.1