Skip to content

Commit

Permalink
Create starthyprland
Browse files Browse the repository at this point in the history
  • Loading branch information
visnudeva authored Oct 19, 2024
1 parent 4ae5f02 commit f81d607
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions files/system/usr/bin/starthyprland
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

# Tell this script to exit if there are any errors.
# You should have this in every custom script, to ensure that your completed
# builds actually ran successfully without any errors!
set -oue pipefail


hyprland_conf="$HOME/.config/hypr/hyprland.conf"
default_conf="/usr/share/hyprland/hyprland.conf"

if [ -f "$hyprland_conf" ]; then
Hyprland -c "$hyprland_conf"
else
Hyprland -c "$default_conf"
fi

0 comments on commit f81d607

Please sign in to comment.