Use the -m option in xfconf-query to monitor for changes #5
No reviewers
Labels
No labels
bug
duplicate
enhancement
experimental
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TROMjaro/fixes-package#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/5/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I also improved the overall code syntax, there's no need for the old functions anymore.
@tio: Test this and let me know if you find any bugs, when you're satisfied with the script then you can merge it.
@ -229,1 +3,3 @@
done < <(xfconf-query -c xsettings -m)
# Check if the system theme has been changed
if [ "$line" = 'set: /Net/ThemeName' ]; then
A minor thing: to replace
if;then;fi
withswitch;case
statement:More details and examples are here.
This just adds some structure and also an easier to update if some more settings changes will be necessary to subsctibe to. But I leave it up to you to decide, you can skip it if you want 😉
Oh of course it makes sense to use a case statement here, why didn't I think of it before? lol 😄
Oh, man.. Happens to me too quite often 😅