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:
27
README.org
27
README.org
@@ -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]]
|
||||||
|
@@ -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]]
|
||||||
|
7
shikane/.scripts/shikane-postswitch.sh
Executable file
7
shikane/.scripts/shikane-postswitch.sh
Executable 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
|
Reference in New Issue
Block a user