Skip to content

Commit

Permalink
Update font styles
Browse files Browse the repository at this point in the history
  • Loading branch information
psamim committed Jun 6, 2021
1 parent 03f5d3a commit 634dcbe
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
30 changes: 30 additions & 0 deletions bin/nord-connected-p
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
sudo --user=nordvpnteams nordvpnteams status|grep -i vpn|grep -q Connected

connected=$?

if [ $connected -ne 0 ]; then
echo ""
exit
fi

SERVERS=$(cat <<'END_HEREDOC'
{
"84.252.94.19": "G-GB",
"66.115.147.11": "G-CA",
"87.101.95.155": "US"
}
END_HEREDOC
)

IP=$(sudo --user=nordvpnteams nordvpnteams status | grep Address:)
IP=${IP:9}

FOUND=$(echo $SERVERS | jq -r '.["'$IP'"]')

if [ "$FOUND" = "null" ]; then
echo "$IP"
exit
else
echo "$FOUND"
fi
25 changes: 20 additions & 5 deletions polybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ border-left-size = 0
bottom = true
#override-redirect = true

font-0 = "Iosevka Etoile:style=regular:size=10;3"
font-0 = "Iosevka:style=regular:size=10;3"
font-1 = "Iosevka Nerd Font:style=regular:size=10;3"

# fixed-center = true
Expand All @@ -57,7 +57,7 @@ module-margin-right = 0

modules-left = ewmh line title
modules-center = date clocking
modules-right = netspeed memory cpu battery xkeyboard wlan vpn pulseaudio dunst wallpaper
modules-right = netspeed memory cpu battery xkeyboard wlan pulseaudio pulseaudio-control dunst wallpaper
overline-size = 6
overline-color=${colors.xbs}
underline-size = 3
Expand Down Expand Up @@ -260,11 +260,10 @@ exec-if = clocking

[module/vpn]
type = custom/script
exec = nordvpnteams status|grep -i vpn|grep -q Connected && echo 
exec-if = nordvpnteams status|grep -i vpn|grep -q Connected
exec = nord-connected-p
format = <label>
format-padding = 1
interval = 1
interval = 3

[module/dunst]
type = custom/script
Expand All @@ -279,3 +278,19 @@ type = custom/text
content = 
click-left = systemctl --user restart feh-wallpaper.service
content-padding = ${variables.mpadding}

# [module/pulseaudio-control]
# type = custom/script
# tail = true
# label-padding = 2

# # Icons mixed from Font Awesome 5 and Material Icons
# # You can copy-paste your options for each possible action, which is more
# # trouble-free but repetitive, or apply only the relevant ones (for example
# # --sink-blacklist is only needed for next-sink).
# exec = pulseaudio-control --icons-volume " , " --icon-muted " " --sink-nicknames-from "device.description" --sink-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: Speakers" --sink-nickname "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo: Headphones" listen
# click-right = exec pavucontrol &
# click-left = pulseaudio-control togmute
# click-middle = pulseaudio-control --sink-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2" next-sink
# scroll-up = pulseaudio-control --volume-max 130 up
# scroll-down = pulseaudio-control --volume-max 130 down
2 changes: 1 addition & 1 deletion rofi/style_normal.rasi
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ configuration {

* {
background-color: rgba(0,0,0,0);
font: "Iosevka Etoile 12";
font: "Iosevka 12";
}

window {
Expand Down

0 comments on commit 634dcbe

Please sign in to comment.