summaryrefslogtreecommitdiff
path: root/hm/env
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-01-28 20:49:07 +0100
committeradikro <adikro@disroot.org>2026-01-28 20:49:07 +0100
commite5036417abe5d3597792f869e2831decd50eba5d (patch)
tree367bf2a9a077a518dbc4efa4d8ec3f333f323630 /hm/env
parent31526e3f2df19777b30d04d6747d57a7a807cdd3 (diff)
repo cleanup
Diffstat (limited to 'hm/env')
-rw-r--r--hm/env/cursor.nix24
-rw-r--r--hm/env/niri/binds.nix18
2 files changed, 32 insertions, 10 deletions
diff --git a/hm/env/cursor.nix b/hm/env/cursor.nix
index 49e8313..7b09f43 100644
--- a/hm/env/cursor.nix
+++ b/hm/env/cursor.nix
@@ -1,16 +1,28 @@
-{ config, lib, pkgs, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
let
cfg = config.hm.env.cursor;
-
- miyabi-cursor-pkg = pkgs.runCommand "miyabi" {} ''
+
+ miyabi-src = pkgs.fetchgit {
+ url = "https://codeberg.org/adikro/nixos-resources.git";
+ rev = "refs/heads/main";
+ sha256 = "sha256-4VxeajQFrZivYbJQ1ERPm18Isnf91tiCK5SAJydHfQc=";
+ fetchLFS = true;
+ };
+
+ miyabi-cursor-pkg = pkgs.runCommand "miyabi" { } ''
mkdir -p $out/share/icons/miyabi
- cp -rv ${../../resources/cursors/miyabi}/* $out/share/icons/miyabi/
+ cp -rvL ${miyabi-src}/cursors/miyabi/* $out/share/icons/miyabi/
'';
in
{
options.hm.env.cursor = {
enableMiyabi = lib.mkEnableOption "Enables the Miyabi cursor";
-
+
size = lib.mkOption {
type = lib.types.int;
default = 24;
@@ -22,7 +34,7 @@ in
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
- package = miyabi-cursor-pkg;
+ package = miyabi-cursor-pkg;
name = "miyabi";
size = cfg.size;
};
diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix
index b2031e2..4cf92e0 100644
--- a/hm/env/niri/binds.nix
+++ b/hm/env/niri/binds.nix
@@ -22,10 +22,20 @@ in
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && \
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
'';
- XF86Tools.action = spawn "sh" "-c" ''
- wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && \
- wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
- '';
+ # XF86Tools.action = spawn "sh" "-c" ''
+ # wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && \
+ # wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+ # '';
+ "XF86Tools" = {
+ action = spawn "sh" "-c" ''
+ pkill -9 firefox || true
+ swaylock -f
+ wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
+ wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1
+ niri msg action power-off-monitors
+ '';
+ repeat = false;
+ };
"Mod+WheelScrollDown".action = focus-column-right;
"Mod+WheelScrollUp".action = focus-column-left;