diff options
Diffstat (limited to 'hm/env')
| -rw-r--r-- | hm/env/env.nix | 1 | ||||
| -rw-r--r-- | hm/env/mako.nix | 15 | ||||
| -rw-r--r-- | hm/env/niri/binds.nix | 14 |
3 files changed, 25 insertions, 5 deletions
diff --git a/hm/env/env.nix b/hm/env/env.nix index 80e19f8..a5caec2 100644 --- a/hm/env/env.nix +++ b/hm/env/env.nix @@ -11,5 +11,6 @@ ./swaylock.nix ./theme.nix ./waybar.nix + ./mako.nix ]; } diff --git a/hm/env/mako.nix b/hm/env/mako.nix new file mode 100644 index 0000000..3f9e3ef --- /dev/null +++ b/hm/env/mako.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: +let + cfg = config.hm.env.mako; +in +{ + options.hm.env.mako.enable = lib.mkEnableOption "enables mako notifications"; + config = lib.mkIf cfg.enable { + services.mako = { + enable = true; + settings = { + + }; + }; + }; +} diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix index c071d2e..ff8353e 100644 --- a/hm/env/niri/binds.nix +++ b/hm/env/niri/binds.nix @@ -9,7 +9,7 @@ with config.lib.niri.actions; let playerctl = spawn "${pkgs.playerctl}/bin/playerctl"; ssPath = "${toString config.hm.conf.xdg-dirs.storagePath}/pics/ss/$(date +%Y-%m-%d_%H-%M-%S)"; - # obsPass = osConfig.sops.secrets."obs/websocket_password".path; + obsPass = osConfig.sops.secrets."obs/websocket_password".path; in { # --- System & Media --- @@ -21,7 +21,7 @@ in XF86AudioLowerVolume.action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "3%-"; XF86AudioMute.action = spawn "sh" "-c" - "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"; + "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && toggle-mute-notify"; # Media Control XF86AudioPlay.action = playerctl "play-pause"; @@ -29,14 +29,14 @@ in XF86AudioNext.action = playerctl "next"; # Brightness - XF86MonBrightnessUp.action = spawn "light" "-A" "10"; - XF86MonBrightnessDown.action = spawn "light" "-U" "10"; + XF86MonBrightnessUp.action = spawn "brightnessctl" "set" "5%+"; + XF86MonBrightnessDown.action = spawn "brightnessctl" "set" "5%-"; # --- Applications --- "Mod+Return".action = spawn "footclient"; "Mod+D".action = spawn "fuzzel"; "Mod+Shift+D".action = spawn "sh" "-c" "cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"; - # "Super+Return".action = spawn "sh" "-c" "OBS_WEBSOCKET_URL=$(cat ${obsPass}) obs-cmd replay save"; + "Super+Return".action = spawn "sh" "-c" "OBS_WEBSOCKET_URL=$(cat ${obsPass}) obs-cmd replay save"; "Super+C".action = spawn "qalculate-gtk"; "Super+D".action = spawn "equibop"; @@ -68,6 +68,10 @@ in }; XF86Tools = { + action = spawn "sh" "-c" "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && toggle-mute-notify"; + repeat = false; + }; + "Mod+XF86Tools" = { action = spawn "sh" "-c" "niri msg action set-dynamic-cast-window --id $(niri msg --json pick-window | ${pkgs.jq}/bin/jq .id)"; |
