chore(desktop): fix breaking changes
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-06 23:02:18 -05:00
parent c4e8e56835
commit 52af004829
4 changed files with 28 additions and 17 deletions

View file

@ -15,8 +15,6 @@ decoration {
size = 3
passes = 1
}
drop_shadow = false
}
animations {

View file

@ -25,22 +25,22 @@
exec-once = ["ags"];
bind = [
"$mainMod SHIFT, E , exec, ags -t win-powermenu"
"$mainMod , D , exec, ags -t win-applauncher"
"$mainMod , V , exec, ags -t win-clipboard"
" , Print, exec, ags -t win-screenshot"
"$mainMod SHIFT, E , exec, ags toggle win-powermenu"
"$mainMod , D , exec, ags toggle win-applauncher"
"$mainMod , V , exec, ags toggle win-clipboard"
" , Print, exec, ags toggle win-screenshot"
];
binde = [
## Brightness control
", XF86MonBrightnessUp , exec, ags -m 'Brightness.screen += 0.05'"
", XF86MonBrightnessDown, exec, ags -m 'Brightness.screen -= 0.05'"
", XF86MonBrightnessUp , exec, ags request 'Brightness.screen += 0.05'"
", XF86MonBrightnessDown, exec, ags request 'Brightness.screen -= 0.05'"
## Volume control
", XF86AudioRaiseVolume , exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ & ags -m 'popup_osd(\"speaker\")' &"
", XF86AudioLowerVolume , exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- & ags -m 'popup_osd(\"speaker\")' &"
", XF86AudioRaiseVolume , exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ & ags request 'popup_osd(\"speaker\")' &"
", XF86AudioLowerVolume , exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- & ags request 'popup_osd(\"speaker\")' &"
];
bindn = [" , Escape , exec, ags -m 'closeAll()'"];
bindr = ["CAPS, Caps_Lock, exec, ags -m 'Brightness.fetchCapsState()'"];
bindn = [" , Escape , exec, ags request 'closeAll()'"];
bindr = ["CAPS, Caps_Lock, exec, ags request 'Brightness.fetchCapsState()'"];
};
};
}

View file

@ -34,9 +34,15 @@
in {
programs.ags-v2.lockPkg = pkgs.writeShellApplication {
name = "lock";
runtimeInputs = [agsFull];
text = ''
export CONF="lock"
exec ${agsFull}/bin/ags --config ${fullConfPath} -i lock "$@"
if [ "$#" == 0 ]; then
exec ags run ${fullConfPath}
else
exec ags "$@" -i lock
fi
'';
};
@ -45,16 +51,23 @@
[
(pkgs.writeShellApplication {
name = "ags";
runtimeInputs = [agsFull];
text = ''
export CONF="${hostName}"
exec ${agsFull}/bin/ags --config ${fullConfPath} "$@"
if [ "$#" == 0 ]; then
exec ags run ${fullConfPath}
else
exec ags "$@"
fi
'';
})
(pkgs.writeShellApplication {
name = "agsConf";
runtimeInputs = [agsFull];
text = ''
export CONF="$1"
exec ${agsFull}/bin/ags --config ${fullConfPath}
exec ${agsFull}/bin/ags run ${fullConfPath}
'';
})
]

View file

@ -62,11 +62,11 @@
case "$state" in
*open*)
${getExe runInDesktop} "${getExe lockPkg} -m 'authFinger()'"
${getExe runInDesktop} "${getExe lockPkg} request 'authFinger()'"
;;
*close*)
${getExe runInDesktop} ${getExe lockPkg}
${getExe runInDesktop} "${getExe lockPkg}"
;;
*)