From 34d3c4f79d0b73deaffcfb2c12ec20fe3ba57fe2 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 13:51:09 +0900 Subject: added thorium-browser window rule, added mate polkit --- config/hypr/UserConfigs/WindowRules.conf | 1 + config/hypr/scripts/Polkit.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 26b7a7c2..6c8fcb7f 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -30,6 +30,7 @@ windowrulev2 = workspace 1, class:^([Tt]hunderbird)$ windowrulev2 = workspace 2, class:^([Ff]irefox|org.mozilla.firefox|[Ff]irefox-esr)$ windowrulev2 = workspace 2, class:^([Mm]icrosoft-edge(-stable|-beta|-dev|-unstable)?)$ windowrulev2 = workspace 2, class:^([Gg]oogle-chrome(-beta|-dev|-unstable)?)$ +windowrulev2 = workspace 2, class:^([Tt]horium-browser)$ #windowrulev2 = workspace 3, class:^([Tt]hunar)$ windowrulev2 = workspace 4, class:^(com.obsproject.Studio)$ windowrulev2 = workspace 5, class:^([Ss]team)$ diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh index 80310ba0..a52aed8e 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -8,6 +8,7 @@ polkit=( "/usr/lib/polkit-kde-authentication-agent-1" "/usr/lib/polkit-gnome-authentication-agent-1" "/usr/libexec/polkit-gnome-authentication-agent-1" + "/usr/libexec/polkit-mate-authentication-agent-1" "/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1" "/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1" ) -- cgit v1.2.3 From 85ebc8366325412feabd8feb599e37185bf58e2f Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 13:55:32 +0900 Subject: drop nvim config. Wont be offered anymore since it just a handle users use it plus just a big headache Still there but it wont be copied anymore --- config/hypr/v2.3.6-D | 5 ----- config/hypr/v2.3.7 | 5 +++++ copy.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 config/hypr/v2.3.6-D create mode 100644 config/hypr/v2.3.7 diff --git a/config/hypr/v2.3.6-D b/config/hypr/v2.3.6-D deleted file mode 100644 index 31b3414d..00000000 --- a/config/hypr/v2.3.6-D +++ /dev/null @@ -1,5 +0,0 @@ -### https://github.com/JaKooLit ### -## https://github.com/JaKooLit/Hyprland-Dots -## This is to have a reference of which version would be - -## note that this will always be higher than the released versions \ No newline at end of file diff --git a/config/hypr/v2.3.7 b/config/hypr/v2.3.7 new file mode 100644 index 00000000..31b3414d --- /dev/null +++ b/config/hypr/v2.3.7 @@ -0,0 +1,5 @@ +### https://github.com/JaKooLit ### +## https://github.com/JaKooLit/Hyprland-Dots +## This is to have a reference of which version would be + +## note that this will always be higher than the released versions \ No newline at end of file diff --git a/copy.sh b/copy.sh index 45b614f9..943c6263 100755 --- a/copy.sh +++ b/copy.sh @@ -386,7 +386,7 @@ printf "\n" printf "${NOTE} - copying dotfiles second part\n" # Config directories which will ask the user whether to replace or not -DIRS="ags fastfetch kitty nvim rofi swaync waybar" +DIRS="ags fastfetch kitty rofi swaync waybar" for DIR2 in $DIRS; do DIRPATH=~/.config/"$DIR2" -- cgit v1.2.3 From f8d953062323cf2fdd328865ea372adb9f218a15 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 14:39:00 +0900 Subject: tweaked copy.sh for better readability --- copy.sh | 41 ++++++++++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/copy.sh b/copy.sh index 943c6263..e09d91e8 100755 --- a/copy.sh +++ b/copy.sh @@ -348,35 +348,47 @@ if [ ! -d "config" ]; then exit 1 fi -for DIR in btop cava hypr Kvantum qt5ct qt6ct swappy wallust wlogout; do - DIRPATH=~/.config/"$DIR" +DIR=" + btop + cava + hypr + Kvantum + qt5ct + qt6ct + swappy + wallust + wlogout +" + +for DIR_NAME in $DIR; do + DIRPATH=~/.config/"$DIR_NAME" # Backup the existing directory if it exists if [ -d "$DIRPATH" ]; then - echo -e "${NOTE} - Config for $DIR found, attempting to back up." + echo -e "${NOTE} - Config for $DIR_NAME found, attempting to back up." BACKUP_DIR=$(get_backup_dirname) # Backup the existing directory mv "$DIRPATH" "$DIRPATH-backup-$BACKUP_DIR" 2>&1 | tee -a "$LOG" if [ $? -eq 0 ]; then - echo -e "${NOTE} - Backed up $DIR to $DIRPATH-backup-$BACKUP_DIR." + echo -e "${NOTE} - Backed up $DIR_NAME to $DIRPATH-backup-$BACKUP_DIR." else - echo "${ERROR} - Failed to back up $DIR." + echo "${ERROR} - Failed to back up $DIR_NAME." exit 1 fi fi # Copy the new config - if [ -d "config/$DIR" ]; then - cp -r "config/$DIR" ~/.config/"$DIR" 2>&1 | tee -a "$LOG" + if [ -d "config/$DIR_NAME" ]; then + cp -r "config/$DIR_NAME" ~/.config/"$DIR_NAME" 2>&1 | tee -a "$LOG" if [ $? -eq 0 ]; then - echo "${OK} - Copy of config for $DIR completed!" + echo "${OK} - Copy of config for $DIR_NAME completed!" else - echo "${ERROR} - Failed to copy $DIR." + echo "${ERROR} - Failed to copy $DIR_NAME." exit 1 fi else - echo "${ERROR} - Directory config/$DIR does not exist to copy." + echo "${ERROR} - Directory config/$DIR_NAME does not exist to copy." exit 1 fi done @@ -386,7 +398,14 @@ printf "\n" printf "${NOTE} - copying dotfiles second part\n" # Config directories which will ask the user whether to replace or not -DIRS="ags fastfetch kitty rofi swaync waybar" +DIRS=" + ags + fastfetch + kitty + rofi + swaync + waybar +" for DIR2 in $DIRS; do DIRPATH=~/.config/"$DIR2" -- cgit v1.2.3 From f6dfceead5f5997a84c02fb12bb8cfe3749a4684 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 14:39:39 +0900 Subject: swaync module space --- config/waybar/Modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/waybar/Modules b/config/waybar/Modules index 933f8a8d..e825e53b 100644 --- a/config/waybar/Modules +++ b/config/waybar/Modules @@ -539,7 +539,7 @@ "custom/swaync": { "tooltip": true, "tooltip-format": "Left Click: Launch Notification Center\nRight Click: Do not Disturb", - "format": "{}{icon}", + "format": "{} {icon}", "format-icons": { "notification": "", "none": "", -- cgit v1.2.3 From d0011bc1beb1da8568644d301dde50ac3670143d Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 22:05:22 +0900 Subject: Updated workspaces #rw --- config/waybar/ModulesWorkspaces | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/waybar/ModulesWorkspaces b/config/waybar/ModulesWorkspaces index d92afd91..750c3488 100644 --- a/config/waybar/ModulesWorkspaces +++ b/config/waybar/ModulesWorkspaces @@ -158,14 +158,14 @@ "title<.*amazon.*>": " ", "title<.*reddit.*>": " ", "title<.*Picture-in-Picture.*>": " ", - "class": " ", + "class<[Ff]irefox|org.mozilla.firefox|[Ff]irefox-esr>": " ", "class": " ", "class": " ", "class": " ", "class": " ", "class<[Ss]potify>": " ", "class": "󰨞 ", - "class": "󰝰 ", + "class<[Tt]hunar>": "󰝰 ", "class<[Tt]hunderbird|[Tt]hunderbird-esr>": " ", "class": " ", "class": "󰅳 ", -- cgit v1.2.3 From d7dc56e6fcb0ddbf3750336a042eceff802aad93 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 23:17:07 +0900 Subject: updated copy.sh --- copy.sh | 126 ++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/copy.sh b/copy.sh index e09d91e8..c2b860ee 100755 --- a/copy.sh +++ b/copy.sh @@ -333,69 +333,7 @@ printf "\n" # Copy Config Files # set -e # Exit immediately if a command exits with a non-zero status. -printf "${NOTE} - Copying dotfiles first part\n" - -# Function to create a unique backup directory name with month, day, hours, and minutes -get_backup_dirname() { - local timestamp - timestamp=$(date +"%m%d_%H%M") - echo "back-up_${timestamp}" -} - -# Check if the config directory exists -if [ ! -d "config" ]; then - echo "${ERROR} - The 'config' directory does not exist." - exit 1 -fi - -DIR=" - btop - cava - hypr - Kvantum - qt5ct - qt6ct - swappy - wallust - wlogout -" - -for DIR_NAME in $DIR; do - DIRPATH=~/.config/"$DIR_NAME" - - # Backup the existing directory if it exists - if [ -d "$DIRPATH" ]; then - echo -e "${NOTE} - Config for $DIR_NAME found, attempting to back up." - BACKUP_DIR=$(get_backup_dirname) - - # Backup the existing directory - mv "$DIRPATH" "$DIRPATH-backup-$BACKUP_DIR" 2>&1 | tee -a "$LOG" - if [ $? -eq 0 ]; then - echo -e "${NOTE} - Backed up $DIR_NAME to $DIRPATH-backup-$BACKUP_DIR." - else - echo "${ERROR} - Failed to back up $DIR_NAME." - exit 1 - fi - fi - - # Copy the new config - if [ -d "config/$DIR_NAME" ]; then - cp -r "config/$DIR_NAME" ~/.config/"$DIR_NAME" 2>&1 | tee -a "$LOG" - if [ $? -eq 0 ]; then - echo "${OK} - Copy of config for $DIR_NAME completed!" - else - echo "${ERROR} - Failed to copy $DIR_NAME." - exit 1 - fi - else - echo "${ERROR} - Directory config/$DIR_NAME does not exist to copy." - exit 1 - fi -done - -printf "\n" - -printf "${NOTE} - copying dotfiles second part\n" +printf "${NOTE} - copying dotfiles first part\n" # Config directories which will ask the user whether to replace or not DIRS=" @@ -458,6 +396,68 @@ done printf "\n%.0s" {1..1} +printf "${NOTE} - Copying dotfiles second part\n" + +# Function to create a unique backup directory name with month, day, hours, and minutes +get_backup_dirname() { + local timestamp + timestamp=$(date +"%m%d_%H%M") + echo "back-up_${timestamp}" +} + +# Check if the config directory exists +if [ ! -d "config" ]; then + echo "${ERROR} - The 'config' directory does not exist." + exit 1 +fi + +DIR=" + btop + cava + hypr + Kvantum + qt5ct + qt6ct + swappy + wallust + wlogout +" + +for DIR_NAME in $DIR; do + DIRPATH=~/.config/"$DIR_NAME" + + # Backup the existing directory if it exists + if [ -d "$DIRPATH" ]; then + echo -e "${NOTE} - Config for $DIR_NAME found, attempting to back up." + BACKUP_DIR=$(get_backup_dirname) + + # Backup the existing directory + mv "$DIRPATH" "$DIRPATH-backup-$BACKUP_DIR" 2>&1 | tee -a "$LOG" + if [ $? -eq 0 ]; then + echo -e "${NOTE} - Backed up $DIR_NAME to $DIRPATH-backup-$BACKUP_DIR." + else + echo "${ERROR} - Failed to back up $DIR_NAME." + exit 1 + fi + fi + + # Copy the new config + if [ -d "config/$DIR_NAME" ]; then + cp -r "config/$DIR_NAME" ~/.config/"$DIR_NAME" 2>&1 | tee -a "$LOG" + if [ $? -eq 0 ]; then + echo "${OK} - Copy of config for $DIR_NAME completed!" + else + echo "${ERROR} - Failed to copy $DIR_NAME." + exit 1 + fi + else + echo "${ERROR} - Directory config/$DIR_NAME does not exist to copy." + exit 1 + fi +done + +printf "\n" + # copying Wallpapers 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" -- cgit v1.2.3 From 57448259139628bf8c168f7d4dad77b6874978cb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 18 Sep 2024 23:59:42 +0900 Subject: updated --- copy.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/copy.sh b/copy.sh index c2b860ee..5c53cf62 100755 --- a/copy.sh +++ b/copy.sh @@ -333,8 +333,15 @@ printf "\n" # Copy Config Files # set -e # Exit immediately if a command exits with a non-zero status. -printf "${NOTE} - copying dotfiles first part\n" +# Function to create a unique backup directory name with month, day, hours, and minutes +get_backup_dirname() { + local timestamp + timestamp=$(date +"%m%d_%H%M") + echo "back-up_${timestamp}" +} + +printf "${NOTE} - copying dotfiles first part\n" # Config directories which will ask the user whether to replace or not DIRS=" ags @@ -398,13 +405,6 @@ printf "\n%.0s" {1..1} printf "${NOTE} - Copying dotfiles second part\n" -# Function to create a unique backup directory name with month, day, hours, and minutes -get_backup_dirname() { - local timestamp - timestamp=$(date +"%m%d_%H%M") - echo "back-up_${timestamp}" -} - # Check if the config directory exists if [ ! -d "config" ]; then echo "${ERROR} - The 'config' directory does not exist." -- cgit v1.2.3 From 90794ab39de7b8acdcd8191231c3852f72498f9b Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 19 Sep 2024 10:12:58 +0900 Subject: updated oh my zsh theme switcher. added random function --- config/hypr/UserScripts/ZshChangeTheme.sh | 36 +++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index 46d2249e..f06f2b60 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -1,10 +1,19 @@ #!/bin/bash +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## +# Script for Oh my ZSH theme ( CTRL SHIFT O) + +# preview of theme can be view here: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes + +# after choosing theme, TTY need to be closed and re-open themes_dir="$HOME/.oh-my-zsh/themes" file_extension=".zsh-theme" themes_array=($(find "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//")) +# Add "Random" option to the beginning of the array +themes_array=("Random" "${themes_array[@]}") + rofi_command="rofi -i -dmenu -config ~/.config/rofi/config-zsh-theme.rasi" menu() { @@ -16,23 +25,28 @@ menu() { main() { choice=$(menu | ${rofi_command}) - # if nothing selected, script wont change anything + # if nothing selected, script won't change anything if [ -z "$choice" ]; then exit 0 fi zsh_path="$HOME/.zshrc" var_name="ZSH_THEME" - for i in "${themes_array[@]}"; do - if [[ "$i" == "$choice"* ]]; then - if [ -f "$zsh_path" ]; then - sed -i "s/^$var_name=.*/$var_name=\"$i\"/" "$zsh_path" - else - echo "File not found" - fi - break - fi - done + + if [[ "$choice" == "Random" ]]; then + # Pick a random theme from the original themes_array (excluding "Random") + random_theme=${themes_array[$((RANDOM % (${#themes_array[@]} - 1) + 1))]} + theme_to_set="$random_theme" + else + # Set theme to the selected choice + theme_to_set="$choice" + fi + + if [ -f "$zsh_path" ]; then + sed -i "s/^$var_name=.*/$var_name=\"$theme_to_set\"/" "$zsh_path" + else + echo "File not found" + fi } main -- cgit v1.2.3