WIP: rice
This commit is contained in:
parent
f842c92339
commit
1096479c4a
14 changed files with 81 additions and 32 deletions
|
|
@ -26,7 +26,7 @@
|
|||
swaylock
|
||||
swww
|
||||
# walker
|
||||
way-lockscreen
|
||||
wl-lockscreen
|
||||
waybar
|
||||
wl-clipboard
|
||||
wl-clipedit
|
||||
|
|
@ -211,7 +211,7 @@
|
|||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = SUPER, RETURN, exec, kitty
|
||||
bind = SUPER, W, killactive,
|
||||
bind = SUPER, M, exec, way-lockscreen
|
||||
bind = SUPER, M, exec, wl-lockscreen
|
||||
bind = SUPER_ALT_L, Q, exit,
|
||||
bind = SUPER, E, exec, nautilus
|
||||
bind = SUPER, L, exec, env -u WAYLAND_DISPLAY logseq
|
||||
|
|
|
|||
|
|
@ -1,20 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
update_time = "10m";
|
||||
backgrounds_directory = "$HOME/Immagini/Sfondi/1080+/1440+";
|
||||
update_script = pkgs.writeShellScriptBin "wl-update-background" ''
|
||||
set -e
|
||||
if [ $# -eq 0 ]; then
|
||||
image=`${pkgs.findutils}/bin/find ${backgrounds_directory} -type f | ${pkgs.gnugrep}/bin/grep -v "/\." | ${pkgs.coreutils}/bin/shuf -n 1`
|
||||
else
|
||||
image="$1"
|
||||
fi
|
||||
echo "image: $image"
|
||||
${pkgs.swww}/bin/swww img "$image"
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [ update_script ];
|
||||
{ pkgs, ... }: {
|
||||
home.packages = [ pkgs.wl-update-background ];
|
||||
|
||||
systemd.user.services."wl-update-background" = {
|
||||
Unit = {
|
||||
|
|
@ -29,7 +14,7 @@ in
|
|||
Service = {
|
||||
Type = "oneshot";
|
||||
IOSchedulingClass = "idle";
|
||||
ExecStart = "${update_script}/bin/wl-update-background";
|
||||
ExecStart = "${pkgs.wl-update-background}/bin/wl-update-background";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -38,7 +23,7 @@ in
|
|||
Description = "Set random desktop background using swww";
|
||||
};
|
||||
Timer = {
|
||||
OnUnitActiveSec = update_time;
|
||||
OnUnitActiveSec = "10m";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [ "timers.target" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue