Hyprland-dotfiles/hypr/settings/modules/system/defaults/networkmanager/module.sh

26 lines
612 B
Bash
Raw Normal View History

2023-12-18 14:33:29 -05:00
#!/bin/bash
_getHeader "$name" "$author"
2024-01-01 05:40:15 -05:00
echo "Define the start command to start the networkmanager (Must be installed on your system)."
2024-01-11 10:03:36 -05:00
echo "(Default: nm-connection-editor)"
2024-01-01 05:40:15 -05:00
echo "Possible values: alacritty -e nmtui, nm-connection-editor, etc."
2023-12-18 14:33:29 -05:00
# Define File
targetFile="$HOME/dotfiles/.settings/networkmanager.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