Fix layout file being created twice
This commit is contained in:
parent
d5f14c1178
commit
ffbec879fe
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Create layout file
|
# Create layout file
|
||||||
cat << EOF >> /tmp/hyprland-layout.txt
|
[[ ! -f /tmp/hyprland-layout.txt ]] && cat << EOF >> /tmp/hyprland-layout.txt
|
||||||
Hyprland Keybindings
|
Hyprland Keybindings
|
||||||
Listed in order of appearance in hyprland.conf
|
Listed in order of appearance in hyprland.conf
|
||||||
|
|
||||||
|
@ -56,8 +56,8 @@ Media keys
|
||||||
--> Play previous track -> Audio Previous
|
--> Play previous track -> Audio Previous
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Remove layout file
|
||||||
|
( sleep 1s; rm -rf /tmp/hyprland-layout.txt ) &
|
||||||
|
|
||||||
# Display layout file
|
# Display layout file
|
||||||
less /tmp/hyprland-layout.txt
|
less /tmp/hyprland-layout.txt
|
||||||
|
|
||||||
# Remove layout file
|
|
||||||
rm -rf /tmp/hyprland-layout.txt
|
|
||||||
|
|
Loading…
Reference in a new issue