add cursors
This commit is contained in:
parent
fc51202293
commit
e0dd3a991f
5 changed files with 57 additions and 2 deletions
35
dots/.config/gtk/settings.ini.nix
Normal file
35
dots/.config/gtk/settings.ini.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.horseman.dots.gtk;
|
||||||
|
username = config.horseman.username;
|
||||||
|
|
||||||
|
catppuccin = config.horseman.catppuccin;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
horseman.dots.gtk = {
|
||||||
|
enable = mkEnableOption "~/.config/gtk-4.0/settings.ini";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = let
|
||||||
|
settings = ''
|
||||||
|
[Settings]
|
||||||
|
gtk-theme-name=Adwaita
|
||||||
|
gtk-icon-theme-name=Adwaita
|
||||||
|
gtk-font-name=Adwaita Sans 11
|
||||||
|
gtk-cursor-theme-name=catppuccin-${catppuccin}-dark-cursors
|
||||||
|
gtk-cursor-theme-size=24
|
||||||
|
gtk-application-prefer-dark-theme=0
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
mkIf cfg.enable {
|
||||||
|
home-manager.users.${username}.home.file = {
|
||||||
|
".config/gtk-4.0/settings.ini".text = settings;
|
||||||
|
".config/gtk-3.0/settings.ini".text = settings;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -6,5 +6,6 @@
|
||||||
./.config/kitty/kitty.conf.nix
|
./.config/kitty/kitty.conf.nix
|
||||||
./.config/wofi/style.css.nix
|
./.config/wofi/style.css.nix
|
||||||
./.config/waybar/style.css.nix
|
./.config/waybar/style.css.nix
|
||||||
|
./.config/gtk/settings.ini.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@ in {
|
||||||
pskRaw = "ext:psk_sticky";
|
pskRaw = "ext:psk_sticky";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"Woestgaafsecure" = {
|
||||||
|
pskRaw = "ext:psk_sticky";
|
||||||
|
};
|
||||||
|
|
||||||
"Utrecht University" = {
|
"Utrecht University" = {
|
||||||
authProtocols = ["WPA-EAP"];
|
authProtocols = ["WPA-EAP"];
|
||||||
auth = ''
|
auth = ''
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,9 @@
|
||||||
|
|
||||||
cfg = config.horseman.wm.hyprland;
|
cfg = config.horseman.wm.hyprland;
|
||||||
colors = config.horseman.catppuccin.colors;
|
colors = config.horseman.catppuccin.colors;
|
||||||
|
flavor = config.horseman.catppuccin.flavor;
|
||||||
|
|
||||||
|
cursorSize = 24;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./options.nix
|
./options.nix
|
||||||
|
|
@ -40,9 +43,11 @@ in {
|
||||||
wl-clipboard # Clipboard
|
wl-clipboard # Clipboard
|
||||||
fuzzel # Launcher
|
fuzzel # Launcher
|
||||||
xdg-desktop-portal-hyprland # XDG Portal (needed but idk why)
|
xdg-desktop-portal-hyprland # XDG Portal (needed but idk why)
|
||||||
|
catppuccin-cursors."${flavor}Dark" # Cursors
|
||||||
];
|
];
|
||||||
|
|
||||||
horseman.hardware.keyd.enable = true;
|
horseman.hardware.keyd.enable = true;
|
||||||
|
horseman.dots.gtk.enable = true;
|
||||||
|
|
||||||
nix-hyprland = {
|
nix-hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -53,16 +58,17 @@ in {
|
||||||
"hyprpaper"
|
"hyprpaper"
|
||||||
"systemctl --user start hyprpolkitagent"
|
"systemctl --user start hyprpolkitagent"
|
||||||
"waybar"
|
"waybar"
|
||||||
|
"hyprctl setcursor catppuccin-${flavor}-dark-cursors 24"
|
||||||
];
|
];
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
{
|
{
|
||||||
name = "XCURSOR_SIZE";
|
name = "XCURSOR_SIZE";
|
||||||
value = "24";
|
value = toString cursorSize;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "HYPRCURSOR_SIZE";
|
name = "HYPRCURSOR_SIZE";
|
||||||
value = "24";
|
value = toString cursorSize;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -141,6 +147,8 @@ in {
|
||||||
sensitivity = 0.0;
|
sensitivity = 0.0;
|
||||||
touchpad.naturalScroll = true;
|
touchpad.naturalScroll = true;
|
||||||
numlockByDefault = true;
|
numlockByDefault = true;
|
||||||
|
|
||||||
|
touchpad.disableWhileTyping = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
group = {
|
group = {
|
||||||
|
|
|
||||||
|
|
@ -441,6 +441,13 @@ in {
|
||||||
params = "";
|
params = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
flags = [];
|
||||||
|
mods = [];
|
||||||
|
key = "XF86AudioMute";
|
||||||
|
dispatcher = "exec";
|
||||||
|
params = "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0%";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
flags = ["e" "l"];
|
flags = ["e" "l"];
|
||||||
mods = [];
|
mods = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue