diff options
Diffstat (limited to 'hm')
| -rw-r--r-- | hm/env/niri/binds.nix | 11 | ||||
| -rw-r--r-- | hm/env/niri/niri.nix | 2 | ||||
| -rw-r--r-- | hm/env/swaylock.nix | 32 | ||||
| -rw-r--r-- | hm/soft/mpv.nix | 5 | ||||
| -rw-r--r-- | hm/soft/nixcord.nix | 5 |
5 files changed, 48 insertions, 7 deletions
diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix index f2b8540..45caece 100644 --- a/hm/env/niri/binds.nix +++ b/hm/env/niri/binds.nix @@ -14,9 +14,13 @@ in # Audio XF86AudioRaiseVolume.action = playerctl "volume" "0.02+"; XF86AudioLowerVolume.action = playerctl "volume" "0.02-"; - XF86AudioMute.action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; - XF86AudioMicMute.action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; - + XF86AudioMute = { + allow-when-locked = true; + action = spawn "sh" "-c" '' + wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && \ + wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle + ''; + }; # Media keys XF86AudioPlay.action = playerctl "play-pause"; XF86AudioPrev.action = playerctl "previous"; @@ -61,6 +65,7 @@ in "Mod+C".action = spawn "qalculate-gtk"; "Mod+BracketLeft".action = consume-or-expel-window-left; "Mod+BracketRight".action = consume-or-expel-window-right; + "Super+L".action = spawn "swaylock"; "Mod+R".action = switch-preset-column-width; "Mod+Shift+R".action = reset-window-height; diff --git a/hm/env/niri/niri.nix b/hm/env/niri/niri.nix index 02e7472..fbbb5f2 100644 --- a/hm/env/niri/niri.nix +++ b/hm/env/niri/niri.nix @@ -17,6 +17,7 @@ in debug.disable-cursor-plane = []; binds = import ./binds.nix { inherit config lib pkgs; }; + # animations.enable = false; prefer-no-csd = true; hotkey-overlay.skip-at-startup = true; input = { @@ -90,6 +91,7 @@ in }; home.packages = with pkgs; [ qalculate-gtk + gavin-bc ]; }; } diff --git a/hm/env/swaylock.nix b/hm/env/swaylock.nix index afde020..bbc4483 100644 --- a/hm/env/swaylock.nix +++ b/hm/env/swaylock.nix @@ -8,6 +8,38 @@ in programs.swaylock = { enable = true; package = pkgs.swaylock-effects; + settings = { + color = "000000"; + indicator-idle-visible = true; + indicator-radius = 150; + indicator-thickness = 0; + clock = true; + timestr = "%H:%M"; + datestr = ""; + bs-hl-color = "000000"; + caps-lock-bs-hl-color = "000000"; + caps-lock-key-hl-color = "000000"; + font = "Terminus"; + font-size = 48; + # this is so ass + inside-color = "000000"; + inside-clear-color = "000000"; + inside-caps-lock-color = "000000"; + inside-ver-color = "000000"; + inside-wrong-color = "000000"; + key-hl-color = "000000"; + line-uses-ring = true; + ring-color = "000000"; + ring-clear-color = "000000"; + ring-caps-lock-color = "000000"; + ring-ver-color = "000000"; + ring-wrong-color = "000000"; + text-color = "ffffff"; + text-clear-color = "ffffff"; + text-caps-lock-color = "ff0000"; + text-ver-color = "ffffff"; + text-wrong-color = "ff0000"; + }; }; }; } diff --git a/hm/soft/mpv.nix b/hm/soft/mpv.nix index 08f97e6..4e4d08e 100644 --- a/hm/soft/mpv.nix +++ b/hm/soft/mpv.nix @@ -39,7 +39,10 @@ in profile = "gpu-hq"; gpu-api = "vulkan"; vo = "gpu-next"; - hwdec = "vaapi-copy"; + + hwdec = "vaapi"; + gpu-hwdec-interop = "vaapi"; + hwdec-codecs = "all"; scale = "ewa_lanczossharp"; cscale = "ewa_lanczos"; diff --git a/hm/soft/nixcord.nix b/hm/soft/nixcord.nix index 8c2f002..2f12aca 100644 --- a/hm/soft/nixcord.nix +++ b/hm/soft/nixcord.nix @@ -1,4 +1,4 @@ -{ inputs, config, lib, pkgs, ... }: +{ inputs, config, lib, ... }: let cfg = config.hm.soft.nixcord; in @@ -11,7 +11,6 @@ in enable = true; discord = { enable = true; - package = pkgs.discord-krisp; autoscroll.enable = true; vencord.enable = false; @@ -25,7 +24,7 @@ in frameless = true; plugins = { ClearURLs.enable = true; - NoRPC.enable = true; + RPCEditor.enable = true; OnePingPerDM.enable = true; PinDMs = { enable = true; canCollapseDmSection = true; }; SaveFavoriteGIFs.enable = true; |
