about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 15:32:12 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-15 15:32:12 +0200
commit0925b84b1d0b4ff877b0cab4be56098ebf29762f (patch)
tree5f59663bbb544dfb70c6a216f11c8d66d3c3281e
parentAdd wayland idling/locking via sway(idle/lock) (diff)
downloadnixos-config-0925b84b1d0b4ff877b0cab4be56098ebf29762f.tar.gz
nixos-config-0925b84b1d0b4ff877b0cab4be56098ebf29762f.tar.bz2
nixos-config-0925b84b1d0b4ff877b0cab4be56098ebf29762f.zip
River: Spawn useful services in init script
-rwxr-xr-xdotfiles/river/init18
-rw-r--r--flake.lock2
2 files changed, 14 insertions, 6 deletions
diff --git a/dotfiles/river/init b/dotfiles/river/init
index 0b29c0e..8ec159b 100755
--- a/dotfiles/river/init
+++ b/dotfiles/river/init
@@ -10,18 +10,27 @@
 
 # Note: the "$mod" modifier is also known as Logo, GUI, Windows, Mod4, etc.
 
-xrdb ~/.Xresources &
-swaybg -i ~/Images/Wallpapers/Day/wave.jpg &
-swayidle -w \
+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 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 -f -F -c 000000'"
 
+riverctl spawn "unclutter"
+riverctl spawn "clipmenud"
+riverctl spawn "dunst"
+#riverctl spawn "numlockx on"
+riverctl spawn "systemctl --user start graphical-session.target"
+riverctl spawn "sxhkd"
+riverctl spawn "waybar"
 
 riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
 riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
 
+
 # $mod+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
 mod="Mod1"
 
@@ -170,7 +179,6 @@ riverctl float-filter-add title "popup title with spaces"
 # Set app-ids and titles of views which should use client side decorations
 riverctl csd-filter-add app-id "gedit"
 
-riverctl spawn "waybar &"
 
 # Set the default layout generator to be rivertile and start it.
 # River will send the process group of the init executable SIGTERM on exit.
diff --git a/flake.lock b/flake.lock
index e76ba75..83d5df5 100644
--- a/flake.lock
+++ b/flake.lock
@@ -4,7 +4,7 @@
       "flake": false,
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-gO3BIkUDARyXvjOUPZUP+fDVNk+dYsBIrEJXVw+6Vwc=",
+        "narHash": "sha256-d+2hHgeW6ATP3FIiiDPFQcUrJ9VC9e++jbHx3Ovwuu0=",
         "path": "./dotfiles",
         "type": "path"
       },