diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh deleted file mode 100755 index 51589da..0000000 --- a/scripts/cleanup.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -# Remove gamemode flag -if [ -f ~/.cache/gamemode ] ;then - rm ~/.cache/gamemode - echo ":: ~/.cache/gamemode removed" -fi \ No newline at end of file diff --git a/scripts/diagnosis.sh b/scripts/diagnosis.sh deleted file mode 100755 index a91a668..0000000 --- a/scripts/diagnosis.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# ____ _ _ -# | _ \(_) __ _ __ _ _ __ ___ ___(_)___ -# | | | | |/ _` |/ _` | '_ \ / _ \/ __| / __| -# | |_| | | (_| | (_| | | | | (_) \__ \ \__ \ -# |____/|_|\__,_|\__, |_| |_|\___/|___/_|___/ -# |___/ -# - -clear -sleep 0.5 -figlet "Diagnosis" -echo -echo "This script will check that essential packages and " -echo "execution commands are available on your system." -echo - -_commandExists() { - package="$1"; - if ! type $package > /dev/null 2>&1; then - echo ":: ERROR: $package doesn't exists. Please install it with yay -S $2" - else - echo ":: OK: $package found." - fi -} - -_folderExists() { - folder="$1"; - if [ ! -d $folder ]; then - echo ":: ERROR: $folder doesn't exists." - else - echo ":: OK: $folder found." - fi -} - -_commandExists "rofi" "rofi-wayland" -_commandExists "dunst" "dunst" -_commandExists "waybar" "waybar" -_commandExists "hyprpaper" "hyprpaper" -_commandExists "hyprlock" "hyprpaper" -_commandExists "hypridle" "hyprpaper" -_commandExists "wal" "python-pywal" -_commandExists "gum" "gum" -_commandExists "wlogout" "wlogout" -_commandExists "swww" "swww" -_commandExists "eww" "eww" -_commandExists "magick" "imagemagick" -_commandExists "figlet" "figlet" - -echo -echo "Press return to exit" -read \ No newline at end of file diff --git a/scripts/disabledm.sh b/scripts/disabledm.sh deleted file mode 100755 index 02b6718..0000000 --- a/scripts/disabledm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -clear -cat <<"EOF" - ____ _ _ _ ____ __ __ -| _ \(_)___ __ _| |__ | | ___| _ \| \/ | -| | | | / __|/ _` | '_ \| |/ _ \ | | | |\/| | -| |_| | \__ \ (_| | |_) | | __/ |_| | | | | -|____/|_|___/\__,_|_.__/|_|\___|____/|_| |_| - -EOF - -echo "Hyprland recommends the start with the tty login." -echo "You can deactivate the current display manager (if exists)." -echo "" -echo "-> Do you really want to deactivate the display manager?" -while true; do - read -p "Do you want to enable the sddm display manager and setup theme? (Yy/Nn): " yn - case $yn in - [Yy]* ) - if [ -f /etc/systemd/system/display-manager.service ]; then - sudo rm /etc/systemd/system/display-manager.service - echo "Current display manager removed." - else - echo "No active display manager found." - fi - break;; - [Nn]* ) - exit - break;; - * ) echo "Please answer yes or no.";; - esac -done \ No newline at end of file diff --git a/scripts/eww.sh b/scripts/eww.sh deleted file mode 100755 index 7df4512..0000000 --- a/scripts/eww.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# _____ ____ __ -# / _ \ \ /\ / /\ \ /\ / / -# | __/\ V V / \ V V / -# \___| \_/\_/ \_/\_/ -# -EWW=`which eww` -if [[ ! `pidof eww` ]]; then - ${EWW} daemon - sleep 0.5 -fi diff --git a/scripts/exit.sh b/scripts/exit.sh deleted file mode 100755 index c3e8a7a..0000000 --- a/scripts/exit.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sleep 0.5 -killall -9 Hyprland sleep 2 \ No newline at end of file diff --git a/scripts/gamemode.sh b/scripts/gamemode.sh deleted file mode 100755 index 815a780..0000000 --- a/scripts/gamemode.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# ____ _ -# / ___| __ _ _ __ ___ ___ _ __ ___ ___ __| | ___ -# | | _ / _` | '_ ` _ \ / _ \ '_ ` _ \ / _ \ / _` |/ _ \ -# | |_| | (_| | | | | | | __/ | | | | | (_) | (_| | __/ -# \____|\__,_|_| |_| |_|\___|_| |_| |_|\___/ \__,_|\___| -# - -if [ -f ~/.cache/gamemode ] ;then - hyprctl reload - rm ~/.cache/gamemode - notify-send "Gamemode deactivated" "Animations and blur enabled" -else - hyprctl --batch "\ - keyword animations:enabled 0;\ - keyword decoration:drop_shadow 0;\ - keyword decoration:blur:enabled 0;\ - keyword general:gaps_in 0;\ - keyword general:gaps_out 0;\ - keyword general:border_size 1;\ - keyword decoration:rounding 0" - touch ~/.cache/gamemode - notify-send "Gamemode activated" "Animations and blur disabled" -fi diff --git a/scripts/gtk.sh b/scripts/gtk.sh deleted file mode 100755 index 4e56ba7..0000000 --- a/scripts/gtk.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash -# ____ _____ _ __ -# / ___|_ _| |/ / -# | | _ | | | ' / -# | |_| | | | | . \ -# \____| |_| |_|\_\ -# -# Source: https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland - -config="$HOME/.config/gtk-3.0/settings.ini" -if [ ! -f "$config" ]; then exit 1; fi - -gnome_schema="org.gnome.desktop.interface" -gtk_theme="$(grep 'gtk-theme-name' "$config" | sed 's/.*\s*=\s*//')" -icon_theme="$(grep 'gtk-icon-theme-name' "$config" | sed 's/.*\s*=\s*//')" -cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | sed 's/.*\s*=\s*//')" -cursor_size="$(grep 'gtk-cursor-theme-size' "$config" | sed 's/.*\s*=\s*//')" -font_name="$(grep 'gtk-font-name' "$config" | sed 's/.*\s*=\s*//')" - -echo $gtk_theme -echo $icon_theme -echo $cursor_theme -echo $cursor_size -echo $font_name - -gsettings set "$gnome_schema" gtk-theme "$gtk_theme" -gsettings set "$gnome_schema" icon-theme "$icon_theme" -gsettings set "$gnome_schema" cursor-theme "$cursor_theme" -gsettings set "$gnome_schema" font-name "$font_name" -gsettings set "$gnome_schema" color-scheme "prefer-dark" - -# if [ -f ~/dotfiles/hypr/conf/cursor.conf ] ;then -# echo "exec-once = hyprctl setcursor $cursor_theme $cursor_size" > ~/dotfiles/hypr/conf/cursor.conf -# hyprctl setcursor $cursor_theme $cursor_size -# fi \ No newline at end of file diff --git a/scripts/keybindings.sh b/scripts/keybindings.sh deleted file mode 100755 index d4edd07..0000000 --- a/scripts/keybindings.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# _ _ _ _ _ -# | | _____ _ _| |__ (_)_ __ __| (_)_ __ __ _ ___ -# | |/ / _ \ | | | '_ \| | '_ \ / _` | | '_ \ / _` / __| -# | < __/ |_| | |_) | | | | | (_| | | | | | (_| \__ \ -# |_|\_\___|\__, |_.__/|_|_| |_|\__,_|_|_| |_|\__, |___/ -# |___/ |___/ -# by Stephan Raabe (2023) -# ----------------------------------------------------- - -# ----------------------------------------------------- -# Get keybindings location based on variation -# ----------------------------------------------------- -config_file=$(cat ~/dotfiles/hypr/conf/keybinding.conf) -config_file=${config_file/source = ~/} -config_file=${config_file/source=~/} - -# ----------------------------------------------------- -# Path to keybindings config file -# ----------------------------------------------------- -config_file="/home/$USER$config_file" -echo "Reading from: $config_file" - -keybinds="" - -# Detect Start String -while read -r line -do - if [[ "$line" == "bind"* ]]; then - - line="$(echo "$line" | sed 's/$mainMod/SUPER/g')" - line="$(echo "$line" | sed 's/bind = //g')" - line="$(echo "$line" | sed 's/bindm = //g')" - - IFS='#' - read -a strarr <<<"$line" - kb_str=${strarr[0]} - cm_str=${strarr[1]} - - IFS=',' - read -a kbarr <<<"$kb_str" - - item="${kbarr[0]} + ${kbarr[1]}"$'\r'"${cm_str:1}" - keybinds=$keybinds$item$'\n' - fi -done < "$config_file" - -sleep 0.2 -rofi -dmenu -i -markup -eh 2 -replace -p "Keybinds" -config ~/dotfiles/rofi/config-compact.rasi <<< "$keybinds" \ No newline at end of file diff --git a/scripts/loadconfig.sh b/scripts/loadconfig.sh deleted file mode 100755 index a51ce6d..0000000 --- a/scripts/loadconfig.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -hyprctl reload \ No newline at end of file diff --git a/scripts/lock.sh b/scripts/lock.sh deleted file mode 100755 index bc13b07..0000000 --- a/scripts/lock.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sleep 0.5 -hyprlock \ No newline at end of file diff --git a/scripts/monitors.sh b/scripts/monitors.sh deleted file mode 100755 index 14ea2ea..0000000 --- a/scripts/monitors.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -hyprctl -j monitors \ No newline at end of file diff --git a/scripts/power.sh b/scripts/power.sh deleted file mode 100755 index 3eb62fa..0000000 --- a/scripts/power.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# ____ -# | _ \ _____ _____ _ __ -# | |_) / _ \ \ /\ / / _ \ '__| -# | __/ (_) \ V V / __/ | -# |_| \___/ \_/\_/ \___|_| -# - -if [[ "$1" == "exit" ]]; then - echo ":: Exit" - hyprctl dispatch exit -fi - -if [[ "$1" == "lock" ]]; then - echo ":: Lock" - sleep 0.5 - hyprlock -fi - -if [[ "$1" == "reboot" ]]; then - echo ":: Reboot" - sleep 0.5 - systemctl reboot -fi - -if [[ "$1" == "shutdown" ]]; then - echo ":: Shutdown" - sleep 0.5 - systemctl poweroff -fi - -if [[ "$1" == "suspend" ]]; then - echo ":: Suspend" - sleep 0.5 - systemctl suspend -fi - -if [[ "$1" == "hibernate" ]]; then - echo ":: Hibernate" - sleep 1; - systemctl hibernate -fi diff --git a/scripts/reboot.sh b/scripts/reboot.sh deleted file mode 100755 index 2ddff75..0000000 --- a/scripts/reboot.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sleep 0.5 -systemctl reboot diff --git a/scripts/shutdown.sh b/scripts/shutdown.sh deleted file mode 100755 index 48c8296..0000000 --- a/scripts/shutdown.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sleep 0.5 -systemctl poweroff diff --git a/scripts/suspend.sh b/scripts/suspend.sh deleted file mode 100755 index 440d34b..0000000 --- a/scripts/suspend.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sleep 0.5 -systemctl suspend \ No newline at end of file diff --git a/scripts/toggle-animations.sh b/scripts/toggle-animations.sh deleted file mode 100755 index 867ecf4..0000000 --- a/scripts/toggle-animations.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -cache_file="$HOME/.cache/toggle_animation" -if [[ $(cat $HOME/dotfiles/hypr/conf/animation.conf) == *"disabled"* ]]; then - echo ":: Toggle blocked by disabled.conf variation." -else - if [ -f $cache_file ] ;then - hyprctl keyword animations:enabled true - rm $cache_file - else - hyprctl keyword animations:enabled false - touch $cache_file - fi -fi \ No newline at end of file diff --git a/scripts/toggleallfloat.sh b/scripts/toggleallfloat.sh deleted file mode 100755 index fb6737c..0000000 --- a/scripts/toggleallfloat.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# _ _ _ __ _ _ -# / \ | | |/ _| | ___ __ _| |_ -# / _ \ | | | |_| |/ _ \ / _` | __| -# / ___ \| | | _| | (_) | (_| | |_ -# /_/ \_\_|_|_| |_|\___/ \__,_|\__| -# -# by Stephan Raabe (2023) -# ----------------------------------------------------- - -hyprctl dispatch workspaceopt allfloat diff --git a/scripts/xdg.sh b/scripts/xdg.sh deleted file mode 100755 index cc8790e..0000000 --- a/scripts/xdg.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# __ ______ ____ -# \ \/ / _ \ / ___| -# \ /| | | | | _ -# / \| |_| | |_| | -# /_/\_\____/ \____| -# -# ----------------------------------------------------- -sleep 1 - -# kill all possible running xdg-desktop-portals -killall -e xdg-desktop-portal-hyprland -killall -e xdg-desktop-portal-gnome -killall -e xdg-desktop-portal-kde -killall -e xdg-desktop-portal-lxqt -killall -e xdg-desktop-portal-wlr -killall -e xdg-desktop-portal-gtk -killall xdg-desktop-portal -sleep 1 - -# start xdg-desktop-portal-hyprland -/usr/lib/xdg-desktop-portal-hyprland & -sleep 2 - -# start xdg-desktop-portal -/usr/lib/xdg-desktop-portal & -sleep 1