bettered up the pww package

This commit is contained in:
Rouven Seifert 2023-06-05 12:31:07 +02:00
parent 8196d6e741
commit cf7f8dcda7
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 35 additions and 22 deletions

View file

@ -1,5 +1,11 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
# fixes qt themes
environment.variables = {
"QT_STYLE_OVERRIDE" = lib.mkForce "kvantum";
"QT_QPA_PLATFORMTHEME" = lib.mkForce "Dracula";
};
# open ports for kde connect
networking.firewall = rec {
allowedTCPPortRanges = [{ from = 1714; to = 1764; }];

View file

@ -1,6 +1,6 @@
{ self, config, pkgs, hyprland, ... }:
{
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin:${pkgs.playerctl}/bin:${pkgs.pulseaudio}/bin";
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.hyprland}/bin";
programs.waybar = {
enable = true;
systemd.enable = true;
@ -33,7 +33,7 @@
format = " {}";
max-length = 80;
return-type = "json";
exec = "${self.packages.x86_64-linux.pww}/bin/pww -w spotifyd:title -f '{{title}} - {{artist}}' -p None 2> /dev/null";
exec = "${self.packages.x86_64-linux.pww}/bin/pww -w spotifyd:title -p None 2> /dev/null";
};
cpu = {
format = "{usage}% ";

View file

@ -19,6 +19,7 @@ in
user = "root";
port = 2222;
};
falkenstein-1 = matchBlocks."rfive.de";
"kaki" = {
hostname = "kaki.ifsr.de";
user = "root";

View file

@ -1,12 +1,11 @@
{ pkgs, nix-colors, ... }:
{
# home.packages = with pkgs; [ libsForQt5.qtstyleplugin-kvantum ];
home.packages = with pkgs; [ libsForQt5.qtstyleplugin-kvantum ];
colorScheme = nix-colors.colorSchemes.dracula;
# theme hardcoded to dracula, too lazy to make all this base16
home.sessionVariables.GTK_THEME = "Dracula";
home.sessionVariables.QT_QPA_PLATFORMTHEME = "Dracula";
qt = {
enable = true;
style = {
@ -31,4 +30,9 @@
package = pkgs.dracula-theme;
size = 16;
};
xdg.configFile = {
"Kvantum/Dracula/Dracula.kvconfig".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula/Dracula.kvconfig";
"Kvantum/Dracula/Dracula.svg".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula/Dracula.svg";
"Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Dracula";
};
}