polybar, python and js lsp
This commit is contained in:
2
.config/polybar/nvidia.sh
Executable file
2
.config/polybar/nvidia.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,noheader | xargs -I {} echo "GPU: {}°C"
|
||||||
2
.config/polybar/temperature.sh
Executable file
2
.config/polybar/temperature.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sensors | grep "Tccd2" | tr -d '+' | awk '{print $2}'
|
||||||
@@ -19,6 +19,13 @@
|
|||||||
source = ../.config/wallpapers;
|
source = ../.config/wallpapers;
|
||||||
target = ".config/wallpapers";
|
target = ".config/wallpapers";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file.".config/polybar" = {
|
||||||
|
enable = true;
|
||||||
|
recursive = true;
|
||||||
|
source = ../.config/polybar;
|
||||||
|
target = ".config/polybar";
|
||||||
|
};
|
||||||
services.polybar = {
|
services.polybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.polybar.override {
|
package = pkgs.polybar.override {
|
||||||
@@ -52,7 +59,7 @@
|
|||||||
module-margin = 1;
|
module-margin = 1;
|
||||||
modules-left = "i3";
|
modules-left = "i3";
|
||||||
modules-center = "xwindow";
|
modules-center = "xwindow";
|
||||||
modules-right = "network memory cpu pulseaudio date tray";
|
modules-right = "network memory cpu cpu-temp gpu pulseaudio date tray";
|
||||||
cursor-click = "pointer";
|
cursor-click = "pointer";
|
||||||
cursor-scroll = "ns-resize";
|
cursor-scroll = "ns-resize";
|
||||||
enable-ipc = true;
|
enable-ipc = true;
|
||||||
@@ -161,18 +168,29 @@
|
|||||||
# };
|
# };
|
||||||
"module/memory" = {
|
"module/memory" = {
|
||||||
type = "internal/memory";
|
type = "internal/memory";
|
||||||
interval = 2;
|
interval = 3;
|
||||||
format-prefix = "RAM ";
|
format-prefix = "RAM ";
|
||||||
format-prefix-foreground = config.stylix.base16Scheme.base0C;
|
format-prefix-foreground = config.stylix.base16Scheme.base0C;
|
||||||
label = "%percentage_used:2%%";
|
label = "%percentage_used:2%%";
|
||||||
};
|
};
|
||||||
"module/cpu" = {
|
"module/cpu" = {
|
||||||
type = "internal/cpu";
|
type = "internal/cpu";
|
||||||
interval = 2;
|
interval = 3;
|
||||||
format-prefix = "CPU ";
|
format-prefix = "CPU ";
|
||||||
format-prefix-foreground = config.stylix.base16Scheme.base0D;
|
format-prefix-foreground = config.stylix.base16Scheme.base0D;
|
||||||
label = "%percentage:2%%";
|
label = "%percentage:2%%";
|
||||||
};
|
};
|
||||||
|
"module/cpu-temp" = {
|
||||||
|
type = "custom/script";
|
||||||
|
exec = "~/.config/polybar/temperature.sh";
|
||||||
|
interval = 3;
|
||||||
|
};
|
||||||
|
|
||||||
|
"module/gpu" = {
|
||||||
|
type = "custom/script";
|
||||||
|
exec = "~/.config/polybar/nvidia.sh";
|
||||||
|
interval = 3;
|
||||||
|
};
|
||||||
# "network-base" = {
|
# "network-base" = {
|
||||||
# type = "internal/network";
|
# type = "internal/network";
|
||||||
# interval = 5;
|
# interval = 5;
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
gopls.enable = true;
|
gopls.enable = true;
|
||||||
nixd.enable = true;
|
nixd.enable = true;
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
|
tsserver.enable = true;
|
||||||
|
pylsp.enable = true;
|
||||||
csharp-ls = {
|
csharp-ls = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.stable.csharp-ls;
|
package = pkgs.stable.csharp-ls;
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ in {
|
|||||||
brightnessctl
|
brightnessctl
|
||||||
i3blocks
|
i3blocks
|
||||||
autotiling
|
autotiling
|
||||||
|
lm_sensors # for cpu in polybar
|
||||||
feh # sets the wallpaper
|
feh # sets the wallpaper
|
||||||
nm-tray # NetworkManager tray icon
|
nm-tray # NetworkManager tray icon
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -12,17 +12,6 @@
|
|||||||
../../modules/support/ntfs.nix
|
../../modules/support/ntfs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
#systemd.services.failtest = {
|
|
||||||
# enable = true;
|
|
||||||
# description = "Fail Test Service";
|
|
||||||
# wantedBy = [ "multi-user.target" ];
|
|
||||||
|
|
||||||
# serviceConfig = {
|
|
||||||
# Type = "simple";
|
|
||||||
# ExecStart = "${pkgs.coreutils}/bin/false";
|
|
||||||
# };
|
|
||||||
#};
|
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
tmpfs.enable = true;
|
tmpfs.enable = true;
|
||||||
wireshark.enable = true;
|
wireshark.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user