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, ...}: {
|
{ hostname, ...}: {
|
||||||
|
import = [ ./scripts/waybar-scripts.nix ];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
# https://yewtu.be/watch?v=tWQB1NDDA9c
|
# https://yewtu.be/watch?v=tWQB1NDDA9c
|
||||||
# https://github.com/DN-debug/waybar-examples
|
# https://github.com/DN-debug/waybar-examples
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ hostname, ...}: {
|
{ hostname, ...}: {
|
||||||
|
import = [ ./scripts/waybar-scripts.nix ];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
# https://yewtu.be/watch?v=tWQB1NDDA9c
|
# https://yewtu.be/watch?v=tWQB1NDDA9c
|
||||||
# https://github.com/DN-debug/waybar-examples
|
# https://github.com/DN-debug/waybar-examples
|
||||||
|
@ -30,11 +32,20 @@
|
||||||
"mpris",
|
"mpris",
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
|
"custom/tailscale",
|
||||||
"network",
|
"network",
|
||||||
"battery",
|
"battery",
|
||||||
"clock"
|
"clock"
|
||||||
],
|
],
|
||||||
|
|
||||||
|
"custom/tailscale": {
|
||||||
|
"format": "VPN ",
|
||||||
|
"exec": "echo '{\"class\": \"connected\"}'",
|
||||||
|
"exec-if": "",
|
||||||
|
"return-type": "json",
|
||||||
|
"interval": 5
|
||||||
|
}
|
||||||
|
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
|
@ -204,6 +215,7 @@
|
||||||
* Critical plugins state
|
* Critical plugins state
|
||||||
*/
|
*/
|
||||||
#cpu.critical,
|
#cpu.critical,
|
||||||
|
#idle_inhibitor.activated,
|
||||||
#temperature.critical,
|
#temperature.critical,
|
||||||
#memory.critical,
|
#memory.critical,
|
||||||
#battery.critical,
|
#battery.critical,
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
iotop
|
iotop
|
||||||
sops
|
sops
|
||||||
gnupg
|
gnupg
|
||||||
|
jq
|
||||||
];
|
];
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
|
|
Loading…
Reference in a new issue