Shikane Post Switch Script

- Explicitly set shikane startup timeout to 0 seconds
- Add unified post switch script for shikane
- Reload hyprland config, restart waybar service, and restart gammastep
  in shikane post switch script
This commit is contained in:
Sravan Balaji
2025-04-29 21:33:01 -04:00
parent 3843a02cee
commit d642f03b70
3 changed files with 34 additions and 6 deletions

View File

@@ -3883,14 +3883,33 @@ postlock() {
*** Shikane *** Shikane
**** Docked **** Post Switch
#+BEGIN_SRC shell :shebang #!/usr/bin/env bash :tangle shikane/.scripts/shikane-postswitch.sh
if [ $XDG_SESSION_DESKTOP == "Hyprland" ]; then
hyprctl reload
fi
systemctl --user restart waybar.service
$HOME/.scripts/gammastep.sh --on
#+END_SRC
**** Timeout
#+BEGIN_SRC toml :tangle shikane/.config/shikane/config.toml
timeout = 0
#+END_SRC
**** Profiles
***** Docked
#+BEGIN_SRC toml :tangle shikane/.config/shikane/config.toml #+BEGIN_SRC toml :tangle shikane/.config/shikane/config.toml
[[profile]] [[profile]]
name = "docked" name = "docked"
exec = [ exec = [
"notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &", "notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &",
"$HOME/.scripts/gammastep.sh --on" "$HOME/.scripts/shikane-postswitch.sh"
] ]
[[profile.output]] [[profile.output]]
@@ -3925,14 +3944,14 @@ transform = "normal"
adaptive_sync = false adaptive_sync = false
#+END_SRC #+END_SRC
**** Mobile ***** Mobile
#+BEGIN_SRC toml :tangle shikane/.config/shikane/config.toml #+BEGIN_SRC toml :tangle shikane/.config/shikane/config.toml
[[profile]] [[profile]]
name = "mobile" name = "mobile"
exec = [ exec = [
"notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &", "notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &",
"$HOME/.scripts/gammastep.sh --on" "$HOME/.scripts/shikane-postswitch.sh"
] ]
[[profile.output]] [[profile.output]]

View File

@@ -1,8 +1,10 @@
timeout = 0
[[profile]] [[profile]]
name = "docked" name = "docked"
exec = [ exec = [
"notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &", "notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &",
"$HOME/.scripts/gammastep.sh --on" "$HOME/.scripts/shikane-postswitch.sh"
] ]
[[profile.output]] [[profile.output]]
@@ -40,7 +42,7 @@ adaptive_sync = false
name = "mobile" name = "mobile"
exec = [ exec = [
"notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &", "notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\" &",
"$HOME/.scripts/gammastep.sh --on" "$HOME/.scripts/shikane-postswitch.sh"
] ]
[[profile.output]] [[profile.output]]

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
if [ $XDG_SESSION_DESKTOP == "Hyprland" ]; then
hyprctl reload
fi
systemctl --user restart waybar.service
$HOME/.scripts/gammastep.sh --on