about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 16:26:38 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 16:26:38 +0200
commita49354a6ed5391f6814f9146a1706afdba6bf033 (patch)
tree1d86ec5a86073012484f867ed0970b5321b85ee2
parentRiver: Add wlsunset (diff)
downloadnixos-config-a49354a6ed5391f6814f9146a1706afdba6bf033.tar.gz
nixos-config-a49354a6ed5391f6814f9146a1706afdba6bf033.tar.bz2
nixos-config-a49354a6ed5391f6814f9146a1706afdba6bf033.zip
Use swaylock-effects instead of swaylock for showing clock
-rwxr-xr-xdotfiles/river/init4
-rw-r--r--flake.lock2
-rw-r--r--hosts/home.nix2
3 files changed, 4 insertions, 4 deletions
diff --git a/dotfiles/river/init b/dotfiles/river/init
index ed3c59c..6edf219 100755
--- a/dotfiles/river/init
+++ b/dotfiles/river/init
@@ -14,10 +14,10 @@ riverctl spawn "xrdb ~/.Xresources"
 riverctl spawn "xmodmap ~/.Xmodmap"
 riverctl spawn "swaybg -i ~/Images/Wallpapers/Day/wave.jpg"
 riverctl spawn "swayidle -w \
-        timeout 300 'swaylock -f -F -c 000000' \
+        timeout 300 'swaylock --clock --indicator -f -F -c 000000' \
 	timeout 400 'wlr-randr --output $(wlr-randr | head -n1 | awk "{print $1;}") --off' \
 	resume 'wlr-randr --output $(wlr-randr | head -n1 | awk "{print $1;}") --on' \
-        before-sleep 'swaylock -f -F -c 000000'"
+        before-sleep 'swaylock --clock --indicator -f -F -c 000000'"
 
 riverctl spawn 'wlsunset -l $(echo $LOCATION | cut -d: -f1) -L $(echo $LOCATION | cut -d: -f2)'
 riverctl spawn "unclutter"
diff --git a/flake.lock b/flake.lock
index 38911b1..df2c584 100644
--- a/flake.lock
+++ b/flake.lock
@@ -4,7 +4,7 @@
       "flake": false,
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-aNhTedFpYtNRiWPxZbHDOiu/t6s+qh/+fEDULWvP8B0=",
+        "narHash": "sha256-o2QD8mWYRxMe35dPwIp69+pxbW4uz/Jc7R06zD82paA=",
         "path": "./dotfiles",
         "type": "path"
       },
diff --git a/hosts/home.nix b/hosts/home.nix
index a73f4e9..8b75262 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -40,7 +40,7 @@
       wl-clipboard
       sway
       swayidle
-      swaylock
+      swaylock-effects
       swaybg
       river
       wlr-randr