This commit is contained in:
iFargle 2023-08-28 19:35:59 +09:00
parent e31669fcd7
commit 032d7f47b4
4 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{...}: {
home.file = {
".config/waybar/scripts/tailscale.sh" = {
enable = true;
executable = true;
text = ''
tailscale status --json | jq -r '.BackendState'
'';
}
}
}

View file

@ -1,4 +1,6 @@
{ hostname, ...}: {
import = [ ./scripts/waybar-scripts.nix ];
home.file = {
# https://yewtu.be/watch?v=tWQB1NDDA9c
# https://github.com/DN-debug/waybar-examples

View file

@ -1,4 +1,6 @@
{ hostname, ...}: {
import = [ ./scripts/waybar-scripts.nix ];
home.file = {
# https://yewtu.be/watch?v=tWQB1NDDA9c
# https://github.com/DN-debug/waybar-examples
@ -30,11 +32,20 @@
"mpris",
"idle_inhibitor",
"pulseaudio",
"custom/tailscale",
"network",
"battery",
"clock"
],
"custom/tailscale": {
"format": "VPN ",
"exec": "echo '{\"class\": \"connected\"}'",
"exec-if": "",
"return-type": "json",
"interval": 5
}
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
@ -204,6 +215,7 @@
* Critical plugins state
*/
#cpu.critical,
#idle_inhibitor.activated,
#temperature.critical,
#memory.critical,
#battery.critical,

View file

@ -38,6 +38,7 @@
iotop
sops
gnupg
jq
];
# Select internationalisation properties.