1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-08-01 12:37:46 +00:00

Make Nu set title to command and add waybar config options for some programs

This commit is contained in:
RGBCube 2023-11-21 21:03:00 +03:00
parent 1d39018b36
commit 7ce9989379
No known key found for this signature in database
2 changed files with 30 additions and 15 deletions

View file

@ -188,7 +188,17 @@ $env.config.hooks = {
command_not_found: {} command_not_found: {}
display_output: "if (term size).columns >= 100 { table --expand } else { table }" display_output: "if (term size).columns >= 100 { table --expand } else { table }"
env_change: {} env_change: {}
pre_execution: [] pre_execution: [
{
let prompt = (commandline) | str trim
if ($prompt | is-empty) {
return
}
echo $"(ansi title)($prompt) - nu(char bel)"
}
]
pre_prompt: [] pre_prompt: []
} }

View file

@ -26,7 +26,12 @@ homeConfiguration "nixos" {
"hyprland/window" "hyprland/window"
]; ];
"hyprland/window".seperate-outputs = true; "hyprland/window" = {
seperate-outputs = true;
rewrite."(.*) Mozilla Firefox" = "󰖟$1";
rewrite."(.*) - nu" = "$1";
};
modules-right = [ modules-right = [
"tray" "tray"
@ -40,10 +45,10 @@ homeConfiguration "nixos" {
]; ];
pulseaudio = { pulseaudio = {
format = "{volume}% {icon} {format_source}"; format = "{format_source} {icon}{volume}%";
format-bluetooth = "{volume}% {icon}󰂯 {format_source}"; format-bluetooth = "{format_source} {icon}󰂯{volume}%";
format-bluetooth-muted = "󰝟 {icon}󰂯 {format_source}"; format-bluetooth-muted = "{format_source} 󰝟{icon}󰂯";
format-muted = "󰝟 {format_source}"; format-muted = "{format_source} 󰝟";
format-source = "󰍬"; format-source = "󰍬";
format-source-muted = "󰍭"; format-source-muted = "󰍭";
@ -57,7 +62,7 @@ homeConfiguration "nixos" {
}; };
backlight = { backlight = {
format = "{percent}% {icon}"; format = "{icon}{percent}%";
format-icons = [ format-icons = [
"" ""
"" ""
@ -71,20 +76,20 @@ homeConfiguration "nixos" {
]; ];
}; };
cpu.format = "{usage}% "; cpu.format = "{usage}%";
memory.format = "{}% "; memory.format = "{}%";
network = { network = {
format-disconnected = "󰤮"; format-disconnected = "󰤮";
format-ethernet = "{ipaddr}/{cidr} 󰈀"; format-ethernet = "󰈀{ipaddr}/{cidr}";
format-linked = "{ifname} (No IP) "; format-linked = "{ifname} (No IP)";
format-wifi = "{essid} {signalStrength}% "; format-wifi = "{essid}{signalStrength}%";
}; };
battery = { battery = {
format = "{capacity}% {icon}"; format = "{icon}{capacity}%";
format-charging = "{capacity}% 󰂄"; format-charging = "󰂄{capacity}%";
format-plugged = "{capacity}% 󰂄"; format-plugged = "󰂄{capacity}%";
format-icons = [ format-icons = [
"󰁺" "󰁺"