Fix Autostart Processes Exiting Prematurely

- Make all autostart processes run in background so they don't
  immediately exit
- Adjust waybar click actions to run as uwsm apps
This commit is contained in:
Sravan Balaji
2025-04-27 09:14:23 -04:00
parent 5b64925d8b
commit 4bc0986eb2
3 changed files with 56 additions and 56 deletions

View File

@@ -114,28 +114,28 @@
},
"custom/dunst-status": {
"exec": "~/.config/hypr/waybar/scripts/dunst.sh",
"exec": "uwsm app -- $HOME/.config/hypr/waybar/scripts/dunst.sh",
"restart-interval": 1,
"on-click": "~/.scripts/dunst.sh --dnd",
"on-click-right": "~/.scripts/dunst.sh --rofi",
"on-click": "uwsm app -- $HOME/.scripts/dunst.sh --dnd",
"on-click-right": "uwsm app -- $HOME/.scripts/dunst.sh --rofi",
"tooltip": true,
"tooltip-format": "Toggle Do Not Disturb",
},
"custom/dunst-clear": {
"format": "",
"on-click": "~/.scripts/dunst.sh --close-all",
"on-click": "uwsm app -- $HOME/.scripts/dunst.sh --close-all",
"tooltip": true,
"tooltip-format": "Close Open Notifications",
},
"custom/dunst-history-view": {
"format": "󰋚",
"on-click": "~/.scripts/dunst.sh --history",
"on-click": "uwsm app -- $HOME/.scripts/dunst.sh --history",
"tooltip": true,
"tooltip-format": "View Notification History",
},
"custom/dunst-history-clear": {
"format": "󰎟",
"on-click": "~/.scripts/dunst.sh --history-clear",
"on-click": "uwsm app -- $HOME/.scripts/dunst.sh --history-clear",
"tooltip": true,
"tooltip-format": "Clear Notification History",
},
@@ -145,7 +145,7 @@
"format": "󰋊 {percentage_used}%",
"tooltip": true,
"tooltip-format": "Used: {used} ({percentage_used}%)\nFree: {free} ({percentage_free}%)\nTotal: {total}",
"on-click-right": "qdirstat",
"on-click-right": "uwsm app -- qdirstat",
},
"idle_inhibitor": {
@@ -165,67 +165,67 @@
"format": " {percentage}%",
"tooltip": true,
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
"on-click-right": "foot btop",
"on-click-right": "uwsm app -- foot btop",
},
"custom/media-playing-source": {
"exec": "~/.config/hypr/waybar/scripts/get-media-playing.sh",
"exec": "uwsm app -- $HOME/.config/hypr/waybar/scripts/get-media-playing.sh",
"return-type": "json",
"restart-interval": 1,
"on-click": "~/.scripts/playerctl.sh --change",
"on-click": "uwsm app -- $HOME/.scripts/playerctl.sh --change",
"tooltip": true,
},
"custom/media-playing-prev": {
"format": "󰒮",
"on-click": "~/.scripts/playerctl.sh --prev",
"on-click": "uwsm app -- $HOME/.scripts/playerctl.sh --prev",
"tooltip": false,
},
"custom/media-playing-play-pause": {
"exec": "~/.config/hypr/waybar/scripts/get-media-status-icon.sh",
"exec": "uwsm app -- $HOME/.config/hypr/waybar/scripts/get-media-status-icon.sh",
"restart-interval": 1,
"on-click": "~/.scripts/playerctl.sh --play-pause",
"on-click": "uwsm app -- $HOME/.scripts/playerctl.sh --play-pause",
"tooltip": false,
},
"custom/media-playing-next": {
"format": "󰒭",
"on-click": "~/.scripts/playerctl.sh --next",
"on-click": "uwsm app -- $HOME/.scripts/playerctl.sh --next",
"tooltip": false,
},
"custom/power-menu-launcher": {
"format": "",
"on-click": "rofi -show combi",
"on-click-right": "~/.scripts/control-center.sh --rofi",
"on-click": "rofi -show combi -run-command 'uwsm app -- {cmd}'",
"on-click-right": "uwsm app -- $HOME/.scripts/control-center.sh --rofi",
"tooltip": true,
"tooltip-format": "Application Launcher",
},
"custom/power-menu-shutdown": {
"format": "",
"on-click": "~/.scripts/session.sh --shutdown",
"on-click": "uwsm app -- $HOME/.scripts/session.sh --shutdown",
"tooltip": true,
"tooltip-format": "Shutdown",
},
"custom/power-menu-reboot": {
"format": "",
"on-click": "~/.scripts/session.sh --reboot",
"on-click": "uwsm app -- $HOME/.scripts/session.sh --reboot",
"tooltip": true,
"tooltip-format": "Reboot",
},
"custom/power-menu-sleep": {
"format": "⏾",
"on-click": "~/.scripts/session.sh --sleep",
"on-click": "uwsm app -- $HOME/.scripts/session.sh --sleep",
"tooltip": true,
"tooltip-format": "Sleep",
},
"custom/power-menu-lock": {
"format": "",
"on-click": "~/.scripts/session.sh --lock",
"on-click": "uwsm app -- $HOME/.scripts/session.sh --lock",
"tooltip": true,
"tooltip-format": "Lock",
},
"custom/power-menu-logout": {
"format": "",
"on-click": "~/.scripts/session.sh --logout",
"on-click": "uwsm app -- $HOME/.scripts/session.sh --logout",
"tooltip": true,
"tooltip-format": "Logout",
},
@@ -245,18 +245,18 @@
"default": "",
},
"scroll-step": 5,
"on-click": "~/.scripts/pactl.sh --mute",
"on-click-right": "~/.scripts/pactl.sh --mixer",
"on-click": "uwsm app -- $HOME/.scripts/pactl.sh --mute",
"on-click-right": "uwsm app -- $HOME/.scripts/pactl.sh --mixer",
"tooltip": true,
"tooltip-format": "{desc}",
"scroll-step": 0.25,
},
"custom/system76-power": {
"exec": "~/.config/hypr/waybar/scripts/system76-power.sh",
"exec": "uwsm app -- $HOME/.config/hypr/waybar/scripts/system76-power.sh",
"return-type": "json",
"restart-interval": 60,
"on-click-right": "~/.scripts/cpu-gpu.sh --rofi",
"on-click-right": "uwsm app -- $HOME/.scripts/cpu-gpu.sh --rofi",
"tooltip": true,
},