#bash script, how do i make it so when x process is ended (i close it) it swaps xrandr settings
7 messages · Page 1 of 1 (latest)
command-to-execute-process ; xrandr --output DP-4 --primary --mode 3440x1440 --rate 120.00 --output HDMI-0 --mode 1920x1080 --rate 60.00 --right-of DP-4
so this would make it work when i do kill
io dont wanna run the script and it kills it
i wanna make so it when i kill he program ymself by pressing the x button, it runs thes cript
You can also try pwait
That should still work. Unless the process stays active in the background after you close it.