feat: add gtklock configs to nix
This commit is contained in:
parent
3122d6ae25
commit
f0c8c6fd51
8 changed files with 38 additions and 3 deletions
|
@ -247,7 +247,7 @@
|
|||
|
||||
(eventbox :class "left-part"
|
||||
:cursor "pointer"
|
||||
:onclick "$HOME/.config/gtklock/scripts/lock.sh &"
|
||||
:onclick "$LOCK_PATH/lock.sh &"
|
||||
|
||||
(label :text " "
|
||||
:class "grid-label"
|
||||
|
|
4
config/gtklock/config.ini
Normal file
4
config/gtklock/config.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
[main]
|
||||
modules=/nix/var/nix/profiles/system/sw/lib/gtklock/powerbar-module.so;/nix/var/nix/profiles/system/sw/lib/gtklock/playerctl-module.so
|
||||
|
||||
#;/nix/var/nix/profiles/system/sw/lib/gtklock/userinfo-module.so
|
5
config/gtklock/scripts/blur.sh
Executable file
5
config/gtklock/scripts/blur.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
grim -t jpeg /tmp/image.jpeg
|
||||
convert /tmp/image.jpeg -blur 0x8 /tmp/image.jpeg
|
||||
|
4
config/gtklock/scripts/lock.sh
Executable file
4
config/gtklock/scripts/lock.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
$HYPR_PATH/laptop-mode.sh &
|
||||
$LOCK_PATH/blur.sh
|
||||
gtklock
|
17
config/gtklock/style.css
Normal file
17
config/gtklock/style.css
Normal file
|
@ -0,0 +1,17 @@
|
|||
@define-color accent rgba(189, 147, 249, 0.8);
|
||||
@define-color background rgb(40, 42, 54);
|
||||
|
||||
window {
|
||||
background-image: url("/tmp/image.jpeg");
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
#window-box {
|
||||
padding: 64px;
|
||||
border: 2px solid @accent;
|
||||
border-radius: 30px;
|
||||
background-color: @background;
|
||||
}
|
|
@ -48,7 +48,7 @@ exec-once = wl-paste --watch cliphist store
|
|||
exec-once = swayosd
|
||||
|
||||
# Change HandleLidSwitch to lock in logind.conf
|
||||
exec-once = swayidle -w lock $HOME/.config/gtklock/scripts/lock.sh
|
||||
exec-once = swayidle -w lock $LOCK_PATH/lock.sh
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_SIZE,24
|
||||
|
@ -176,7 +176,7 @@ bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-co
|
|||
bind = $mainMod, Q, exec, alacritty
|
||||
bind = $mainMod, C, killactive,
|
||||
|
||||
bind = $mainMod, L, exec, $HOME/.config/gtklock/scripts/lock.sh
|
||||
bind = $mainMod, L, exec, $LOCK_PATH/lock.sh
|
||||
bind = $mainMod SHIFT, E, exec, eww open closer && $EWW_PATH/open.sh powermenu
|
||||
bindn =, Escape, exec, $EWW_PATH/close-opened.sh
|
||||
bind = $mainMod SHIFT, SPACE, togglefloating,
|
||||
|
|
|
@ -8,7 +8,11 @@ in
|
|||
xdg.configFile = {
|
||||
"swaync/config.json".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/swaync/config.json";
|
||||
"swaync/style.css".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/swaync/style.css";
|
||||
|
||||
"swayosd/style.css".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/swayosd/style.css";
|
||||
|
||||
"gtklock/config.ini".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/gtklock/config.ini";
|
||||
"gtklock/style.css".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/gtklock/style.css";
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
|
@ -34,6 +34,7 @@ in
|
|||
|
||||
env = EWW_PATH, ${configDir}/eww/scripts
|
||||
env = HYPR_PATH, ${configDir}/hypr/scripts
|
||||
env = LOCK_PATH, ${configDir}/gtklock/scripts
|
||||
|
||||
exec-once = ${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
|
||||
source = ~/.config/hypr/main.conf
|
||||
|
|
Loading…
Reference in a new issue