Compare commits

...

2 commits

Author SHA1 Message Date
9f09c2ad82 fix: some hyprland configuration garbage 2025-05-26 16:44:44 +02:00
995a79e600 feat: move scripts to packages 2025-05-26 16:44:33 +02:00
5 changed files with 16 additions and 49 deletions

View file

@ -42,34 +42,6 @@
size = 24;
};
# gtk = {
# enable = true;
# theme = {
# name = "Orchis-Dark";
# package = pkgs.orchis-theme;
# };
# iconTheme = {
# name = "Adwaita";
# package = pkgs.gnome.adwaita-icon-theme;
# };
# cursorTheme = {
# name = "Adwaita";
# package = pkgs.gnome.adwaita-icon-theme;
# };
# font = {
# name = "JetBrainsMono Nerd Font";
# size = 11;
# };
# };
# home.pointerCursor = {
# gtk.enable = true;
# # x11.enable = true;
# package = pkgs.bibata-cursors;
# name = "Bibata-Modern-Classic";
# size = 16;
# };
dconf = {
enable = true;
settings = {
@ -85,7 +57,7 @@
source = "~/nixos-config/modules/home/hyprland/displays.conf";
"debug:disable_scale_checks" = true;
monitor = "eDP-1, 2256x1504@60, 0x0, 1.5"; # this works as I only have one computer using eDP-1 as a display, I could also add LVDS or DP-1 since that'd also be machine-specific.
monitor = "eDP-1, 2256x1504@60, 0x0, 1.5";
# autostart
exec-once = [
@ -151,7 +123,6 @@
master = {
special_scale_factor = 1;
# no_gaps_when_only = true; # Returns errors for some reason
};
decoration = {
@ -227,6 +198,8 @@
"$mainMod, G, togglegroup,"
"SUPER, N, changegroupactive, f"
"SUPER, P, changegroupactive, b"
"$mainMod, Tab, changegroupactive, f"
"$mainMod SHIFT, Tab, changegroupactive, b"
# clipboard manager
"$mainMod SHIFT, V, exec, cliphist list | bemenu -l 5 --ignorecase | cliphist decode | wl-copy"
@ -365,6 +338,7 @@
"float,title:^(branchdialog)$"
"float,title:^(Confirm to replace files)$"
"float,title:^(File Operation Progress)$"
"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
];
};

View file

@ -19,24 +19,5 @@
done
'';
};
"/home/${username}/.local/bin/setbg" = {
executable = true;
text = ''
#!/usr/bin/env bash
magick convert "$1" ~/.local/share/bg.png
swww img ~/.local/share/bg.png --transition-type fade
'';
};
"/home/${username}/.local/bin/walp" = {
executable = true;
text = ''
#!/usr/bin/env bash
which swiv &>/dev/null && SIV=swiv || SIV=nsxiv # todo: switch to swiv, but that is not packaged for Nix yet.
$SIV -t ~/Pictures/wallpapers/others/*
'';
};
};
}

View file

@ -1,5 +1,7 @@
{ pkgs, ... }:
let
setbg = pkgs.writeScriptBin "setbg" (builtins.readFile ./scripts/setbg);
walp = pkgs.writeScriptBin "walp" (builtins.readFile ./scripts/walp);
runbg = pkgs.writeShellScriptBin "runbg" (builtins.readFile ./scripts/runbg.sh);
notes = pkgs.writeShellScriptBin "notes" (builtins.readFile ./scripts/notes.sh);
grabtext = pkgs.writeShellScriptBin "grabtext" (builtins.readFile ./scripts/grabtext.sh);
@ -12,6 +14,8 @@ let
in
{
home.packages = with pkgs; [
setbg
walp
runbg
notes
grabtext

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
magick convert "$1" ~/.local/share/bg.png
swww img ~/.local/share/bg.png --transition-type fade

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
which swiv &>/dev/null && SIV=swiv || SIV=nsxiv # todo: switch to swiv, but that is not packaged for Nix yet.
$SIV -t ~/Pictures/wallpapers/others/*