mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: slock
This commit is contained in:
@@ -216,6 +216,9 @@ in {
|
|||||||
"k" = "resize shrink height 10 px or 5 ppt";
|
"k" = "resize shrink height 10 px or 5 ppt";
|
||||||
"l" = "resize grow width 10 px or 5 ppt";
|
"l" = "resize grow width 10 px or 5 ppt";
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
bindsym --release ${modifier}+Shift+w exec /run/wrappers/bin/slock
|
||||||
|
'';
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"${modifier}+Shift+h" = "move left 25 px";
|
"${modifier}+Shift+h" = "move left 25 px";
|
||||||
"${modifier}+Shift+j" = "move down 25 px";
|
"${modifier}+Shift+j" = "move down 25 px";
|
||||||
@@ -261,7 +264,6 @@ in {
|
|||||||
"${modifier}+y" = "exec ${(defaultApplications pkgs).browser}";
|
"${modifier}+y" = "exec ${(defaultApplications pkgs).browser}";
|
||||||
"${modifier}+0" = "exec ${niveumPackages.menu-calc}/bin/=";
|
"${modifier}+0" = "exec ${niveumPackages.menu-calc}/bin/=";
|
||||||
|
|
||||||
"${modifier}+Shift+w" = "exec slock";
|
|
||||||
"${modifier}+d" = "exec ${pkgs.writers.writeDash "run" ''exec rofi -modi run,ssh,window -show run''}";
|
"${modifier}+d" = "exec ${pkgs.writers.writeDash "run" ''exec rofi -modi run,ssh,window -show run''}";
|
||||||
"${modifier}+Shift+d" = "exec ${
|
"${modifier}+Shift+d" = "exec ${
|
||||||
pkgs.writers.writeDash "notemenu" ''
|
pkgs.writers.writeDash "notemenu" ''
|
||||||
|
|||||||
@@ -8,14 +8,18 @@
|
|||||||
shadow = true;
|
shadow = true;
|
||||||
menuOpacity = 0.9;
|
menuOpacity = 0.9;
|
||||||
shadowOpacity = 0.3;
|
shadowOpacity = 0.3;
|
||||||
|
fadeExclude = [
|
||||||
|
"class_g = 'slock'" # don't want a transparent lock screen!
|
||||||
|
"name *?= 'slock'"
|
||||||
|
"focused = 1"
|
||||||
|
];
|
||||||
opacityRules = [
|
opacityRules = [
|
||||||
# opacity-rule overrides both inactive and active opacity
|
# opacity-rule overrides both inactive and active opacity
|
||||||
"100:class_g = 'slock'" # don't want a transparent lock screen!
|
|
||||||
|
|
||||||
# video in browser tabs
|
# video in browser tabs
|
||||||
# substring /regex match of title bar text
|
# substring /regex match of title bar text
|
||||||
"100:name *?= 'Youtube'"
|
"99:name *?= 'Youtube'"
|
||||||
"100:name *?= 'slock'"
|
"99:WM_CLASS@:s *= 'mpv$'"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user