From bffc69e246a46c529ee146ee52d8afd47aadbf98 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 21 Oct 2025 12:12:08 +0200 Subject: [PATCH 1/4] chore: try out sway for a bit --- modules/home/default.nix | 1 + modules/home/sway/default.nix | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/home/default.nix b/modules/home/default.nix index 8e47e1e..f0c6b1e 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -3,6 +3,7 @@ imports = [ (import ./git.nix) ] ++ [ (import ./swaync/default.nix) ] + ++ [ (import ./sway/default.nix) ] ++ [ (import ./fonts.nix) ] ++ [ (import ./hyprland) ] ++ [ (import ./hyprlock) ] diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix index 5446f5b..a72c246 100644 --- a/modules/home/sway/default.nix +++ b/modules/home/sway/default.nix @@ -1,9 +1,10 @@ -{ pkgs, username, ... }: { +{ pkgs, username, ... }: +{ home.packages = with pkgs; [ swayfx autotiling - # libinput-gestures - # wmctrl + libinput-gestures + wmctrl ]; #home.file = { # "/home/${username}/.config/libinput-gestures/sway.conf" = { From 414459ca837e3edd12eaace5133008159e783adc Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 21 Oct 2025 12:12:18 +0200 Subject: [PATCH 2/4] chore: adds uptime-kuma --- modules/services/uptime-kuma.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/services/uptime-kuma.nix diff --git a/modules/services/uptime-kuma.nix b/modules/services/uptime-kuma.nix new file mode 100644 index 0000000..a7d1eb8 --- /dev/null +++ b/modules/services/uptime-kuma.nix @@ -0,0 +1,25 @@ +{ config, ... }: +{ + services = { + uptime-kuma = { + enable = true; + settings.PORT = 4800; + }; + anubis.instances.uptime-kuma = { + settings = { + TARGET = "http://localhost:4800"; + BIND = ":4801"; + BIND_NETWORK = "tcp"; + }; + }; + nginx.virtualHosts."uptime.liv.town" = { + forceSSL = true; + sslCertificate = "/var/lib/acme/liv.town/cert.pem"; + sslCertificateKey = "/var/lib/acme/liv.town/key.pem"; + locations."/" = { + proxyPass = "http://localhost${toString config.services.anubis.instances.uptime-kuma.settings.BIND}"; + proxyWebsockets = true; + }; + }; + }; +} From b23995c0c02f11d78417c95287b4128d6ae892a2 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 21 Oct 2025 12:12:34 +0200 Subject: [PATCH 3/4] chore: adds `swayfx` and `bitwarden-cli` --- modules/home/packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/home/packages.nix b/modules/home/packages.nix index b9e2bcc..1320e1f 100644 --- a/modules/home/packages.nix +++ b/modules/home/packages.nix @@ -7,6 +7,7 @@ }: { home.packages = with pkgs; [ + swayfx # Environment shit tesseract yubikey-touch-detector @@ -31,7 +32,7 @@ python3 # CLI shit - fff + bitwarden-cli imagemagick foot termpdfpy From de8b2b6edbac9d6f08238c268acf423de68f3c66 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 21 Oct 2025 12:13:15 +0200 Subject: [PATCH 4/4] feat: adds back gestures, adds single window float for specific windows using `hyprfloat` --- modules/home/hyprland/config.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 2f5690a..3f6a141 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -85,7 +85,8 @@ "wl-paste --watch cliphist store &" "yubikey-touch-detector --libnotify &" "mpDris2 &" - "foot --server" + "foot --server &" + "hyprfloat &" ]; input = { @@ -185,7 +186,7 @@ }; animations = { - enabled = false; + enabled = true; bezier = [ "fluent_decel, 0, 0.2, 0.4, 1" @@ -212,10 +213,15 @@ ]; }; + gesture = [ + "3, horizontal, workspace" + # "4, horizontal, move" + ]; + bind = [ # keybindings "$mainMod, Return, exec, footclient" - "$mainMod SHIFT, Return, exec, [float; center; size 950 650] footclient" + "$mainMod SHIFT, Return, exec, [float; center; size 950 650] footclient --title 'float_foot'" "$mainMod, Q, killactive," "$mainMod, F, fullscreen, 0" # set 1 to 0 to set full screen without waybar "$mainMod, Space, togglefloating," @@ -231,6 +237,9 @@ "$mainMod, Tab, changegroupactive, f" "$mainMod SHIFT, Tab, changegroupactive, b" + # password manager + "$mainMod SHIFT, X, exec, footclient --title 'float_foot' zsh -c 'bash ~/.local/src/bw-fzf/bw-fzf.sh" + # clipboard manager "$mainMod SHIFT, V, exec, cliphist list | bemenu -l 5 --ignorecase | cliphist decode | wl-copy" @@ -240,10 +249,9 @@ "$mainMod SHIFT, W, exec, wdisplays" "$mainMod SHIFT, T, exec, thunderbird" "$mainMod SHIFT, E, exec, element-desktop" - "$mainMod SHIFT, X, exec, gajim" "$mainMod SHIFT, P, exec, pavucontrol-qt" - "$mainMod SHIFT, N ,exec, notes" - "$mainMod, N,exec, swaync-client -t" + "$mainMod SHIFT, N, exec, notes" + "$mainMod , N, exec, swaync-client -t" # screenshot "SUPER SHIFT, S, exec, grimblast save area ~/Pictures/$(date +'%Y-%m-%d-At-%Ih%Mm%Ss').png" @@ -338,6 +346,7 @@ "size 950 600,title:^(float_foot)$" "float,title:^(Volume Control)$" "float,title:^(Librewolf — Sharing Indicator)$" + "float,title:^(Export Image as PNG)$" "move 0 0,title:^(Librewolf — Sharing Indicator)$" "size 700 450,title:^(Volume Control)$" "move 40 55%,title:^(Volume Control)$" @@ -372,6 +381,7 @@ "float,title:^(branchdialog)$" "float,title:^(Confirm to replace files)$" "float,title:^(File Operation Progress)$" + "float,title:^(float_foot)$" "nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0" ];