diff options
Diffstat (limited to 'hm')
| -rw-r--r-- | hm/conf/git.nix | 1 | ||||
| -rw-r--r-- | hm/env/cursor.nix | 24 | ||||
| -rw-r--r-- | hm/env/niri/binds.nix | 18 | ||||
| -rw-r--r-- | hm/shell/cli.nix | 10 |
4 files changed, 40 insertions, 13 deletions
diff --git a/hm/conf/git.nix b/hm/conf/git.nix index 8797a52..b297153 100644 --- a/hm/conf/git.nix +++ b/hm/conf/git.nix @@ -7,6 +7,7 @@ in config = lib.mkIf cfg.enable { programs.git = { enable = true; + lfs.enable = true; settings = { user.name = "adikro"; user.email = "adikro@disroot.org"; 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; diff --git a/hm/shell/cli.nix b/hm/shell/cli.nix index 01aeb67..b02922b 100644 --- a/hm/shell/cli.nix +++ b/hm/shell/cli.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.hm.shell.cli; in @@ -31,13 +36,12 @@ in home.packages = with pkgs; [ nix-search-cli - magic-wormhole srm file mediainfo chafa hexyl - procs + procs yq-go tldr ]; |
