🚀 Add wofi signal on polybar & update neofetch config

This commit is contained in:
Smirnov Olexandr 2020-10-18 19:56:34 +03:00
parent 2a3bfaa82c
commit 99cc99c7d4
3 changed files with 17 additions and 227 deletions

View file

@ -33,10 +33,10 @@ font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
font-2 = Weather Icons:size=7;2
;; Modules positii3on ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Modules position ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::;
modules-left = i3 sp2 weather updates-pacman
modules-center =
modules-right = pulseaudio microphone backlight keyboard clipmenu wlan date time sp2
modules-right = pulseaudio microphone backlight keyboard clipmenu wifi-signal date time sp2
tray-position = right
tray-padding = 2
tray-detached = false
@ -106,7 +106,7 @@ label = %percentage%%
ramp-0 = 
[module/wlan]
[module/wifi-name]
type = internal/network
interface = wlp3s0
format-connected = <ramp-signal> <label-connected>
@ -116,6 +116,13 @@ ramp-signal-0 = 
interval = 3.0
[module/wifi-signal]
type = custom/script
label =  %output:%%
exec = ~/.config/polybar/scripts/wifi-signal.sh
interval = 3.0
[module/filesystem]
type = internal/fs
interval = 25
@ -225,4 +232,4 @@ label-maxlen = 30
type = custom/text
content = ""
click-left = "CM_LAUNCHER=rofi clipmenu"
interval = 0
interval = 0

View file

@ -0,0 +1,2 @@
#!/bin/sh
cat /proc/net/wireless | grep "wlp3s0" | awk '{print $4}' | grep -o '[0-9]*'