diff options
| author | adikro <adikro@disroot.org> | 2026-03-14 18:31:25 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-03-14 18:31:25 +0100 |
| commit | 8eb0e90219a4de87d8d476e15329e14720f091c6 (patch) | |
| tree | f2ef91f5b6c1429e3cfd4448e67afd347aee610d /hm | |
| parent | f0c0e311c003057f24d8045509a627ad2acab978 (diff) | |
added fprint support, downgraded vr version
Diffstat (limited to 'hm')
| -rw-r--r-- | hm/env/niri/binds.nix | 20 | ||||
| -rw-r--r-- | hm/soft/browser.nix | 21 | ||||
| -rw-r--r-- | hm/soft/nixcord.nix | 11 |
3 files changed, 26 insertions, 26 deletions
diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix index ff8353e..27eb583 100644 --- a/hm/env/niri/binds.nix +++ b/hm/env/niri/binds.nix @@ -9,7 +9,8 @@ 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; + obsEnabled = config.hm.soft.obs.enable or false; + obsPass = if obsEnabled then osConfig.sops.secrets."obs/websocket_password".path else ""; in { # --- System & Media --- @@ -17,8 +18,11 @@ in "Mod+Slash".action = show-hotkey-overlay; # Audio (System-wide via wireplumber) - XF86AudioRaiseVolume.action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "3%+"; - XF86AudioLowerVolume.action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "3%-"; + XF86AudioRaiseVolume.action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "2%+"; + XF86AudioLowerVolume.action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "2%-"; + XF86AudioMicMute.action = + spawn "sh" "-c" + "wpctlwpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && toggle-mute-notify"; XF86AudioMute.action = spawn "sh" "-c" "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && toggle-mute-notify"; @@ -36,7 +40,6 @@ in "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+C".action = spawn "qalculate-gtk"; "Super+D".action = spawn "equibop"; @@ -52,8 +55,8 @@ in "Super+H".action = focus-monitor-left; "Super+L".action = focus-monitor-right; - "Super+Shift+H".action = move-column-left-or-to-monitor-left; - "Super+Shift+L".action = move-column-right-or-to-monitor-right; + "Super+Shift+H".action = move-column-to-monitor-left; + "Super+Shift+L".action = move-column-to-monitor-right; "Mod+WheelScrollDown".action = focus-column-right; "Mod+WheelScrollUp".action = focus-column-left; @@ -71,6 +74,7 @@ in action = spawn "sh" "-c" "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && toggle-mute-notify"; repeat = false; }; + "Mod+XF86Tools" = { action = spawn "sh" "-c" @@ -146,7 +150,11 @@ in "Mod+grave".action.focus-workspace = 0; "Mod+Shift+grave".action.move-column-to-workspace = 0; + } +// (lib.optionalAttrs obsEnabled { + "Super+Return".action = spawn "sh" "-c" "OBS_WEBSOCKET_URL=$(cat ${obsPass}) obs-cmd replay save"; +}) // (builtins.listToAttrs ( builtins.concatMap ( keyNum: diff --git a/hm/soft/browser.nix b/hm/soft/browser.nix index a9a2f1b..dd8f129 100644 --- a/hm/soft/browser.nix +++ b/hm/soft/browser.nix @@ -3,9 +3,11 @@ lib, pkgs, ... -}: let +}: +let cfg = config.hm.soft.browser; -in { +in +{ options.hm.soft.browser = { librewolf.enable = lib.mkEnableOption "LibreWolf browser"; brave.enable = lib.mkEnableOption "Brave browser"; @@ -14,23 +16,12 @@ in { (lib.mkIf cfg.librewolf.enable { programs.librewolf = { enable = true; - settings = { - "ui.key.menuAccessKeyFocuses" = false; - "browser.search.update" = false; - "browser.formfill.enable" = false; - "browser.search.suggest.enabled" = false; - "signon.rememberSignons" = false; - "browser.urlbar.showSearchTerms.featureGate" = false; - "browser.toolbars.bookmarks.visibility" = "always"; - - # "privacy.clearOnShutdown.cookies" = true; - # "privacy.clearOnShutdown.cache" = true; - }; + settings."ui.key.menuAccessKeyFocuses" = false; }; }) (lib.mkIf cfg.brave.enable { - home.packages = [pkgs.brave]; + home.packages = [ pkgs.brave ]; }) ]; } diff --git a/hm/soft/nixcord.nix b/hm/soft/nixcord.nix index a929b2e..a6b4217 100644 --- a/hm/soft/nixcord.nix +++ b/hm/soft/nixcord.nix @@ -17,6 +17,7 @@ in stoat-desktop element-desktop gajim + equibop ]; programs.nixcord = { enable = true; @@ -25,12 +26,12 @@ in autoscroll.enable = true; vencord.enable = false; - # equicord.enable = true; - }; - equibop = { - enable = true; - autoscroll.enable = true; + equicord.enable = true; }; + # equibop = { + # enable = true; + # autoscroll.enable = true; + # }; config = { themeLinks = [ "https://raw.codeberg.page/AllPurposeMat/Disblock-Origin/DisblockOrigin.theme.css" ]; frameless = true; |
