diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-17 16:15:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 16:15:04 +0900 |
| commit | f6cac04f24927419aba506e7bb51dd085f8aa8c2 (patch) | |
| tree | 650e29a07cb52ff7973361f92968ece49ea19066 /config/hypr/scripts/ChangeLayout.sh | |
| parent | 948d1db075ec815983628ebf467d0d49bbe1b5e4 (diff) | |
| parent | 338f213dd13ba560a08440d66302c96eea59d6de (diff) | |
Merge pull request #78 from JaKooLit/Development
some small tweaks
Diffstat (limited to 'config/hypr/scripts/ChangeLayout.sh')
| -rwxr-xr-x | config/hypr/scripts/ChangeLayout.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/hypr/scripts/ChangeLayout.sh b/config/hypr/scripts/ChangeLayout.sh index 6cb342fa..28b72035 100755 --- a/config/hypr/scripts/ChangeLayout.sh +++ b/config/hypr/scripts/ChangeLayout.sh @@ -1,5 +1,7 @@ #!/bin/bash +dunst_notif="$HOME/.config/dunst/images/bell.png" + LAYOUT=$(hyprctl -j getoption general:layout | jq '.str' | sed 's/"//g') case $LAYOUT in @@ -10,7 +12,7 @@ case $LAYOUT in hyprctl keyword bind SUPER,J,cyclenext hyprctl keyword bind SUPER,K,cyclenext,prev hyprctl keyword bind SUPER,O,togglesplit - notify-send "Dwindle Layout" + dunstify -u low -i "$dunst_notif" "Dwindle Layout" ;; "dwindle") hyprctl keyword general:layout master @@ -19,7 +21,7 @@ case $LAYOUT in hyprctl keyword unbind SUPER,O hyprctl keyword bind SUPER,J,layoutmsg,cyclenext hyprctl keyword bind SUPER,K,layoutmsg,cycleprev - notify-send "Master Layout" + dunstify -u low -i "$dunst_notif" "Master Layout" ;; *) ;; |
