aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-02-07 21:31:36 +0900
committerGitHub <noreply@github.com>2025-02-07 21:31:36 +0900
commit6fac05d59aa95d0a3d0009734e26459c57ae2536 (patch)
tree66fbf0d98651b018827a55f0f4b24e7686524d01
parentf6bbfa68a174f0d01fbf8b4ae2a6785e43adba2c (diff)
parentdb04cff10648f94214a39d3303d5c2eeab6603d8 (diff)
Merge pull request #546 from JaKooLit/development
Development to main
-rw-r--r--config/hypr/UserConfigs/UserDecorations.conf4
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperEffects.sh32
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh33
-rw-r--r--config/hypr/animations/00-default.conf (renamed from config/hypr/animations/default.conf)0
-rw-r--r--config/hypr/animations/01-default - v2.conf (renamed from config/hypr/animations/default - v2.conf)0
-rw-r--r--config/hypr/animations/03-disabled.conf (renamed from config/hypr/animations/disabled.conf)0
-rwxr-xr-xconfig/hypr/initial-boot.sh2
-rwxr-xr-xconfig/hypr/scripts/Animations.sh6
-rwxr-xr-xconfig/hypr/scripts/Refresh.sh7
-rwxr-xr-xconfig/hypr/scripts/RefreshNoWaybar.sh4
-rw-r--r--config/hypr/wallpaper_effects/.wallpaper_currentbin10295063 -> 1031389 bytes
-rw-r--r--config/hypr/wallpaper_effects/.wallpaper_modifiedbin9378870 -> 1885472 bytes
-rwxr-xr-xconfig/swaync/config.json2
-rw-r--r--config/waybar/configs/[TOP] 0-Ja-0 (renamed from config/waybar/configs/[TOP] 0Ja0)2
-rw-r--r--config/waybar/style/[Dark] Golden Eclipse.css2
-rwxr-xr-xcopy.sh234
16 files changed, 220 insertions, 108 deletions
diff --git a/config/hypr/UserConfigs/UserDecorations.conf b/config/hypr/UserConfigs/UserDecorations.conf
index f076487c..b69f26ec 100644
--- a/config/hypr/UserConfigs/UserDecorations.conf
+++ b/config/hypr/UserConfigs/UserDecorations.conf
@@ -10,8 +10,8 @@ source = $HOME/.config/hypr/wallust/wallust-hyprland.conf
general {
border_size = 2
- gaps_in = 6
- gaps_out = 8
+ gaps_in = 4
+ gaps_out = 6
col.active_border = $color12
col.inactive_border = $color10
diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh
index ccb5b744..e12db3cf 100755
--- a/config/hypr/UserScripts/WallpaperEffects.sh
+++ b/config/hypr/UserScripts/WallpaperEffects.sh
@@ -3,6 +3,8 @@
# Wallpaper Effects using ImageMagick (SUPER SHIFT W)
# Variables
+terminal=kitty
+
current_wallpaper="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current"
wallpaper_output="$HOME/.config/hypr/wallpaper_effects/.wallpaper_modified"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
@@ -10,6 +12,7 @@ focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{pri
# Directory for swaync
iDIR="$HOME/.config/swaync/images"
+iDIRi="$HOME/.config/swaync/icons"
# swww transition config
FPS=60
@@ -26,6 +29,8 @@ declare -A effects=(
["Charcoal"]="magick $current_wallpaper -charcoal 0x5 $wallpaper_output"
["Edge Detect"]="magick $current_wallpaper -edge 1 $wallpaper_output"
["Emboss"]="magick $current_wallpaper -emboss 0x5 $wallpaper_output"
+ ["Frame Raised"]="magick $current_wallpaper +raise 150 $wallpaper_output"
+ ["Frame Sunk"]="magick $current_wallpaper -raise 150 $wallpaper_output"
["Negate"]="magick $current_wallpaper -negate $wallpaper_output"
["Oil Paint"]="magick $current_wallpaper -paint 4 $wallpaper_output"
["Posterize"]="magick $current_wallpaper -posterize 4 $wallpaper_output"
@@ -33,7 +38,8 @@ declare -A effects=(
["Sepia Tone"]="magick $current_wallpaper -sepia-tone 65% $wallpaper_output"
["Solarize"]="magick $current_wallpaper -solarize 80% $wallpaper_output"
["Sharpen"]="magick $current_wallpaper -sharpen 0x5 $wallpaper_output"
- ["Vignette"]="magick $current_wallpaper -vignette 0x5 $wallpaper_output"
+ ["Vignette"]="magick $current_wallpaper -vignette 0x3 $wallpaper_output"
+ ["Vignette-black"]="magick $current_wallpaper -background black -vignette 0x3 $wallpaper_output"
["Zoomed"]="magick $current_wallpaper -gravity Center -extent 1:1 $wallpaper_output"
)
@@ -62,7 +68,6 @@ main() {
[[ "$effect" != "No Effects" ]] && options+=("$effect")
done
- # Show rofi menu and handle user choice
choice=$(printf "%s\n" "${options[@]}" | LC_COLLATE=C sort | rofi -dmenu -i -config ~/.config/rofi/config-wallpaper-effect.rasi)
# Process user choice
@@ -98,3 +103,26 @@ if pidof rofi > /dev/null; then
fi
main
+
+sleep 3 # add delay of 3 seconds for those who have slow machines
+sddm_sequoia="/usr/share/sddm/themes/sequoia_2"
+if [ -d "$sddm_sequoia" ]; then
+ notify-send -i "$iDIR/ja.png" "Set wallpaper" "as SDDM background?" \
+ -t 10000 \
+ -A "yes=Yes" \
+ -A "no=No" \
+ -h string:x-canonical-private-synchronous:wallpaper-notify
+
+ # Wait for user input using a background process
+ dbus-monitor "interface='org.freedesktop.Notifications',member='ActionInvoked'" |
+ while read -r line; do
+ if echo "$line" | grep -q "yes"; then
+ $terminal -e bash -c "echo 'Enter your password to set wallpaper as SDDM Background'; \
+ sudo cp -r $wallpaper_output '$sddm_sequoia/backgrounds/default' && \
+ notify-send -i '$iDIR/ja.png' 'SDDM' 'Background SET'"
+ break
+ elif echo "$line" | grep -q "no"; then
+ break
+ fi
+ done &
+fi
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index 7d6b339f..feae485b 100755
--- a/config/hypr/UserScripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -3,8 +3,15 @@
# This script for selecting wallpapers (SUPER W)
# WALLPAPERS PATH
+terminal=kitty
+
wallDIR="$HOME/Pictures/wallpapers"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
+wallpaper_current="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current"
+
+# Directory for swaync
+iDIR="$HOME/.config/swaync/images"
+iDIRi="$HOME/.config/swaync/icons"
# variables
focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}')
@@ -106,4 +113,28 @@ wait $!
wait $!
sleep 2
-"$SCRIPTSDIR/Refresh.sh" \ No newline at end of file
+"$SCRIPTSDIR/Refresh.sh"
+
+sleep 3 # add delay of 3 seconds for those who have slow machines
+sddm_sequoia="/usr/share/sddm/themes/sequoia_2"
+if [ -d "$sddm_sequoia" ]; then
+ notify-send -i "$iDIR/ja.png" "Set wallpaper" "as SDDM background?" \
+ -t 10000 \
+ -A "yes=Yes" \
+ -A "no=No" \
+ -h string:x-canonical-private-synchronous:wallpaper-notify
+
+ # Wait for user input using a background process
+ dbus-monitor "interface='org.freedesktop.Notifications',member='ActionInvoked'" |
+ while read -r line; do
+ if echo "$line" | grep -q "yes"; then
+ $terminal -e bash -c "echo 'Enter your password to set wallpaper as SDDM Background'; \
+ sudo cp -r $wallpaper_current '$sddm_sequoia/backgrounds/default' && \
+ notify-send -i '$iDIR/ja.png' 'SDDM' 'Background SET'"
+ break
+ elif echo "$line" | grep -q "no"; then
+ break
+ fi
+ done &
+fi
+
diff --git a/config/hypr/animations/default.conf b/config/hypr/animations/00-default.conf
index 0f40b5e6..0f40b5e6 100644
--- a/config/hypr/animations/default.conf
+++ b/config/hypr/animations/00-default.conf
diff --git a/config/hypr/animations/default - v2.conf b/config/hypr/animations/01-default - v2.conf
index dfbbed7f..dfbbed7f 100644
--- a/config/hypr/animations/default - v2.conf
+++ b/config/hypr/animations/01-default - v2.conf
diff --git a/config/hypr/animations/disabled.conf b/config/hypr/animations/03-disabled.conf
index f73a485b..f73a485b 100644
--- a/config/hypr/animations/disabled.conf
+++ b/config/hypr/animations/03-disabled.conf
diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh
index 474a37a7..b2d5bce5 100755
--- a/config/hypr/initial-boot.sh
+++ b/config/hypr/initial-boot.sh
@@ -9,7 +9,7 @@
# Variables
scriptsDir=$HOME/.config/hypr/scripts
-wallpaper=$HOME/.config/hypr/wallpaper_effects/.wallpaper_modified
+wallpaper=$HOME/.config/hypr/wallpaper_effects/.wallpaper_current
waybar_style="$HOME/.config/waybar/style/[Extra] Modern-Combined - Transparent.css"
kvantum_theme="catppuccin-mocha-blue"
color_scheme="prefer-dark"
diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh
index 48ac0f85..7789cb05 100755
--- a/config/hypr/scripts/Animations.sh
+++ b/config/hypr/scripts/Animations.sh
@@ -13,8 +13,8 @@ SCRIPTSDIR="$HOME/.config/hypr/scripts"
animations_dir="$HOME/.config/hypr/animations"
UserConfigs="$HOME/.config/hypr/UserConfigs"
-# list of animation files
-animations_list=$(find "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//')
+# list of animation files, sorted alphabetically with numbers first
+animations_list=$(find "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//' | sort -V)
# Rofi Menu
chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config ~/.config/rofi/config-Animations.rasi)
@@ -32,4 +32,4 @@ else
fi
sleep 1
-"$SCRIPTSDIR/RefreshNoWaybar.sh" \ No newline at end of file
+"$SCRIPTSDIR/RefreshNoWaybar.sh"
diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh
index 77ba1496..c8c46695 100755
--- a/config/hypr/scripts/Refresh.sh
+++ b/config/hypr/scripts/Refresh.sh
@@ -24,11 +24,8 @@ done
killall -SIGUSR2 waybar # added since wallust sometimes not applying
-# quit ags
-ags -q
-
-# relaunch ags
-ags &
+# quit ags & relaunch ags
+#ags -q && ags &
# Kill waybar & swaync (yet again) # added since wallust sometimes not applying
_ps2=(waybar swaync)
diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh
index 11496826..85332a32 100755
--- a/config/hypr/scripts/RefreshNoWaybar.sh
+++ b/config/hypr/scripts/RefreshNoWaybar.sh
@@ -25,8 +25,8 @@ for _prs in "${_ps[@]}"; do
fi
done
-# quit ags
-ags -q
+# quit ags & relaunch ags
+#ags -q && ags &
# Wallust refresh
${SCRIPTSDIR}/WallustSwww.sh &
diff --git a/config/hypr/wallpaper_effects/.wallpaper_current b/config/hypr/wallpaper_effects/.wallpaper_current
index 2c5e839e..c42ae068 100644
--- a/config/hypr/wallpaper_effects/.wallpaper_current
+++ b/config/hypr/wallpaper_effects/.wallpaper_current
Binary files differ
diff --git a/config/hypr/wallpaper_effects/.wallpaper_modified b/config/hypr/wallpaper_effects/.wallpaper_modified
index f546bd56..d85a5b8d 100644
--- a/config/hypr/wallpaper_effects/.wallpaper_modified
+++ b/config/hypr/wallpaper_effects/.wallpaper_modified
Binary files differ
diff --git a/config/swaync/config.json b/config/swaync/config.json
index c99195cb..2ec0f771 100755
--- a/config/swaync/config.json
+++ b/config/swaync/config.json
@@ -1,5 +1,3 @@
-/* ----------- 💫 https://github.com/JaKooLit 💫 -------- */
-
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "center",
diff --git a/config/waybar/configs/[TOP] 0Ja0 b/config/waybar/configs/[TOP] 0-Ja-0
index 98345c32..b5c7a62f 100644
--- a/config/waybar/configs/[TOP] 0Ja0
+++ b/config/waybar/configs/[TOP] 0-Ja-0
@@ -41,7 +41,7 @@
"modules-right": [
"group/laptop",
- "custom/separator#dot-line",
+ "custom/separator#blank",
"group/mobo_drawer",
"custom/separator#line",
"group/audio",
diff --git a/config/waybar/style/[Dark] Golden Eclipse.css b/config/waybar/style/[Dark] Golden Eclipse.css
index 987834ce..e782996e 100644
--- a/config/waybar/style/[Dark] Golden Eclipse.css
+++ b/config/waybar/style/[Dark] Golden Eclipse.css
@@ -110,7 +110,7 @@ window#waybar.hidden {
/*-----Indicators----*/
#custom-hypridle.notactive,
#idle_inhibitor.activated {
- color: white;
+ color: cyan;
}
#battery.critical:not(.charging) {
diff --git a/copy.sh b/copy.sh
index 5747615f..4b6a3cde 100755
--- a/copy.sh
+++ b/copy.sh
@@ -2,23 +2,11 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ #
clear
-wallpaper=$HOME/.config/hypr/wallpaper_effects/.wallpaper_modified
+wallpaper=$HOME/.config/hypr/wallpaper_effects/.wallpaper_current
waybar_style="$HOME/.config/waybar/style/[Extra] Modern-Combined - Transparent.css"
waybar_config="$HOME/.config/waybar/configs/[TOP] Default_v5"
waybar_config_laptop="$HOME/.config/waybar/configs/[TOP] Default Laptop_v5"
-# Check if running as root. If root, script will exit
-if [[ $EUID -eq 0 ]]; then
- echo "This script should not be executed as root! Exiting......."
- exit 1
-fi
-
-printf "\n%.0s" {1..2}
-echo ' ╦╔═┌─┐┌─┐╦ ╦ ╦┬ ┬┌─┐┬─┐┬ ┌─┐┌┐┌┌┬┐ ╔╦╗┌─┐┌┬┐┌─┐ '
-echo ' ╠╩╗│ ││ │║ ╠═╣└┬┘├─┘├┬┘│ ├─┤│││ ││───║║│ │ │ └─┐ '
-echo ' ╩ ╩└─┘└─┘╩═╝ ╩ ╩ ┴ ┴ ┴└─┴─┘┴ ┴┘└┘─┴┘ ═╩╝└─┘ ┴ └─┘ '
-printf "\n%.0s" {1..2}
-
# Set some colors for output messages
OK="$(tput setaf 2)[OK]$(tput sgr0)"
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"
@@ -26,12 +14,31 @@ NOTE="$(tput setaf 3)[NOTE]$(tput sgr0)"
INFO="$(tput setaf 4)[INFO]$(tput sgr0)"
WARN="$(tput setaf 1)[WARN]$(tput sgr0)"
CAT="$(tput setaf 6)[ACTION]$(tput sgr0)"
-MAGENTA=$(tput setaf 5)
-WARNING=$(tput setaf 1)
-YELLOW=$(tput setaf 3)
-BLUE=$(tput setaf 4)
-RESET=$(tput sgr0)
+MAGENTA="$(tput setaf 5)"
+ORANGE="$(tput setaf 214)"
+WARNING="$(tput setaf 1)"
+YELLOW="$(tput setaf 3)"
+GREEN="$(tput setaf 2)"
+BLUE="$(tput setaf 4)"
+SKY_BLUE="$(tput setaf 6)"
+RESET="$(tput sgr0)"
+
+# Check if running as root. If root, script will exit
+if [[ $EUID -eq 0 ]]; then
+ echo "${ERROR} This script should ${WARNING}NOT${RESET} be executed as root!! Exiting......."
+ printf "\n%.0s" {1..2}
+ exit 1
+fi
+
+printf "\n%.0s" {1..2}
+echo -e "\e[35m
+ ╦╔═┌─┐┌─┐╦ ╔╦╗┌─┐┌┬┐┌─┐
+ ╠╩╗│ ││ │║ ║║│ │ │ └─┐ 2025
+ ╩ ╩└─┘└─┘╩═╝ ═╩╝└─┘ ┴ └─┘
+\e[0m"
+printf "\n%.0s" {1..1}
+
# Create Directory for Copy Logs
if [ ! -d Copy-Logs ]; then
mkdir Copy-Logs
@@ -62,7 +69,7 @@ fi
# uncommenting WLR_RENDERER_ALLOW_SOFTWARE,1 if running in a VM is detected
if hostnamectl | grep -q 'Chassis: vm'; then
- echo "${INFO} System is running in a virtual machine." 2>&1 | tee -a "$LOG" || true
+ echo "${INFO} System is running in a virtual machine. Setting up proper env's and configs" 2>&1 | tee -a "$LOG" || true
# enabling proper ENV's for Virtual Environment which should help
sed -i 's/^\([[:space:]]*no_hardware_cursors[[:space:]]*=[[:space:]]*\)2/\1true/' config/hypr/UserConfigs/UserSettings.conf
sed -i '/env = WLR_RENDERER_ALLOW_SOFTWARE,1/s/^#//' config/hypr/UserConfigs/ENVariables.conf
@@ -72,7 +79,7 @@ fi
# Proper Polkit for NixOS
if hostnamectl | grep -q 'Operating System: NixOS'; then
- echo "${INFO} NixOS Distro Detected. Setting up properly." 2>&1 | tee -a "$LOG" || true
+ echo "${INFO} NixOS Distro Detected. Setting up proper env's and configs." 2>&1 | tee -a "$LOG" || true
sed -i -E '/^#?exec-once = \$scriptsDir\/Polkit-NixOS\.sh/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf
sed -i '/^exec-once = \$scriptsDir\/Polkit\.sh$/ s/^#*/#/' config/hypr/UserConfigs/Startup_Apps.conf
fi
@@ -192,7 +199,7 @@ ${MAGENTA} NOTE:${RESET}
esac
done
-printf "\n"
+printf "\n%.0s" {1..1}
# Check if asusctl is installed and add rog-control-center on Startup
if command -v asusctl >/dev/null 2>&1; then
@@ -204,12 +211,14 @@ if command -v blueman-applet >/dev/null 2>&1; then
sed -i '/exec-once = blueman-applet &/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf
fi
-# Check if ags is installed and add ags on Startup
+# Check if ags is installed edit ags behaviour on configs
if command -v ags >/dev/null 2>&1; then
- sed -i '/exec-once = ags &/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf
+ sed -i '/#exec-once = ags &/s/^#//' config/hypr/UserConfigs/Startup_Apps.conf
+ sed -i '/#ags -q && ags &/s/^#//' config/hypr/scripts/RefreshNoWaybar.sh
+ sed -i '/#ags -q && ags &/s/^#//' config/hypr/scripts/Refresh.sh
fi
-printf "\n"
+printf "\n%.0s" {1..1}
# Checking if neovim or vim is installed and offer user if they want to make as default editor
# Function to modify the ENVariables.conf file
@@ -290,74 +299,88 @@ printf "\n"
# Ask whether to change to 12hr format
while true; do
- echo -e "$MAGENTA By default, KooL's Dots are configured in 24H clock format."
- read -p "$CAT Do you want to change to 12H format or AM/PM format? (y/n): " answer
+ echo -e "$MAGENTA By default, KooL's Dots are configured in 24H clock format."
+ read -p "$CAT Do you want to change to 12H format or AM/PM format? (y/n): " answer
- # Convert the answer to lowercase for comparison
- answer=$(echo "$answer" | tr '[:upper:]' '[:lower:]')
+ # Convert the answer to lowercase for comparison
+ answer=$(echo "$answer" | tr '[:upper:]' '[:lower:]')
-# Check if the answer is valid
-if [[ "$answer" == "y" ]]; then
- # Modify waybar clock modules if 12hr is selected
- # Clock 1
- sed -i 's#^\(\s*\)//\("format": " {:%I:%M %p}",\) #\1\2 #g' config/waybar/Modules 2>&1 | tee -a "$LOG"
- sed -i 's#^\(\s*\)\("format": " {:%H:%M:%S}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
-
- # Clock 2
- sed -i 's#^\(\s*\)\("format": " {:%H:%M}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
-
- # Clock 3
- sed -i 's#^\(\s*\)//\("format": "{:%I:%M %p - %d/%b}",\) #\1\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
- sed -i 's#^\(\s*\)\("format": "{:%H:%M - %d/%b}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
-
- # Clock 4
- sed -i 's#^\(\s*\)//\("format": "{:%B | %a %d, %Y | %I:%M %p}",\) #\1\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
- sed -i 's#^\(\s*\)\("format": "{:%B | %a %d, %Y | %H:%M}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+ # Check if the answer is valid
+ if [[ "$answer" == "y" ]]; then
+ # Modify waybar clock modules if 12hr is selected
+ # Clock 1
+ sed -i 's#^\(\s*\)//\("format": " {:%I:%M %p}",\) #\1\2 #g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+ sed -i 's#^\(\s*\)\("format": " {:%H:%M:%S}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+
+ # Clock 2
+ sed -i 's#^\(\s*\)\("format": " {:%H:%M}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+
+ # Clock 3
+ sed -i 's#^\(\s*\)//\("format": "{:%I:%M %p - %d/%b}",\) #\1\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+ sed -i 's#^\(\s*\)\("format": "{:%H:%M - %d/%b}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+
+ # Clock 4
+ sed -i 's#^\(\s*\)//\("format": "{:%B | %a %d, %Y | %I:%M %p}",\) #\1\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+ sed -i 's#^\(\s*\)\("format": "{:%B | %a %d, %Y | %H:%M}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
- # Clock 5
- sed -i 's#^\(\s*\)//\("format": "{:%A, %I:%M %P}",\) #\1\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
- sed -i 's#^\(\s*\)\("format": "{:%a %d | %H:%M}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
-
- # for hyprlock
- sed -i 's/^\s*text = cmd\[update:1000\] echo "\$(date +"%H")"/# &/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
- sed -i 's/^\(\s*\)# *text = cmd\[update:1000\] echo "\$(date +"%I")" #AM\/PM/\1 text = cmd\[update:1000\] echo "\$(date +"%I")" #AM\/PM/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
+ # Clock 5
+ sed -i 's#^\(\s*\)//\("format": "{:%A, %I:%M %P}",\) #\1\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+ sed -i 's#^\(\s*\)\("format": "{:%a %d | %H:%M}",\) #\1//\2#g' config/waybar/Modules 2>&1 | tee -a "$LOG"
+
+ # for hyprlock
+ sed -i 's/^\s*text = cmd\[update:1000\] echo "\$(date +"%H")"/# &/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
+ sed -i 's/^\(\s*\)# *text = cmd\[update:1000\] echo "\$(date +"%I")" #AM\/PM/\1 text = cmd\[update:1000\] echo "\$(date +"%I")" #AM\/PM/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
- sed -i 's/^\s*text = cmd\[update:1000\] echo "\$(date +"%S")"/# &/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
- sed -i 's/^\(\s*\)# *text = cmd\[update:1000\] echo "\$(date +"%S %p")" #AM\/PM/\1 text = cmd\[update:1000\] echo "\$(date +"%S %p")" #AM\/PM/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
-
- echo "${OK} 12H format set on waybar clocks succesfully." 2>&1 | tee -a "$LOG"
+ sed -i 's/^\s*text = cmd\[update:1000\] echo "\$(date +"%S")"/# &/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
+ sed -i 's/^\(\s*\)# *text = cmd\[update:1000\] echo "\$(date +"%S %p")" #AM\/PM/\1 text = cmd\[update:1000\] echo "\$(date +"%S %p")" #AM\/PM/' config/hypr/hyprlock.conf 2>&1 | tee -a "$LOG"
+
+ echo "${OK} 12H format set on waybar clocks succesfully." 2>&1 | tee -a "$LOG"
- # for SDDM (simple-sddm)
- sddm_folder="/usr/share/sddm/themes/simple-sddm"
- if [ -d "$sddm_folder" ]; then
- echo "Simple sddm exists. Editing to 12H format" 2>&1 | tee -a "$LOG"
+ # Function to apply 12H format to SDDM themes
+ apply_sddm_12h_format() {
+ local sddm_directory=$1
- sudo sed -i 's|^## HourFormat="hh:mm AP"|HourFormat="hh:mm AP"|' "$sddm_folder/theme.conf" 2>&1 | tee -a "$LOG" || true
- sudo sed -i 's|^HourFormat="HH:mm"|## HourFormat="HH:mm"|' "$sddm_folder/theme.conf" 2>&1 | tee -a "$LOG" || true
+ # Check if the directory exists
+ if [ -d "$sddm_directory" ]; then
+ echo "Editing ${SKY_BLUE}$sddm_directory${RESET} to 12H format" 2>&1 | tee -a "$LOG"
- echo "${OK} 12H format set to SDDM theme successfully." 2>&1 | tee -a "$LOG"
- fi
+ sudo sed -i 's|^## HourFormat="hh:mm AP"|HourFormat="hh:mm AP"|' "$sddm_directory/theme.conf" 2>&1 | tee -a "$LOG" || true
+ sudo sed -i 's|^HourFormat="HH:mm"|## HourFormat="HH:mm"|' "$sddm_directory/theme.conf" 2>&1 | tee -a "$LOG" || true
+ fi
+ }
- # for SDDM (simple-sddm-2)
- sddm_folder_2="/usr/share/sddm/themes/simple-sddm-2"
- if [ -d "$sddm_folder_2" ]; then
- echo "Simple sddm 2 exists. Editing to 12H format" 2>&1 | tee -a "$LOG"
+ # Applying to different SDDM themes
+ apply_sddm_12h_format "/usr/share/sddm/themes/simple-sddm"
+ apply_sddm_12h_format "/usr/share/sddm/themes/simple-sddm-2"
- sudo sed -i 's|^## HourFormat="hh:mm AP"|HourFormat="hh:mm AP"|' "$sddm_folder_2/theme.conf" 2>&1 | tee -a "$LOG" || true
- sudo sed -i 's|^HourFormat="HH:mm"|## HourFormat="HH:mm"|' "$sddm_folder_2/theme.conf" 2>&1 | tee -a "$LOG" || true
+ # For SDDM (sequoia_2)
+ sddm_directory_3="/usr/share/sddm/themes/sequoia_2"
+ if [ -d "$sddm_directory_3" ]; then
+ echo "${YELLOW}sddm sequoia_2${RESET} theme exists. Editing to 12H format" 2>&1 | tee -a "$LOG"
- echo "${OK} 12H format set to SDDM theme successfully." 2>&1 | tee -a "$LOG"
- fi
+ # Comment out the existing clockFormat="HH:mm" line
+ sudo sed -i 's|^clockFormat="HH:mm"|## clockFormat="HH:mm"|' "$sddm_directory_3/theme.conf" 2>&1 | tee -a "$LOG" || true
+
+ # Insert the new clockFormat="hh:mm AP" line if it's not already present
+ if ! grep -q 'clockFormat="hh:mm AP"' "$sddm_directory_3/theme.conf"; then
+ sudo sed -i '/^clockFormat=/a clockFormat="hh:mm AP"' "$sddm_directory_3/theme.conf" 2>&1 | tee -a "$LOG" || true
+ fi
+
+ echo "${OK} 12H format set to SDDM successfully." 2>&1 | tee -a "$LOG"
+ fi
break
- elif [[ "$answer" == "n" ]]; then
- echo "${NOTE} You chose not to change to 12H format." 2>&1 | tee -a "$LOG"
- break
- else
- echo "${ERROR} Invalid choice. Please enter y for yes or n for no."
- fi
+
+
+ elif [[ "$answer" == "n" ]]; then
+ echo "${NOTE} You chose not to change to 12H format." 2>&1 | tee -a "$LOG"
+ break # Exit the loop if the user chooses "n"
+ else
+ echo "${ERROR} Invalid choice. Please enter y for yes or n for no."
+ fi
done
+
printf "\n"
# Check if the user wants to disable Rainbow borders
@@ -392,7 +415,7 @@ if [ ! -d "$HOME/.config" ]; then
exit 1
fi
-printf "${INFO} - copying dotfiles ${BLUE}first${RESET} part\n"
+printf "${INFO} - copying dotfiles ${SKY_BLUE}first${RESET} part\n"
# Config directories which will ask the user whether to replace or not
DIRS="
ags
@@ -454,7 +477,7 @@ done
printf "\n%.0s" {1..1}
-printf "${INFO} - Copying dotfiles ${BLUE}second${RESET} part\n"
+printf "${INFO} - Copying dotfiles ${SKY_BLUE}second${RESET} part\n"
# Check if the config directory exists
if [ ! -d "config" ]; then
@@ -592,11 +615,15 @@ if [ -d "$BACKUP_DIR_PATH" ]; then
done
fi
-printf "\n%.0s" {1..2}
+printf "\n%.0s" {1..}
-# Wallpapers
+# wallpaper stuff
mkdir -p ~/Pictures/wallpapers
-cp -r wallpapers ~/Pictures/ && { echo "${OK} some wallpapers compied!"; } || { echo "${ERROR} Failed to copy some wallpapers."; exit 1; } 2>&1 | tee -a "$LOG"
+if cp -r wallpapers ~/Pictures/; then
+ echo "${OK} Some ${MAGENTA}wallpapers${RESET} copied successfully!" | tee -a "$LOG"
+else
+ echo "${ERROR} Failed to copy some ${YELLOW}wallpapers${RESET}" | tee -a "$LOG"
+fi
# Set some files as executable
chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG"
@@ -627,6 +654,35 @@ else
"$HOME/.config/waybar/configs/[TOP] Default_v5" 2>&1 | tee -a "$LOG" || true
fi
+printf "\n%.0s" {1..2}
+
+# for SDDM (sequoia_2)
+sddm_sequioa="/usr/share/sddm/themes/sequoia_2"
+if [ -d "$sddm_sequioa" ]; then
+ while true; do
+ read -rp "${CAT} SDDM sequoia_2 theme detected! Apply current wallpaper as SDDM background? (y/n): " SDDM_WALL
+
+ # Remove any leading/trailing whitespace or newlines from input
+ SDDM_WALL=$(echo "$SDDM_WALL" | tr -d '\n' | tr -d ' ')
+
+ case $SDDM_WALL in
+ [Yy])
+ # Copy the wallpaper, ignore errors if the file exists or fails
+ sudo cp -r "config/hypr/wallpaper_effects/.wallpaper_current" "/usr/share/sddm/themes/sequoia_2/backgrounds/default" || true
+ echo "${NOTE} Current wallpaper applied as default SDDM background" 2>&1 | tee -a "$LOG"
+ break
+ ;;
+ [Nn])
+ echo "${NOTE} You chose not to apply the current wallpaper to SDDM." 2>&1 | tee -a "$LOG"
+ break
+ ;;
+ *)
+ echo "Please enter 'y' or 'n' to proceed."
+ ;;
+ esac
+ done
+fi
+
# additional wallpapers
printf "\n%.0s" {1..1}
echo "${MAGENTA}By default only a few wallpapers are copied${RESET}..."
@@ -728,8 +784,10 @@ printf "\n%.0s" {1..2}
# initialize wallust to avoid config error on hyprland
wallust run -s $wallpaper 2>&1 | tee -a "$LOG"
-printf "\n%.0s" {1..4}
-printf "${OK} GREAT! KooL's Hyprland-Dots is now Loaded & Ready !!!"
-printf "\n%.0s" {1..1}
-printf "${MAGENTA} However, it is HIGHLY SUGGESTED to logout and re-login or better reboot to avoid any issues\n\n"
-printf "${BLUE} Thank you for using KooL's Hyprland Configuration... ENJOY!!!\n" \ No newline at end of file
+printf "\n%.0s" {1..2}
+printf "${OK} GREAT! KooL's Hyprland-Dots is now Loaded & Ready !!! "
+printf "\n%.0s" {1..2}
+printf "${INFO} However, it is ${MAGENTA}HIGHLY SUGGESTED${RESET} to logout and re-login or better reboot to avoid any issues"
+printf "\n%.0s" {1..2}
+printf "${SKY_BLUE}Thank you${RESET} for using ${MAGENTA}KooL's Hyprland Configuration${RESET}... ${YELLOW}ENJOY!!!${RESET}"
+printf "\n%.0s" {1..3} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage