diff options
Diffstat (limited to '.local/share/scripts')
| -rwxr-xr-x | .local/share/scripts/GUI-dateTime | 3 | ||||
| -rwxr-xr-x | .local/share/scripts/dateTime.sh | 36 | ||||
| -rwxr-xr-x | .local/share/scripts/dym.sh | 22 |
3 files changed, 0 insertions, 61 deletions
diff --git a/.local/share/scripts/GUI-dateTime b/.local/share/scripts/GUI-dateTime deleted file mode 100755 index ad14ad2..0000000 --- a/.local/share/scripts/GUI-dateTime +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -python ~/.local/share/python-dateTimeSetter/dateTime.py diff --git a/.local/share/scripts/dateTime.sh b/.local/share/scripts/dateTime.sh deleted file mode 100755 index c9c7d90..0000000 --- a/.local/share/scripts/dateTime.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -# Prompt the user for automatic time setting -echo "Do you want to set the date, time, and timezone automatically? [y/n]" -read -r automatic_time_input - -if [ "$automatic_time_input" = "y" ] || [ "$automatic_time_input" = "Y" ]; then - # Synchronize the system time automatically using NTP - sudo timedatectl set-ntp true - echo "Automatic time synchronization using NTP initiated." - automatic_timezone=$(curl --fail https://ipapi.co/timezone 2>/dev/null) - if [ -n "$automatic_timezone" ]; then - sudo timedatectl set-timezone "$automatic_timezone" - echo "Automatic timezone setting complete." - else - echo "Automatic timezone setting failed. Please set the timezone manually." - fi -else - # Prompt the user for date and time input - echo "Enter the desired date (format: YYYY-MM-DD):" - read -r date_input - echo "Enter the desired time (format: HH:MM:SS):" - read -r time_input - # Prompt the user for timezone input - echo "Enter the desired timezone (e.g., America/New_York):" - read -r timezone_input - - # Override NTP setting - sudo timedatectl set-ntp false - - # Set the system date and time - sudo timedatectl set-time "$date_input $time_input" - # Set the system timezone - sudo timedatectl set-timezone "$timezone_input" - echo "Manual date and time setting complete." -fi diff --git a/.local/share/scripts/dym.sh b/.local/share/scripts/dym.sh deleted file mode 100755 index aef084c..0000000 --- a/.local/share/scripts/dym.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -WORD=$(echo "\n" | ~/.local/bin/dmenu-adwaita -b -i -p "Check Spelling: ") - -[ -z "$WORD" ] && exit - -if [ -n "$1" ]; then - xdotool type "$WORD" -else - CORRECTED=$(dym -c $WORD -n 10 | ~/.local/bin/dmenu-adwaita -i -b -l 10 -p "Did you mean?:") - [ -z "$CORRECTED" ] && exit - - if [ -n "$1" ]; then - xdotool type "$CORRECTED" - else - echo -n "$CORRECTED" | xclip -selection clipboard - notify-send "'$CORRECTED' copied to clipboard." & - fi - -fi - - |
