set st as default terminal

This commit is contained in:
Antoine Vaure 2025-01-08 18:00:34 +01:00 committed by ant
parent f175f875a9
commit be25fee24c
2 changed files with 18 additions and 15 deletions

18
bar.nix
View file

@ -102,7 +102,7 @@
format = "󰂯";
"format-disabled" = "󰂲";
"on-click" = "${pkgs.util-linux}/bin/rfkill toggle bluetooth";
"on-click-right" = "$TERMINAL --class floating -e bluetuith";
"on-click-right" = "$TERMINAL -c floating -e bluetuith";
"tooltip-format" = "{}";
};
@ -123,7 +123,7 @@
interval = 1;
format = "󰋊 {free}";
path = "/";
"on-click" = "$TERMINAL --class floating -e ${pkgs.ncdu}/bin/ncdu -x /";
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /";
};
@ -131,21 +131,21 @@
interval = 1;
format = "󰋊 {free}";
path = "/home/ant/disk1";
"on-click" = "$TERMINAL --class floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}/disk1";
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}/disk1";
};
"disk#3" = lib.attrsets.optionalAttrs (variant == "default") {
interval = 1;
format = "󰋊 {free}";
path = "/home/ant/disk2";
"on-click" = "$TERMINAL --class floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}/disk2";
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}/disk2";
};
"disk#home" = lib.attrsets.optionalAttrs (variant == "allegro") {
interval = 1;
format = "󰋊 {free}";
path = "/home/${username}";
"on-click" = "$TERMINAL --class floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}";
"on-click" = "$TERMINAL -c floating -e ${pkgs.ncdu}/bin/ncdu -x /home/${username}";
};
memory = {
@ -164,7 +164,7 @@
"format-ethernet" = "󰓢 {bandwidthDownBytes:>} {bandwidthUpBytes:>}";
"format-wifi" = "󰖩 {bandwidthDownBytes:>} {bandwidthUpBytes:>}";
"on-click" = "wifi-toggle";
"on-right-click" = "$TERMINAL --class floating -e nmtui";
"on-right-click" = "$TERMINAL -c floating -e nmtui";
"tooltip-format-ethernet" = "{ipaddr}";
"tooltip-format-wifi" = "{ipaddr}\n{essid}\n{signalStrength}";
};
@ -200,7 +200,7 @@
format = "󰘚 {usage: 2}%";
"max-length" = 10;
"min-length" = 4;
"on-click" = "$TERMINAL --class floating -e htop";
"on-click" = "$TERMINAL -c floating -e htop";
};
temperature = {
@ -292,7 +292,7 @@
"return-type" = "json";
format = "{}";
tooltip = "{tooltip}";
"on-click" = "$TERMINAL --class floating -e nvtop";
"on-click" = "$TERMINAL -c floating -e nvtop";
};
"custom/nvidia-mem" = {
@ -301,7 +301,7 @@
"return-type" = "json";
format = "{}";
tooltip = "{tooltip}";
"on-click" = "$TERMINAL --class floating -e nvtop";
"on-click" = "$TERMINAL -c floating -e nvtop";
};
};
};