Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
16
dwmbar/modules/ethernet
Executable file
16
dwmbar/modules/ethernet
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints out if there is an ethernet cable connected
|
||||
|
||||
ETHERNET_ICON=''
|
||||
|
||||
get_ethernet()
|
||||
{
|
||||
if [ -d /sys/class/net/eth? ]; then
|
||||
if [ "$(cat /sys/class/net/eth?/carrier)" == "1" ]; then
|
||||
echo "$ETHERNET_ICON"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
get_ethernet
|
Loading…
Add table
Add a link
Reference in a new issue