feat: bells and whistles

This commit is contained in:
Nick 2025-01-11 05:03:58 -06:00
parent 66f5917693
commit 569d969ecc
12 changed files with 111 additions and 14 deletions

View file

@ -1,3 +1,7 @@
* {
font-size: 13px !important;
}
/* Title bar */
.titlebar-spacer {
display: none !important;

View file

@ -1,7 +1,7 @@
{pkgs, ...}: {
gtk.enable = true;
x11.enable = true;
# x11.enable = true;
name = "catppuccin-mocha-dark-cursors";
package = pkgs.catppuccin-cursors.macchiatoDark;
size = 14;
size = 18;
}

View file

@ -3,7 +3,7 @@
size = "compact";
variant = "macchiato";
accents = [
"lavender"
"mauve"
];
};
name = "catppuccin-macchiato-mauve-compact";

View file

@ -12,6 +12,6 @@
"pkill easyeffects"
"emote"
"flameshot"
"sgsettings set org.gnome.desktop.interface cursor-theme 'catppuccin-mocha-dark-cursors'"
"gsettings set org.gnome.desktop.interface cursor-theme 'catppuccin-mocha-dark-cursors'"
"gsettings set org.gnome.desktop.interface cursor-size 18"
]

View file

@ -1,7 +1,7 @@
{
focus_on_activate = 1;
force_default_wallpaper = 0;
disable_hyprland_logo = true;
disable_splash_rendering = true;
disable_hyprland_qtutils_check = true;
# disable_hyprland_logo = true;
# disable_splash_rendering = true;
# disable_hyprland_qtutils_check = true;
}

View file

@ -16,11 +16,14 @@ let
feishin = "(feishin)";
steam = "(steam)";
kdenlive = "(org.kde.kdenlive)";
shotcut = "(shotcut)";
scrcpy = "(.scrcpy-wrapped)";
maxsizeWindows = [
"maxsize 720 400, class:^${blueman}$"
"maxsize 360 500, class:^${calculator}$"
"maxsize 720 400, class:^${easyeffects}$"
"maxsize 720 400, class:^${scrcpy}$"
"maxsize 720 400, class:^${mpv}$"
"maxsize 720 400, class:^${vlc}$"
"maxsize 640 360, class:^${nomacs}$"
@ -37,6 +40,7 @@ let
"class:^${vlc}$"
"class:^${nomacs}$"
"class:^${flameshot}$"
"class:^${scrcpy}$"
"title:^(${picture})$"
"title:^${bitwarden}$"
];
@ -62,10 +66,12 @@ let
workspaceInit3 = builtins.map (x: "workspace 3 silent, " + x) [
"class:^${steam}$"
"class:^${shotcut}$"
];
workspaceInit4 = builtins.map (x: "workspace 4 silent, " + x) [
"class:^${feishin}$"
"class:^${scrcpy}$"
];
centerWindows = builtins.map (x: "center, " + x) [
@ -78,7 +84,7 @@ let
"class:^${firefox}$"
"class:^${kdenlive}$"
"class:^(krita)$"
"class:^(shotcut)$"
"class:^${shotcut}$"
"class:^${mpv}$"
"class:^(Brave-browser)$"
"class:^(Gimp-2.10)$"

View file

@ -7,6 +7,7 @@
swaylock
playerctl
brightnessctl
glib
;
};
}

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"

View file

@ -1,4 +1,9 @@
{
{flake, ...}: let
inherit
(flake.config.people)
user0
;
in {
mainBar = {
position = "bottom";
layer = "top";
@ -11,10 +16,14 @@
"custom/launcher"
"hyprland/workspaces"
];
modules-center = [
"custom/weather"
];
modules-right = [
"tray"
"privacy"
"cpu"
"memory"
"disk"
@ -22,6 +31,7 @@
# "network"
"clock"
];
clock = {
calendar = {
format = {today = "<span color='#ff6699'><b><u>{}</u></b></span>";};
@ -31,6 +41,7 @@
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format-alt = " {:%d/%m}";
};
"hyprland/workspaces" = {
active-only = false;
disable-scroll = true;
@ -52,21 +63,25 @@
"4" = [];
};
};
memory = {
format = "󰟜 {}%";
format-alt = "󰟜 {used} GiB"; # 
interval = 2;
};
cpu = {
format = " {usage}%";
format-alt = " {avg_frequency} GHz";
interval = 2;
};
disk = {
# path = "/";
format = "󰋊 {percentage_used}%";
interval = 60;
};
# network = {
# format-wifi = " {signalStrength}%";
# format-ethernet = "󰀂 ";
@ -74,10 +89,12 @@
# format-linked = "{ifname} (No IP)";
# format-disconnected = "󰖪 ";
# };
tray = {
icon-size = 18;
icon-size = 12;
spacing = 8;
};
pulseaudio = {
format = "{icon} {volume}%";
tooltip = false;
@ -102,6 +119,37 @@
# on-click-right = "pkill tofi || wallpaper-picker";
tooltip = false;
};
privacy = {
icon-spacing = 8;
icon-size = 12;
transition-duration = 250;
modules = {
screenshare = {
type = "screenshare";
tooltip = true;
tooltip-icon-size = 12;
};
audio-out = {
type = "audio-out";
tooltip = true;
tooltip-icon-size = 12;
};
audio-in = {
type = "audio-in";
tooltip = true;
tooltip-icon-size = 12;
};
};
};
"custom/weather" = {
exec = "/home/${user0}/Files/Projects/dotfiles/home/modules/waybar/config/scripts/get_weather.sh Winnipeg";
return-type = "json";
format = "{}";
tooltip = true;
interval = 3600;
};
};
}
# https://unicodes.jessetane.com/

View file

@ -6,7 +6,7 @@
;
custom = {
font = font;
font_size = "14px";
font_size = "12px";
font_weight = "bold";
text_color = colors.mauve;
secondary_accent = colors.lavender;
@ -50,12 +50,15 @@ in ''
color: #${colors.mauve};
}
#tray, #pulseaudio, #cpu, #memory, #disk, #clock {
#tray, #pulseaudio, #privacy, #cpu, #memory, #disk, #clock {
font-size: ${custom.font_size};
color: #${colors.mauve};
padding-right: 10px;
}
#privacy {
}
#cpu {
}
@ -80,4 +83,10 @@ in ''
font-weight: ${custom.font_weight};
padding-left: 10px;
}
#custom-weather {
font-size: 14px;
color: #${colors.mauve};
font-weight: ${custom.font_weight};
}
''

View file

@ -4,7 +4,7 @@
...
}: let
configPath = ./config;
settingsPath = import (configPath + /settings.nix);
settingsPath = import (configPath + /settings.nix) {inherit flake;};
stylePath = import (configPath + /style.nix) {
inherit
flake

View file

@ -111,4 +111,14 @@ in {
"Videos"
]);
};
# system.activationScripts.zoxide = ''
# z /home/nick/Files/Projects/dotfiles
# z /home/nick/Files/Projects/website
# z /home/nick/Files/Projects/website/frontend
# z /home/nick/Downloads
# z /mnt/media/server/jellyfin/media
# z /mnt/media/storage
# z /mnt/media/synology/nick/Multimedia/Images/Assorted/Stuff
# z /mnt/media/synology/nick/Syncthing/Pixel
# '';
}