Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~/.config/autorandr/postswitch doesn't execute when profile has postswitch #356

Open
alirezaalavi87 opened this issue Jun 25, 2023 · 1 comment

Comments

@alirezaalavi87
Copy link

Hi, thanks for the great project.

I have a ~/.config/autorandr/postswitch with the content:

#!/bin/bash

i3-msg "restart"
notify-send -i video-display-symbolic.symbolic "Display profile" "$AUTORANDR_CURRENT_PROFILE"
killall conky
conky --quiet --daemonize && conky --quiet --daemonize -c $HOME/.config/conky/Rischa/Rischa.conf

notify-send "TEEEEEEEEST"

and a postswitch in my profile ~/.config/autorandr/office/postswitch with content:

#!/bin/bash

bluetooth on
i3-msg "exec --no-startup-id lmc"
notify-send "office postswitch"

when I use this profile, first file doesn't get executed and only the second file gets executed. is this the default behaviour? how can I have a script that always gets executed?

@proudhon
Copy link

proudhon commented Jul 15, 2023

Same problem here but with configuration-specific postswitch scripts (i.e. .config/autorandr/profile1/postswitch)
The weirdest thing is that if I manually run the script once it then gets executed all the times with no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants