mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
worked on waybar config
This commit is contained in:
@@ -151,6 +151,7 @@ gcc # GNU C compiler
|
|||||||
libreoffice
|
libreoffice
|
||||||
gruvbox-gtk-theme
|
gruvbox-gtk-theme
|
||||||
hyprpicker
|
hyprpicker
|
||||||
|
powertop
|
||||||
#we need to install gnome and kde utils individually as we dont use gnome
|
#we need to install gnome and kde utils individually as we dont use gnome
|
||||||
gnome-calculator
|
gnome-calculator
|
||||||
snapshot
|
snapshot
|
||||||
|
|||||||
@@ -13,19 +13,18 @@
|
|||||||
modules-left = [
|
modules-left = [
|
||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
"group/info"
|
"group/info"
|
||||||
|
"group/power"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
modules-center = [
|
modules-center = [
|
||||||
"hyprland/window"
|
|
||||||
];
|
];
|
||||||
modules-right = [
|
modules-right = [
|
||||||
|
"hyprland/window"
|
||||||
"group/brightness"
|
"group/brightness"
|
||||||
"group/sound"
|
"group/sound"
|
||||||
"group/connection"
|
"group/connection"
|
||||||
"group/together"
|
"group/together"
|
||||||
"tray"
|
"tray"
|
||||||
"group/power"
|
"battery"
|
||||||
];
|
];
|
||||||
# groups settings are organized by alphabetical order
|
# groups settings are organized by alphabetical order
|
||||||
"group/audio" = {
|
"group/audio" = {
|
||||||
@@ -95,13 +94,9 @@
|
|||||||
};
|
};
|
||||||
"group/power" = {
|
"group/power" = {
|
||||||
orientation = "inherit";
|
orientation = "inherit";
|
||||||
drawer = {
|
|
||||||
transition-duration = 500;
|
|
||||||
transition-left-to-right = false;
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
"battery"
|
"battery#w"
|
||||||
"power-profiles-daemon"
|
"battery#powerdraw"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"group/sound" = {
|
"group/sound" = {
|
||||||
@@ -162,6 +157,37 @@
|
|||||||
orientation = "vertical";
|
orientation = "vertical";
|
||||||
device = "intel_backlight";
|
device = "intel_backlight";
|
||||||
};
|
};
|
||||||
|
battery = {
|
||||||
|
#rotate = 90;
|
||||||
|
interval = 30;
|
||||||
|
states = {
|
||||||
|
good = 95;
|
||||||
|
warning = 20;
|
||||||
|
critical = 15;
|
||||||
|
};
|
||||||
|
format = "{icon} {capacity}";
|
||||||
|
format-charging = "<b>{icon} {capacity}% </b>";
|
||||||
|
format-full = "<span color='#82A55F'><b>{icon}</b></span>";
|
||||||
|
format-icons = [
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
""
|
||||||
|
];
|
||||||
|
tooltip-format = "{timeTo} {capacity} %";
|
||||||
|
};
|
||||||
|
"battery#powerdraw" = {
|
||||||
|
rotate = 90;
|
||||||
|
interval = 10;
|
||||||
|
format = "{power:.0001f}";
|
||||||
|
};
|
||||||
|
"battery#w" = {
|
||||||
|
rotate = 90;
|
||||||
|
interval = 100000;
|
||||||
|
format = "W";
|
||||||
|
};
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
format-on = "";
|
format-on = "";
|
||||||
format-off = "";
|
format-off = "";
|
||||||
@@ -202,11 +228,7 @@
|
|||||||
};
|
};
|
||||||
"custom/colorpicker" = {
|
"custom/colorpicker" = {
|
||||||
format = "";
|
format = "";
|
||||||
return-type = "json";
|
on-click = "hyprpicker | tee >(wl-copy) | cliphist store";
|
||||||
interval = "once";
|
|
||||||
exec = "custom-colorpicker -j";
|
|
||||||
on-click = "sleep 1 && ~/.config/waybar/scripts/colorpicker.sh";
|
|
||||||
signal = 1;
|
|
||||||
};
|
};
|
||||||
"custom/cpu-icon" = {
|
"custom/cpu-icon" = {
|
||||||
format = "";
|
format = "";
|
||||||
@@ -380,6 +402,7 @@
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,7 +463,10 @@ tooltip label {
|
|||||||
#disk,
|
#disk,
|
||||||
#together,
|
#together,
|
||||||
#submap,
|
#submap,
|
||||||
#custom-weather
|
#custom-weather {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
#custom-recorder,
|
#custom-recorder,
|
||||||
#connection,
|
#connection,
|
||||||
#cnoti,
|
#cnoti,
|
||||||
@@ -488,6 +514,9 @@ tooltip label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#custom-cputemp,
|
#custom-cputemp,
|
||||||
|
#temperature {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
#disk,
|
#disk,
|
||||||
#memory,
|
#memory,
|
||||||
#cpu {
|
#cpu {
|
||||||
@@ -508,6 +537,10 @@ tooltip label {
|
|||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#hyprland.window {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
margin: 0px 2px;
|
margin: 0px 2px;
|
||||||
padding: 4px 0px 0px 0px;
|
padding: 4px 0px 0px 0px;
|
||||||
@@ -545,7 +578,7 @@ tooltip label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
padding: 4px 0px 4px 0px;
|
padding: 0px 0px 0px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bluetooth {
|
#bluetooth {
|
||||||
@@ -559,6 +592,7 @@ tooltip label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
|
font-size: 12px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 4px 0px;
|
padding: 4px 0px;
|
||||||
margin: 4px 2px 4px 2px;
|
margin: 4px 2px 4px 2px;
|
||||||
@@ -580,6 +614,19 @@ tooltip label {
|
|||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#battery.powerdraw {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 0;
|
||||||
|
margin-right: -20px;
|
||||||
|
margin-left: -20px;
|
||||||
|
}
|
||||||
|
#battery.w {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 0;
|
||||||
|
margin-left: -20px;
|
||||||
|
margin-right: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 4px 2px 2px 2px;
|
padding: 4px 2px 2px 2px;
|
||||||
|
|||||||
@@ -1,11 +1,20 @@
|
|||||||
{ writeShellApplication, hyprpicker, libnotify, toybox, ... }:
|
|
||||||
|
# useless
|
||||||
|
# used to come from my old dotfiles which were copied from fedora-hyprdots
|
||||||
|
# just use hyprpicker | tee >(wl-copy) | cliphist store
|
||||||
|
# because hyprpicker and cliphist are inside my configuration.nix
|
||||||
|
# no need to verify their existence
|
||||||
|
|
||||||
|
|
||||||
|
{ writeShellApplication, hyprpicker, libnotify, toybox, wl-clipboard, ... }:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-colorpicker";
|
name = "custom-colorpicker-useless";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
hyprpicker
|
hyprpicker
|
||||||
libnotify
|
libnotify
|
||||||
toybox
|
toybox
|
||||||
|
wl-clipboard
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
check() {
|
check() {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ TEXT2="''$(curl -s "https://wttr.in/?format=%t")"
|
|||||||
TEXT2=''${TEXT2/$PATTERN/}
|
TEXT2=''${TEXT2/$PATTERN/}
|
||||||
TEXT3="''$(curl -s "https://wttr.in/?format=%f")"
|
TEXT3="''$(curl -s "https://wttr.in/?format=%f")"
|
||||||
TEXT3=''${TEXT3/$PATTERN/}
|
TEXT3=''${TEXT3/$PATTERN/}
|
||||||
printf '{"text":"%s\n%s\n%s", "tooltip": false, "class": "weather"}\n' \
|
printf '{"text":" %s\\n %s\\n %s", "tooltip": false, "class": "weather"}\\n' \
|
||||||
"$TEXT1" "$TEXT2" "$TEXT3"
|
"$TEXT1" "$TEXT2" "$TEXT3"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user