power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
# Script: network-localip
This script shows the local IP of the current connection.
![network-localip](screenshots/1.png)
## Module
```ini
[module/network-localip]
type = custom/script
exec = ~/polybar-scripts/network-localip.sh
interval = 60
```

View File

@@ -0,0 +1,6 @@
#!/bin/sh
local_interface=$(route | awk '/^default/{print $NF}')
local_ip=$(ip addr show "$local_interface" | grep -w "inet" | awk '{ print $2; }' | sed 's/\/.*$//')
echo "# $local_ip"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB