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}''
|
||||
|
|
|
|||
|
|
@ -1,10 +1,16 @@
|
|||
let
|
||||
inherit (builtins) map concatLists;
|
||||
top = "60";
|
||||
right = "100%-w-10";
|
||||
notransTag = "notrans";
|
||||
noTransList = [
|
||||
"title:(.*)( - YouTube — Mozilla Firefox)"
|
||||
"title:(.*)( - 巴哈姆特動畫瘋 — Mozilla Firefox)"
|
||||
];
|
||||
in
|
||||
{
|
||||
windowrule = [
|
||||
"pseudo, class:fcitx"
|
||||
"pseudo, class:(org.fcitx.)"
|
||||
"float, class:file_progress"
|
||||
"float, class:confirm"
|
||||
"float, class:dialog"
|
||||
|
|
@ -21,10 +27,7 @@ in
|
|||
"fullscreen, title:wlogout"
|
||||
"float, title:wlogout"
|
||||
"fullscreen, title:wlogout"
|
||||
"idleinhibit stayfocused, class:mpv"
|
||||
];
|
||||
|
||||
windowrulev2 = [
|
||||
"float, title:^(Media viewer)$"
|
||||
"float, title:^(File Operation Progress)$"
|
||||
"float, class:^(it.mijorus.smile)"
|
||||
|
|
@ -67,7 +70,7 @@ in
|
|||
# Airplay
|
||||
"pin, class: ^(GStreamer)$"
|
||||
"float, class: ^(GStreamer)$"
|
||||
"opacity 1.0, class: ^(GStreamer)$"
|
||||
"opacity 1.0 override 1.0 override, class: ^(GStreamer)$"
|
||||
"animation slide right 20%, class: ^(GStreamer)$"
|
||||
|
||||
# Bluetooth
|
||||
|
|
@ -94,7 +97,24 @@ in
|
|||
|
||||
# Davinci resolve
|
||||
"center 1, initialClass: ^(resolve), floating: 1"
|
||||
];
|
||||
|
||||
# Disable Tansparent for youtube video
|
||||
"opacity 1.0 override 1.0 override, title:(.*)( - YouTube — Mozilla Firefox)"
|
||||
"noblur, title:(.*)( - YouTube — Mozilla Firefox)"
|
||||
|
||||
"opacity 1.0 override 1.0 override, title:(.*)( - 巴哈姆特動畫瘋 — Mozilla Firefox)"
|
||||
"noblur, title:(.*)( - YouTube — Mozilla Firefox)"
|
||||
|
||||
# Disable Tansparent
|
||||
"opacity 1.0 override 1.0 override, tag:${notransTag}"
|
||||
"noblur, tag: ^(${notransTag})$"
|
||||
]
|
||||
++ (concatLists (
|
||||
map (w: [
|
||||
"opacity 1.0 override 1.0 override, ${w}"
|
||||
"noblur, ${w}"
|
||||
]) noTransList
|
||||
));
|
||||
|
||||
layerrule = [
|
||||
"blur, waybar"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue