some fixes

This commit is contained in:
Dennis Schoepf 2025-12-19 01:17:47 +01:00
parent f83bb43326
commit 4d98f6beb5
6 changed files with 40 additions and 36 deletions

View file

@ -5,8 +5,6 @@
"margin-left": 8,
"margin-top": 8,
"margin-bottom": 8,
// TODO: Remove
"reload_style_on_change": true,
// Placing Modules
"modules-left": [
"clock",
@ -15,7 +13,9 @@
"custom/memory-label",
"memory",
"custom/disk-label",
"disk"
"disk",
"custom/nvidia-label",
"custom/nvidia"
],
"modules-center": [
"niri/workspaces"
@ -68,6 +68,16 @@
"format": "{percentage_used}%",
"max-length": 2
},
"custom/nvidia-label": {
"format": "GPU",
"tooltip": false
},
"custom/nvidia": {
"exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,nounits,noheader",
"format": "{}°",
"tooltip": false,
"interval": 10
},
"wireplumber#source": {
"node-type": "Audio/Source",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",

View file

@ -3,12 +3,12 @@
<object class="GtkMenu" id="menu">
<child>
<object class="GtkMenuItem" id="lock">
<property name="label">Suspend</property>
<property name="label">Lock</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="reboot">
<property name="label">Hibernate</property>
<property name="label">Reboot</property>
</object>
</child>
<child>

View file

@ -43,19 +43,21 @@ window#waybar {
#custom-cpu-label,
#custom-memory-label,
#custom-disk-label {
#custom-disk-label,
#custom-nvidia-label {
color: #572454;
padding-top: 6px;
border-top: 1px solid #572454;
}
#disk {
#custom-nvidia {
border-bottom: 1px solid #572454;
}
#cpu,
#memory,
#disk {
#disk,
#custom-nvidia {
color: #d369af;
padding-bottom: 8px;
}

View file

@ -5,11 +5,5 @@
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/wm/waybar/config";
};
programs.waybar = {
enable = true;
systemd = {
enable = true;
target = "graphical-session.target";
};
};
programs.waybar.enable = true;
}