This commit is contained in:
Stephan Raabe
2024-01-11 16:03:36 +01:00
parent f807a8af03
commit 222b23bb4c
37 changed files with 303 additions and 126 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
_getHeader "$name" "$author"
echo "Define the label of the Apps Starter"
echo "Define the label of the Apps Starter (Default is Apps). "
# Define File
targetFile="$HOME/dotfiles/waybar/modules.json"

View File

@@ -15,11 +15,13 @@ startMarker="START BT TOOGLE"
endMarker="END BT TOOGLE"
# Select Value
customvalue=$(gum choose "SHOW" "HIDE")
customvalue=$(gum choose "SHOW" "HIDE" "DEFAULT")
if [ ! -z $customvalue ]; then
if [ "$customvalue" == "SHOW" ] ;then
customtext=" \"bluetooth\","
elif [ "$customvalue" == "DEFAULT" ] ;then
customtext=" \"bluetooth\","
else
customtext=" \/\/\"bluetooth\","
fi

View File

@@ -12,11 +12,13 @@ startMarker="START CHATGPT TOOGLE"
endMarker="END CHATGPT TOOGLE"
# Select Value
customvalue=$(gum choose "SHOW" "HIDE")
customvalue=$(gum choose "SHOW" "HIDE" "DEFAULT")
if [ ! -z $customvalue ]; then
if [ "$customvalue" == "SHOW" ] ;then
customtext=" \"custom\/chatgpt\","
elif [ "$customvalue" == "DEFAULT" ] ;then
customtext=" \"custom\/chatgpt\","
else
customtext=" \/\/\"custom\/chatgpt\","
fi

View File

@@ -1,7 +1,7 @@
#!/bin/bash
_getHeader "$name" "$author"
echo "Define the start command to start the browser."
echo "Define the start command to start the browser (Default: chromium)."
# Define File
targetFile="$HOME/dotfiles/.settings/browser.sh"

View File

@@ -1,7 +1,7 @@
#!/bin/bash
_getHeader "$name" "$author"
echo "Define the start command to start the filemanager."
echo "Define the start command to start the filemanager (Default: thunar)."
# Define File
targetFile="$HOME/dotfiles/.settings/filemanager.sh"

View File

@@ -2,6 +2,7 @@
_getHeader "$name" "$author"
echo "Define the start command to start the networkmanager (Must be installed on your system)."
echo "(Default: nm-connection-editor)"
echo "Possible values: alacritty -e nmtui, nm-connection-editor, etc."
# Define File

View File

@@ -1,7 +1,7 @@
#!/bin/bash
_getHeader "$name" "$author"
echo "Define the start command to start the software manager."
echo "Define the start command to start the software manager (Default: alacritty -e pacseek)."
# Define File
targetFile="$HOME/dotfiles/.settings/software.sh"

View File

@@ -0,0 +1,2 @@
name="Show/Hide Swaylock"
order=1

View File

@@ -0,0 +1,40 @@
#!/bin/bash
_getHeader "$name" "$author"
echo "Hide or show the swaylock (idle_inhibitor) module in ML4W waybar themes."
# Define File
targetFile1="$HOME/dotfiles/waybar/themes/ml4w/config"
targetFile2="$HOME/dotfiles/waybar/themes/ml4w-blur/config"
targetFile3="$HOME/dotfiles/waybar/themes/ml4w-blur-bottom/config"
targetFile4="$HOME/dotfiles/waybar/themes/ml4w-bottom/config"
settingsFile="$HOME/dotfiles/.settings/waybar_swaylock"
# Define Markers
startMarker="START IDLE TOOGLE"
endMarker="END IDLE TOOGLE"
# Select Value
customvalue=$(gum choose "SHOW" "HIDE")
if [ ! -z $customvalue ]; then
if [ "$customvalue" == "SHOW" ] ;then
customtext=" \"idle_inhibitor\","
else
customtext=" \/\/\"idle_inhibitor\","
fi
_replaceInFile $startMarker $endMarker $customtext $targetFile1
_replaceInFile $startMarker $endMarker $customtext $targetFile2
_replaceInFile $startMarker $endMarker $customtext $targetFile3
_replaceInFile $startMarker $endMarker $customtext $targetFile4
_writeSettings $settingsFile $customtext
# Reload Waybar
setsid $HOME/dotfiles/waybar/launch.sh 1>/dev/null 2>&1 &
_goBack
else
echo "ERROR: Define a value."
sleep 2
_goBack
fi