test
This commit is contained in:
parent
e31669fcd7
commit
032d7f47b4
4 changed files with 26 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
{...}: {
|
||||
home.file = {
|
||||
".config/waybar/scripts/tailscale.sh" = {
|
||||
enable = true;
|
||||
executable = true;
|
||||
text = ''
|
||||
tailscale status --json | jq -r '.BackendState'
|
||||
'';
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
iotop
|
||||
sops
|
||||
gnupg
|
||||
jq
|
||||
];
|
||||
|
||||
# Select internationalisation properties.
|
||||
|
|
Loading…
Reference in a new issue