feat: refactor and add recording function on waybar
This commit is contained in:
parent
47b5336149
commit
f3475c7d02
15 changed files with 656 additions and 586 deletions
|
|
@ -1,12 +1,17 @@
|
|||
{
|
||||
mainMod,
|
||||
config,
|
||||
nvidia-offload-enabled,
|
||||
lib,
|
||||
pkgs,
|
||||
rofiWall,
|
||||
monitors ? [ ],
|
||||
}:
|
||||
with builtins;
|
||||
let
|
||||
inherit (lib) optionalString;
|
||||
|
||||
notransTag = "notrans";
|
||||
|
||||
firefox = "firefox";
|
||||
prefix = if nvidia-offload-enabled then "nvidia-offload" else "";
|
||||
browser = "${prefix} ${firefox}";
|
||||
|
|
@ -26,6 +31,10 @@ let
|
|||
fi
|
||||
'';
|
||||
|
||||
rofiWall = import ../../scripts/rofiwall.nix { inherit config pkgs; };
|
||||
|
||||
rbwSelector = import ../../scripts/rbwSelector.nix { inherit pkgs; };
|
||||
|
||||
scrollStep =
|
||||
let
|
||||
monitorsNum = length monitors;
|
||||
|
|
@ -47,6 +56,12 @@ in
|
|||
''${mainMod}, S, togglesplit, # dwindle''
|
||||
''CTRL ${mainMod} SHIFT, L, exec, hyprlock''
|
||||
|
||||
# Toggle transparent
|
||||
''${mainMod}, n, tagwindow, ${notransTag}''
|
||||
|
||||
# Bitwarden Selector
|
||||
(optionalString config.programs.rbw.enable ''CTRL ${mainMod}, P, exec, ${rbwSelector}'')
|
||||
|
||||
# Screenshot
|
||||
''${mainMod} SHIFT, s, exec, hyprshot -m region ${clipboardOnly}''
|
||||
''CTRL SHIFT, s, exec, hyprshot -m window ${clipboardOnly}''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue