Hyprland-dotfiles/hypr/settings/modules/system/defaults/browser/module.sh
Stephan Raabe 957eaaa77d Update
2024-02-04 13:54:11 +01:00

29 lines
651 B
Bash
Executable File

#!/bin/bash
_getHeader "$name" "$author"
echo "Define the start command to start your preferred browser (Default: chromium)."
echo
echo "Executable (if installed) are:"
echo "chromium for Chromium"
echo "google-chrome-stable for Google Chrome"
echo "brave for Brave"
echo "firefox for Firefox"
echo
# Define File
targetFile="$HOME/dotfiles/.settings/browser.sh"
# Current Value
echo "Current Value: $(cat $targetFile)"
# Select Value
customvalue=$(gum input --placeholder "Command to start")
if [ ! -z $customvalue ] ;then
# Write into file
echo "$customvalue" > $targetFile
else
echo "Please define a command"
sleep 1
fi
_goBack