Finally make everything looks a bit better with icons

This commit is contained in:
Natsu Kagami 2023-03-09 00:24:50 +01:00
parent 5818af5d5c
commit 476ede9d25
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
3 changed files with 45 additions and 9 deletions

View file

@ -76,6 +76,26 @@ in
"x-scheme-handler/mid" = [ "userapp-Thunderbird-HPUL11.desktop" ]; "x-scheme-handler/mid" = [ "userapp-Thunderbird-HPUL11.desktop" ];
}; };
# Theming
## GTK
gtk.enable = true;
gtk.cursorTheme = { inherit (config.home.pointerCursor) package name size; };
gtk.font.name = "Noto Sans";
gtk.font.size = 10;
gtk.iconTheme = {
package = pkgs.numix-icon-theme;
name = "Numix";
};
gtk.theme = {
package = pkgs.numix-gtk-theme;
name = "Numix";
};
## Qt
qt.enable = true;
qt.platformTheme = "gnome";
qt.style.package = pkgs.adwaita-qt;
qt.style.name = "adwaita";
home.sessionVariables = { home.sessionVariables = {
# Set up Java font style # Set up Java font style
_JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd"; _JAVA_OPTIONS = "-Dawt.useSystemAAFontSettings=lcd";

View file

@ -347,6 +347,7 @@ in
(if cfg.enableMpd then "mpd" else "custom/media") (if cfg.enableMpd then "mpd" else "custom/media")
"tray" "tray"
"pulseaudio" "pulseaudio"
"bluetooth"
"network" "network"
"cpu" "cpu"
"memory" "memory"
@ -425,6 +426,16 @@ in
format-disconnected = "Disconnected "; format-disconnected = "Disconnected ";
interval = 7; interval = 7;
}; };
"bluetooth" = {
format = " {status}";
format-connected = " {device_alias}";
format-connected-battery = " {device_alias} {device_battery_percentage}%";
# format-device-preference= [ "device1", "device2" ], // preference list deciding the displayed devic;
tooltip-format = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
tooltip-format-connected = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
};
"pulseaudio" = { "pulseaudio" = {
# scroll-step = 1; # scroll-step = 1;
format = "{volume}% {icon}"; format = "{volume}% {icon}";
@ -432,8 +443,8 @@ in
format-muted = ""; format-muted = "";
format-icons = { format-icons = {
headphones = ""; headphones = "";
handsfree = ""; handsfree = "";
headset = ""; headset = "";
phone = ""; phone = "";
portable = ""; portable = "";
car = ""; car = "";
@ -524,7 +535,7 @@ in
border-bottom: 3px solid #ffffff; border-bottom: 3px solid #ffffff;
} }
#clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor, #mpd { #clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #bluetooth, #custom-media, #tray, #mode, #idle_inhibitor, #mpd {
padding: 0 10px; padding: 0 10px;
margin: 0 5px; margin: 0 5px;
} }
@ -588,7 +599,11 @@ in
#pulseaudio.muted { #pulseaudio.muted {
background: #90b1b1; background: #90b1b1;
color: #2a5c45; }
#bluetooth {
background: DarkSlateBlue;
color: white;
} }
#custom-media { #custom-media {

View file

@ -142,11 +142,6 @@
## Wayland ## Wayland
qt5.qtwayland qt5.qtwayland
## Enable nix-flakes
# (pkgs.writeShellScriptBin "nixFlakes" ''
# exec ${pkgs.nixUnstable}/bin/nix --experimental-features "nix-command flakes" "$@"
# '')
]; ];
# Nix config # Nix config
@ -192,7 +187,11 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
wlr.enable = true; wlr.enable = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
}; };
programs.dconf.enable = true;
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
@ -209,6 +208,8 @@
# #
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.bluetooth.package = pkgs.bluez5-experimental; hardware.bluetooth.package = pkgs.bluez5-experimental;
hardware.bluetooth.settings.General.Experimental = true;
services.blueman.enable = true;
# Peripherals # Peripherals
hardware.opentabletdriver.enable = true; hardware.opentabletdriver.enable = true;