From ed6f853da0b5f81a24b0201260c94ad5a7e07950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 21 Jul 2022 00:29:12 -0300 Subject: [PATCH] add some qt theming and waybar modules --- system/configuration.nix | 1 + user/home.nix | 33 +++++++++++++++++++++++++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/system/configuration.nix b/system/configuration.nix index 01dc267..4cafac4 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -177,6 +177,7 @@ in enable = true; wrapperFeatures.gtk = true; }; + # programs.qt5ct.enable = true; programs.steam.enable = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. diff --git a/user/home.nix b/user/home.nix index cf821d7..a1ef33c 100644 --- a/user/home.nix +++ b/user/home.nix @@ -108,6 +108,8 @@ in { # Theming orchis_theme_compact papirus_red + libsForQt5.qtstyleplugins + qt5.qtsvg ## fonts liberation_ttf hack-font @@ -229,7 +231,7 @@ in { "clock" ]; modules-right = [ - "tray" + "pulseaudio" "network" ]; "network" = { @@ -242,9 +244,30 @@ in { "format-linked" = ""; "format-disconnected" = ""; }; - "tray" = { - "spacing" = 7; - "icon-size" = 19; + "clock" = { + "interval"=60; + "format"="{:%H:%M %a %d/%m}"; + "tooltip"=false; + }; + "pulseaudio"= { + "interval"= 5; + "tooltip"=false; + "scroll-step"= 10; + "format"= "{icon}"; + "format-bluetooth"= ""; + "format-bluetooth-muted"= ""; + "format-muted"= "ﱝ"; + "format-icons"= { + "headphone"= [" 奄" " 奔" " 墳"]; + "handsfree"= ""; + "headset"= ""; + "phone"= ""; + "portable"= ""; + "car"= ""; + "default"= ["奄" "奔" "墳"]; + }; + "on-click"= "pavucontrol"; + "on-click-right"= "pulse-sink"; }; }]; style = '' @@ -553,6 +576,7 @@ in { // workspace_binds // prev_next_binds // movement_binds + // audio_binds // system_binds # // map (key: "$mod+${key} workspace prev_on_output") [ key.tabL "bracketleft" "Prior" "button9" "button4" ] # // map (key: "$mod+${key} workspace next_on_output") [ key.tabL "bracketleft" "Prior" "button9" "button4" ] @@ -615,6 +639,7 @@ in { style.package = pkgs.libsForQt5.qtstyleplugins; style.name = "gtk2"; }; + programs.mangohud.enable = true; systemd.user.services = { firefox = {