radio: files: river: Move the 'Autostart applications' section to the begin of the file, also avoid using `riverctl spawn` when not necessary

impermanence
Luis Guilherme Coelho 2024-07-03 21:50:02 -03:00
parent 5660383e56
commit 2adb94e2db
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 17 additions and 15 deletions

View File

@ -9,6 +9,23 @@ for mode in locked normal wlrctl; do
riverctl map-switch $mode lid close "doas zzz"
done
# Autostart applications ______________________________________________________
spawn () {
$1 >> ~/.local/state/log/$(basename $1).log 2>&1 &
}
# xdg-desktop-portal
dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river
spawn ~/.guix-home/profile/libexec/xdg-desktop-portal-wlr
spawn ~/.guix-home/profile/libexec/xdg-desktop-portal
for application in gammastep waybar fnott keepassxc; do
spawn $application
done
wayneko --background-colour 0x606060 --layer overlay &
# Decorations _________________________________________________________________
# wallpaper
@ -278,18 +295,3 @@ riverctl map passthrough Super F12 enter-mode normal
# initial view tags
# riverctl rule-add -app-id 'TelegramDesktop' ${scratch_tag}
# Autostart applications ______________________________________________________
spawn () {
riverctl spawn "$1 >> ~/.local/state/log/$(basename $1).log 2>&1" &
}
dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river
spawn ~/.guix-home/profile/libexec/xdg-desktop-portal-wlr
spawn ~/.guix-home/profile/libexec/xdg-desktop-portal
for application in gammastep waybar fnott keepassxc; do
spawn $application
done
riverctl spawn "wayneko --background-colour 0x606060 --layer overlay"