blob: 5d7cc59afe48b594030e24c2d0d81cfc29161821 [file] [log] [blame]
Samuel Shuert3f828662024-02-10 20:45:50 -05001#!/bin/bash
2
3status=$(nmcli g | grep -oE "disconnected")
4essid=$(nmcli c | grep wlp2s0 | awk '{print ($1)}')
5
6if [ $status ] ; then
7 icon=""
8 text=""
9 col="#575268"
10
11else
12 icon=""
13 text="${essid}"
14 col="#a1bdce"
15fi
16
17
18
19if [[ "$1" == "--COL" ]]; then
20 echo $col
21elif [[ "$1" == "--ESSID" ]]; then
22 echo $text
23elif [[ "$1" == "--ICON" ]]; then
24 echo $icon
25fi
26