Simple profile changing script #105
gimmemabrewski
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use kde and he hasn't made a plasmoid yet so I wrote a little script so I could switch through the different profiles using keyboard shortcuts. I figured I would share 😛.
For those that run across this and aren't sure how to use it. Copy/paste this, save it somewhere, and make it executable. Go to your keyboard shortcut settings. Make 2 shortcuts for up and down. For the triggers I used 'ctrl+volume up/volume down' but whatever floats your boat. For the command arguments use '-up' and '-down' (ex: profile-switch -up). Make sure you use the full path to the script if you didn't save it in your $PATH or are unsure! Hopefully someone finds this handy 😄
P.S. You need zsh installed unless you want to rewrite it in bash lol
EDIT: changed ugency to 2 in gdbus so it shows up when notifications are off
Beta Was this translation helpful? Give feedback.
All reactions