waybar tweaks :3

This commit is contained in:
CDaut 2024-04-26 10:39:18 +02:00
parent fbbc23b72e
commit af84369e19
Signed by: clara
GPG key ID: 223391B52FAD4463
5 changed files with 16 additions and 12 deletions

View file

@ -4,11 +4,12 @@ let
inherit (pkgs.texlive) scheme-full; inherit (pkgs.texlive) scheme-full;
}); });
in in
let username = "clemens"; in
{ {
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
# manage. # manage.
home.username = "clemens"; home.username = username;
home.homeDirectory = "/home/clemens"; home.homeDirectory = "/home/${username}";
# This value determines the Home Manager release that your configuration is # This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release # compatible with. This helps avoid breakage when a new Home Manager release
@ -83,10 +84,6 @@ in
target = ".config/i3/lock.sh"; target = ".config/i3/lock.sh";
executable = true; executable = true;
}; };
wallpaper = {
source = ./media/wallpaper.png;
target = ".background-image";
};
}; };
# envars # envars
@ -95,7 +92,7 @@ in
GTK_THEME = "Adwaita:dark"; GTK_THEME = "Adwaita:dark";
}; };
systemd.user.sessionVariables = { systemd.user.sessionVariables = {
GTK2_RC_FILES = "/home/clemens/.gtkrc-2.0"; GTK2_RC_FILES = "/home/${username}/.gtkrc-2.0";
GTK_THEME = "Adwaita:dark"; GTK_THEME = "Adwaita:dark";
}; };
} }

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, pkgs, ... }:
{ {
wayland.windowManager.sway = let mod = "Mod4"; in { wayland.windowManager.sway = let mod = "Mod4"; in {
enable = true; enable = true;
@ -14,6 +14,7 @@
xkb_layout = "de"; xkb_layout = "de";
}; };
}; };
output."*".bg = "${../media/wallpaper.png} fill";
menu = "${pkgs.rofi}/bin/rofi -show combi -config ~/.config/rofi/config.rasi"; menu = "${pkgs.rofi}/bin/rofi -show combi -config ~/.config/rofi/config.rasi";
modifier = mod; # Super key modifier = mod; # Super key
gaps = { gaps = {
@ -112,7 +113,7 @@
always = true; always = true;
} }
{ {
command = "blueman-tray"; command = "blueman-applet";
always = true; always = true;
} }
]; ];

View file

@ -18,6 +18,7 @@
mkhl.direnv mkhl.direnv
ms-vscode.cmake-tools ms-vscode.cmake-tools
twxs.cmake twxs.cmake
tomoki1207.pdf
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{ {
name = "shader"; name = "shader";

View file

@ -13,9 +13,9 @@
height = 30; height = 30;
spacing = 20; spacing = 20;
modules-left = [ "sway/workspaces" ]; modules-left = [ "sway/workspaces" ];
modules-right = [ "disk" "pulseaudio" "cpu" "network#eth" "network#wireless" "eth" "battery" "temperature" "clock" "tray" ]; modules-right = [ "disk" "pulseaudio" "cpu" "network#eth" "network#wireless" "battery" "temperature" "clock" "tray" ];
"tray" = { "tray" = {
spacing = 10; spacing = 10;
icon-size = 20; icon-size = 20;
}; };
@ -48,7 +48,7 @@
critical-threshold = 70; critical-threshold = 70;
format = "{temperatureC}°C"; format = "{temperatureC}°C";
interval = 2; interval = 2;
hwmon-path = "/sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input"; hwmon-path = "/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input";
}; };
"network#eth" = { "network#eth" = {

View file

@ -29,6 +29,11 @@ window#waybar {
background: rgb(111.5, 39, 49); background: rgb(111.5, 39, 49);
} }
#battery.charging {
background: rgb(39, 111.5, 49);
}
#network.wireless { #network.wireless {
border-bottom: 4px solid #9f78e1; border-bottom: 4px solid #9f78e1;
} }