From d404c8b6b94d973334a1136223fbf5c412083bdb Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 10 Feb 2025 01:16:17 +0900 Subject: Initial upload of various rofi themes --- config/hypr/UserScripts/QuickEdit.sh | 3 ++- config/hypr/UserScripts/RofiBeats.sh | 12 ++++++------ config/hypr/UserScripts/RofiCalc.sh | 6 +++--- config/hypr/UserScripts/WallpaperEffects.sh | 15 ++++++--------- config/hypr/UserScripts/WallpaperSelect.sh | 3 ++- config/hypr/UserScripts/ZshChangeTheme.sh | 6 +++--- 6 files changed, 22 insertions(+), 23 deletions(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index e0af9dce..c71fb166 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -9,6 +9,7 @@ tty=kitty # Paths to configuration directories configs="$HOME/.config/hypr/configs" UserConfigs="$HOME/.config/hypr/UserConfigs" +rofi_theme="~/.config/rofi/config-edit.rasi" # Function to display the menu options menu() { @@ -29,7 +30,7 @@ EOF # Main function to handle menu selection main() { - choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1) + choice=$(menu | rofi -i -dmenu -config $rofi_theme | cut -d. -f1) # Map choices to corresponding files case $choice in diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 380f6b29..58241256 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -2,11 +2,11 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For Rofi Beats to play online Music or Locally save media files -# Directory local music folder +# Variables mDIR="$HOME/Music/" - -# Directory for icons iDIR="$HOME/.config/swaync/icons" +rofi_theme="~/.config/rofi/config-rofi-Beats.rasi" +rofi_theme_1="~/.config/rofi/config-rofi-Beats-menu.rasi" # Online Stations. Edit as required declare -A online_music=( @@ -47,7 +47,7 @@ play_local_music() { populate_local_music # Prompt the user to select a song - choice=$(printf "%s\n" "${filenames[@]}" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi) + choice=$(printf "%s\n" "${filenames[@]}" | rofi -i -dmenu -config $rofi_theme) if [ -z "$choice" ]; then exit 1 @@ -77,7 +77,7 @@ shuffle_local_music() { # Main function for playing online music play_online_music() { - choice=$(printf "%s\n" "${!online_music[@]}" | rofi -i -dmenu -config ~/.config/rofi/config-rofi-Beats.rasi) + choice=$(printf "%s\n" "${!online_music[@]}" | rofi -i -dmenu -config $rofi_theme) if [ -z "$choice" ]; then exit 1 @@ -101,7 +101,7 @@ fi # Prompt the user to choose between local and online music -user_choice=$(printf "Play from Online Stations\nPlay from Music Folder\nShuffle Play from Music Folder" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats-menu.rasi) +user_choice=$(printf "Play from Online Stations\nPlay from Music Folder\nShuffle Play from Music Folder" | rofi -dmenu -config $rofi_theme_1) case "$user_choice" in "Play from Music Folder") diff --git a/config/hypr/UserScripts/RofiCalc.sh b/config/hypr/UserScripts/RofiCalc.sh index cef80b81..7bef4b6c 100755 --- a/config/hypr/UserScripts/RofiCalc.sh +++ b/config/hypr/UserScripts/RofiCalc.sh @@ -3,7 +3,7 @@ # /* Calculator (using qalculate) and rofi */ # /* Submitted by: https://github.com/JosephArmas */ -rofi_config="$HOME/.config/rofi/config-calc.rasi" +rofi_theme="$HOME/.config/rofi/config-calc.rasi" # Kill Rofi if already running before execution if pgrep -x "rofi" >/dev/null; then @@ -15,8 +15,8 @@ fi while true; do result=$( rofi -i -dmenu \ - -config "$rofi_config" \ - -mesg "$result = $calc_result" + -config $rofi_theme \ + -mesg "$result = $calc_result" ) if [ $? -ne 0 ]; then diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh index 215fdf6f..2573f5e0 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -8,6 +8,7 @@ wallpaper_current="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" wallpaper_output="$HOME/.config/hypr/wallpaper_effects/.wallpaper_modified" SCRIPTSDIR="$HOME/.config/hypr/scripts" focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') +rofi_theme="~/.config/rofi/config-wallpaper-effect.rasi" # Directory for swaync iDIR="$HOME/.config/swaync/images" @@ -45,9 +46,7 @@ declare -A effects=( # Function to apply no effects no-effects() { swww img -o "$focused_monitor" "$wallpaper_current" $SWWW_PARAMS && - # Wait for swww command to complete wait $! - # Run other commands after swww wallust run "$wallpaper_current" -s && wait $! # Refresh rofi, waybar, wallust palettes @@ -67,7 +66,7 @@ main() { [[ "$effect" != "No Effects" ]] && options+=("$effect") done - choice=$(printf "%s\n" "${options[@]}" | LC_COLLATE=C sort | rofi -dmenu -i -config ~/.config/rofi/config-wallpaper-effect.rasi) + choice=$(printf "%s\n" "${options[@]}" | LC_COLLATE=C sort | rofi -dmenu -i -config $rofi_theme) # Process user choice if [[ -n "$choice" ]]; then @@ -77,16 +76,14 @@ main() { # Apply selected effect notify-send -u normal -i "$iDIR/ja.png" "Applying:" "$choice effects" eval "${effects[$choice]}" - # Wait for effects to be applied + sleep 1 - # Execute swww command after image conversion swww img -o "$focused_monitor" "$wallpaper_output" $SWWW_PARAMS & - # Wait for swww command to complete + sleep 2 - # Wait for other commands to finish + wallust run "$wallpaper_output" -s & - # Wait for other commands to finish - sleep 0.5 + sleep 1 # Refresh rofi, waybar, wallust palettes "${SCRIPTSDIR}/Refresh.sh" notify-send -u low -i "$iDIR/ja.png" "$choice" "effects applied" diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 19bb145d..61253cb3 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -13,6 +13,7 @@ iDIR="$HOME/.config/swaync/images" iDIRi="$HOME/.config/swaync/icons" # variables +rofi_theme="~/.config/rofi/config-wallpaper.rasi" focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') # swww transition config FPS=60 @@ -33,7 +34,7 @@ RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" RANDOM_PIC_NAME=". random" # Rofi command -rofi_command="rofi -i -show -dmenu -config ~/.config/rofi/config-wallpaper.rasi" +rofi_command="rofi -i -show -dmenu -config $rofi_theme" # Sorting Wallpapers menu() { diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index edfc2ecd..d43b6ff9 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -8,15 +8,16 @@ themes_dir="$HOME/.oh-my-zsh/themes" file_extension=".zsh-theme" -# Directory for swaync +# Variables iDIR="$HOME/.config/swaync/images" +rofi_theme="~/.config/rofi/config-zsh-theme.rasi" 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" +rofi_command="rofi -i -dmenu -config $rofi_theme" menu() { for theme in "${themes_array[@]}"; do @@ -29,7 +30,6 @@ main() { # if nothing selected, script won't change anything if [ -z "$choice" ]; then - notify-send -u low -i "$iDIR/ja.png" "No theme selected." "No changes made!" exit 0 fi -- cgit v1.2.3 From 34ec8fe040c036b4c6f5d426a7bad66ebddfc8f2 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Wed, 12 Feb 2025 00:54:00 +0900 Subject: Updated New rofi themes --- assets/rofi/themes/KooL_style-1.rasi | 2 +- assets/rofi/themes/KooL_style-10-Fancy.rasi | 12 +++++------ .../themes/KooL_style-11-Win11-list-light.rasi | 2 +- assets/rofi/themes/KooL_style-2-Dark.rasi | 8 ++++---- assets/rofi/themes/KooL_style-2-Light.rasi | 6 +++--- assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi | 2 +- assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi | 2 +- assets/rofi/themes/KooL_style-4.rasi | 6 +++--- assets/rofi/themes/KooL_style-5.rasi | 4 ++-- assets/rofi/themes/KooL_style-6.rasi | 3 +-- assets/rofi/themes/KooL_style-8.rasi | 23 +++++++++++++-------- assets/rofi/themes/KooL_style-9.rasi | 22 +++++++++++++++++++- config/hypr/UserConfigs/UserKeybinds.conf | 12 +++++------ config/hypr/UserScripts/00-Readme | 0 config/hypr/UserScripts/RofiCalc.sh | 2 +- config/hypr/configs/Keybinds.conf | 24 ++++++++++++++-------- config/rofi/config-calc.rasi | 1 + config/rofi/config-search.rasi | 4 +--- 18 files changed, 81 insertions(+), 54 deletions(-) mode change 100755 => 100644 config/hypr/UserScripts/00-Readme (limited to 'config/hypr/UserScripts') diff --git a/assets/rofi/themes/KooL_style-1.rasi b/assets/rofi/themes/KooL_style-1.rasi index 786e5b2f..556c86a1 100644 --- a/assets/rofi/themes/KooL_style-1.rasi +++ b/assets/rofi/themes/KooL_style-1.rasi @@ -213,7 +213,7 @@ element-icon { cursor: inherit; } element-text { - font: "JetBrainsMono Nerd Font SemiBold 11"; + font: "JetBrainsMono Nerd Font SemiBold 12"; background-color: transparent; text-color: inherit; cursor: inherit; diff --git a/assets/rofi/themes/KooL_style-10-Fancy.rasi b/assets/rofi/themes/KooL_style-10-Fancy.rasi index 80203b6f..8da2e0e7 100644 --- a/assets/rofi/themes/KooL_style-10-Fancy.rasi +++ b/assets/rofi/themes/KooL_style-10-Fancy.rasi @@ -66,7 +66,6 @@ window { children: [ inputbar, message, wrapper-mode-switcher, listview , pagerbox ]; } - pagerbox { expand: false; orientation: horizontal; @@ -229,6 +228,7 @@ sidebar { inputbar { text-color: @normal-foreground; padding: 0px 0px 0.5em; + children: [ wrapper ]; } case-indicator { text-color: @normal-foreground; @@ -237,9 +237,8 @@ case-indicator { wrapper { orientation: horizontal; text-color: black; - background-color: white / 70%; + background-color: white / 75%; border-color: grey; - border: 2px; border-radius: 5px; padding: 4px; @@ -270,12 +269,13 @@ icon-k { entry { enabled: true; expand: true; + background-color: white / 75%; placeholder: " 🖥️ Search "; vertical-align: 0.5; + border-radius: 5px; + padding: 4px; } -inputbar { - children: [ wrapper ]; -} + error-message { background-color: darkred/10%; diff --git a/assets/rofi/themes/KooL_style-11-Win11-list-light.rasi b/assets/rofi/themes/KooL_style-11-Win11-list-light.rasi index 65809c4d..75da3b6e 100644 --- a/assets/rofi/themes/KooL_style-11-Win11-list-light.rasi +++ b/assets/rofi/themes/KooL_style-11-Win11-list-light.rasi @@ -12,8 +12,8 @@ configuration { me-select-entry: "MouseSecondary"; me-accept-entry: "MousePrimary"; } - /*****----- Global Properties -----*****/ + * { font: "JetBrainsMono Nerd Font SemiBold 13"; diff --git a/assets/rofi/themes/KooL_style-2-Dark.rasi b/assets/rofi/themes/KooL_style-2-Dark.rasi index 934ea657..de16d833 100644 --- a/assets/rofi/themes/KooL_style-2-Dark.rasi +++ b/assets/rofi/themes/KooL_style-2-Dark.rasi @@ -64,14 +64,14 @@ inputbar { border: 0px 0px 2px 0px; border-radius: 0px; border-color: gray/20%; - background-color: transparent; + background-color: black/50%; children: [ "entry" ]; } entry { enabled: true; - background-color: transparent; - text-color: dimgray; + background-color: black/50%; + text-color: white/75%; cursor: text; placeholder: "Type to search"; placeholder-color: inherit; @@ -148,7 +148,7 @@ mode-switcher{ text-color: white; } button { - font: "JetBrainsMono Nerd Font SemiBold 10"; + font: "JetBrainsMono Nerd Font SemiBold 12"; padding: 6px; border: 0px solid; border-radius: 100%; diff --git a/assets/rofi/themes/KooL_style-2-Light.rasi b/assets/rofi/themes/KooL_style-2-Light.rasi index 3cd9266d..74eb8e32 100644 --- a/assets/rofi/themes/KooL_style-2-Light.rasi +++ b/assets/rofi/themes/KooL_style-2-Light.rasi @@ -41,7 +41,7 @@ window { padding: 0px; border-radius: 12px; cursor: "default"; - background-color: transparent; + background-color: inherit; } /*****----- Main Box -----*****/ @@ -60,7 +60,7 @@ inputbar { enabled: true; spacing: 0px; margin: 0px; - padding: 0px 0px 10px 0px; + padding: 0px 10px 10px 0px; border: 0px 0px 2px 0px; border-radius: 0px; border-color: gray/20%; @@ -70,7 +70,7 @@ inputbar { entry { enabled: true; - background-color: transparent; + background-color: inherit; text-color: black; cursor: text; placeholder: "Type to search"; diff --git a/assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi b/assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi index 7ca3d4bf..d9b31251 100644 --- a/assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi +++ b/assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi @@ -1,5 +1,5 @@ /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ -/* KooL Hyprland v2.3.10 (latest) - Default Config */ +/* KooL Hyprland Full Screen Style 3 v1 */ /* ---- Configuration ---- */ diff --git a/assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi b/assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi index 6f1a3cef..7584b542 100644 --- a/assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi +++ b/assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi @@ -1,5 +1,5 @@ /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ - +/* KooL Hyprland Rofi Style 3 - Full screen v2 */ /* credit: https://github.com/adi1090x/rofi */ /*****----- Configuration -----*****/ diff --git a/assets/rofi/themes/KooL_style-4.rasi b/assets/rofi/themes/KooL_style-4.rasi index fb25db61..7f4f0d4e 100644 --- a/assets/rofi/themes/KooL_style-4.rasi +++ b/assets/rofi/themes/KooL_style-4.rasi @@ -1,5 +1,5 @@ /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ - +/* KooL Hyprland Rofi Style 4 */ /* credit: https://github.com/adi1090x/rofi */ /*****----- Configuration -----*****/ @@ -89,7 +89,7 @@ mainbox { border: 0px solid; border-radius: 0px 0px 0px 0px; border-color: @border-color; - background-color: transparent; + background-color: inherit; children: [ "inputbar", "message", "custombox" ]; } @@ -132,7 +132,7 @@ textbox-prompt-colon { entry { enabled: true; padding: 5px 0px; - background-color: inherit; + background-color: @alternate-background; text-color: @foreground; cursor: text; placeholder: "Search..."; diff --git a/assets/rofi/themes/KooL_style-5.rasi b/assets/rofi/themes/KooL_style-5.rasi index 234567bc..bb70d0f8 100644 --- a/assets/rofi/themes/KooL_style-5.rasi +++ b/assets/rofi/themes/KooL_style-5.rasi @@ -118,7 +118,7 @@ entry { cursor: text; placeholder: " Search"; placeholder-color: inherit; - background-color: transparent; + background-color: @background; } /* ---- Mode Switcher ---- */ @@ -230,7 +230,7 @@ element-icon { } element-text { - font: "JetBrainsMono Nerd Font SemiBold 10"; + font: "JetBrainsMono Nerd Font SemiBold 12"; background-color: transparent; text-color: @foreground; cursor: inherit; diff --git a/assets/rofi/themes/KooL_style-6.rasi b/assets/rofi/themes/KooL_style-6.rasi index f6b1307b..30028218 100644 --- a/assets/rofi/themes/KooL_style-6.rasi +++ b/assets/rofi/themes/KooL_style-6.rasi @@ -1,5 +1,5 @@ /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ -/* KooL Hyprland v2.2.10 (old) - Default Config */ +/* KooL Hyprland Rofi Style 6 */ /* ---- Configuration ---- */ @@ -199,7 +199,6 @@ element-icon { } element-text { background-color: transparent; - font: "Fira Code SemiBold 12"; text-color: inherit; cursor: inherit; vertical-align: 0.5; diff --git a/assets/rofi/themes/KooL_style-8.rasi b/assets/rofi/themes/KooL_style-8.rasi index 00e5c9cf..b74f801f 100644 --- a/assets/rofi/themes/KooL_style-8.rasi +++ b/assets/rofi/themes/KooL_style-8.rasi @@ -218,16 +218,21 @@ element-text { } /* ---- Message ---- */ -error-message { - text-color: @foreground; - background-color: @background; - text-transform: capitalize; - children: [ "textbox" ]; +message { + background-color: transparent; + border: 0px; } - textbox { - text-color: inherit; - background-color: inherit; + padding: 12px; + border-radius: 10px; + background-color: @background; + text-color: @foreground; vertical-align: 0.5; - horizontal-align: 0.5; + horizontal-align: 0.0; +} +error-message { + padding: 12px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; } diff --git a/assets/rofi/themes/KooL_style-9.rasi b/assets/rofi/themes/KooL_style-9.rasi index d09e58e2..a74e64eb 100644 --- a/assets/rofi/themes/KooL_style-9.rasi +++ b/assets/rofi/themes/KooL_style-9.rasi @@ -132,7 +132,7 @@ scrollbar { /* ---- Elements ---- */ element { - font: "JetBrainsMono Nerd Font SemiBold 11"; + font: "JetBrainsMono Nerd Font SemiBold 12"; background-color: @BG; text-color: @FG; orientation: horizontal; @@ -188,3 +188,23 @@ element selected.active { background-color: @BGA; color: @FG; } + +/* ---- Message ---- */ +message { + background-color: transparent; + border: 0px; +} +textbox { + padding: 12px; + border-radius: 10px; + background-color: @background; + text-color: @foreground; + vertical-align: 0.5; + horizontal-align: 0.0; +} +error-message { + padding: 12px; + border-radius: 20px; + background-color: @background; + text-color: @foreground; +} \ No newline at end of file diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index ebcd2e6d..a615ef68 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -13,21 +13,19 @@ $UserScripts = $HOME/.config/hypr/UserScripts # rofi App launcher #bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu -bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window #Main Menu +bind = $mainMod, D, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Main Menu (APP Launcher) -bind = $mainMod CTRL, F, fullscreen, 1 # fake full screen +bind = $mainMod, B, exec, xdg-open "http:// &" # default browser -# ags overview -bind = $mainMod, A, exec, pkill rofi || true && ags -t 'overview' +bind = $mainMod, A, exec, pkill rofi || true && ags -t 'overview' # ags desktop overview bind = $mainMod, Return, exec, $term #terminal -bind = $mainMod, T, exec, $files #file manager +bind = $mainMod, E, exec, $files #file manager bind = $mainMod CTRL, R, exec, $scriptsDir/RofiThemeSelector.sh # modified Rofi Theme Selector - bind = $mainMod ALT, C, exec, $UserScripts/RofiCalc.sh # calculator (qalculate) -# pyprland +# pyprland (This is not available in Debian and Ubuntu) bind = $mainMod SHIFT, Return, exec, pypr toggle term # Dropdown terminal bind = $mainMod, Z, exec, pypr zoom # Toggle Desktop Zoom diff --git a/config/hypr/UserScripts/00-Readme b/config/hypr/UserScripts/00-Readme old mode 100755 new mode 100644 diff --git a/config/hypr/UserScripts/RofiCalc.sh b/config/hypr/UserScripts/RofiCalc.sh index 7bef4b6c..4b3b8b69 100755 --- a/config/hypr/UserScripts/RofiCalc.sh +++ b/config/hypr/UserScripts/RofiCalc.sh @@ -16,7 +16,7 @@ while true; do result=$( rofi -i -dmenu \ -config $rofi_theme \ - -mesg "$result = $calc_result" + -mesg "$result = $calc_result" ) if [ $? -ne 0 ]; then diff --git a/config/hypr/configs/Keybinds.conf b/config/hypr/configs/Keybinds.conf index 2ea3bfa3..7cacae40 100644 --- a/config/hypr/configs/Keybinds.conf +++ b/config/hypr/configs/Keybinds.conf @@ -10,12 +10,18 @@ $configs = $HOME/.config/hypr/configs $UserConfigs = $HOME/.config/hypr/UserConfigs $UserScripts = $HOME/.config/hypr/UserScripts + bind = CTRL ALT, Delete, exec, hyprctl dispatch exit 0 -bind = $mainMod, Q, killactive, -bind = $mainMod, F, fullscreen -bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh -bind = $mainMod SHIFT, F, togglefloating, -bind = $mainMod ALT, F, exec, hyprctl dispatch workspaceopt allfloat +bind = $mainMod, Q, killactive, #kill +bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh # Kill active process +bind = $mainMod SHIFT, F, fullscreen # whole full screen +bind = $mainMod CTRL, F, fullscreen, 1 # fake full screen +bind = $mainMod, SPACE, togglefloating, #Float Mode +bind = $mainMod ALT, SPACE, exec, hyprctl dispatch workspaceopt allfloat #All Float Mode + +#bind = $mainMod, SPACE, exec, $scriptsDir/Float.sh # float mode +#bind = $mainMod ALT, SPACE, exec, $scriptsDir/Float.sh --allfloat # all float mode + bind = CTRL ALT, L, exec, $scriptsDir/LockScreen.sh # screen lock bind = CTRL ALT, P, exec, $scriptsDir/Wlogout.sh # power menu @@ -24,24 +30,24 @@ bind = $mainMod, H, exec, $scriptsDir/KeyHints.sh # help file bind = $mainMod ALT, R, exec, $scriptsDir/Refresh.sh # Refresh waybar, swaync, rofi bind = $mainMod ALT, E, exec, $scriptsDir/RofiEmoji.sh # emoji menu bind = $mainMod, S, exec, $scriptsDir/RofiSearch.sh # Google search using rofi -bind = $mainMod SHIFT, B, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings +bind = $mainMod ALT, O, exec, $scriptsDir/ChangeBlur.sh # Toggle blur settings bind = $mainMod SHIFT, G, exec, $scriptsDir/GameMode.sh # Toggle animations ON/OFF bind = $mainMod ALT, L, exec, $scriptsDir/ChangeLayout.sh # Toggle Master or Dwindle Layout bind = $mainMod ALT, V, exec, $scriptsDir/ClipManager.sh # Clipboard Manager bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC notification panel # FEATURES / EXTRAS (UserScripts) -bind = $mainMod, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings +bind = $mainMod SHIFT, E, exec, $UserScripts/QuickEdit.sh # Quick Edit Hyprland Settings bind = $mainMod SHIFT, M, exec, $UserScripts/RofiBeats.sh # online music using rofi bind = $mainMod, W, exec, $UserScripts/WallpaperSelect.sh # Select wallpaper to apply bind = $mainMod SHIFT, W, exec, $UserScripts/WallpaperEffects.sh # Wallpaper Effects by imagemagick bind = CTRL ALT, W, exec, $UserScripts/WallpaperRandom.sh # Random wallpapers -bind = $mainMod ALT, O, exec, hyprctl setprop active opaque toggle # disable opacity on active window +bind = $mainMod CTRL, O, exec, hyprctl setprop active opaque toggle # disable opacity on active window bind = $mainMod SHIFT, K, exec, $scriptsDir/KeyBinds.sh # search keybinds via rofi bind = $mainMod SHIFT, A, exec, $scriptsDir/Animations.sh #hyprland animations menu # Waybar / Bar related -bind = $mainMod, B, exec, pkill -SIGUSR1 waybar # Toggle hide/show waybar +bind = $mainMod CTRL ALT, B, exec, pkill -SIGUSR1 waybar # Toggle hide/show waybar bind = $mainMod CTRL, B, exec, $scriptsDir/WaybarStyles.sh # Waybar Styles Menu bind = $mainMod ALT, B, exec, $scriptsDir/WaybarLayout.sh # Waybar Layout Menu diff --git a/config/rofi/config-calc.rasi b/config/rofi/config-calc.rasi index 61be7642..60169c31 100644 --- a/config/rofi/config-calc.rasi +++ b/config/rofi/config-calc.rasi @@ -7,6 +7,7 @@ /* ---- Mainbox ---- */ mainbox { children: [ "entry", "message" ]; + height: inherit; } diff --git a/config/rofi/config-search.rasi b/config/rofi/config-search.rasi index 08600b30..a2ff66ee 100644 --- a/config/rofi/config-search.rasi +++ b/config/rofi/config-search.rasi @@ -7,13 +7,11 @@ window { width: 40%; height: inherit; - background-color: black/25%; y-offset: 10px; location: north; children: [ "entry" ]; border: 2px; border-color: white/25%; - border-radius: 20px; } /* ---- Entry ---- */ @@ -21,5 +19,5 @@ entry { placeholder: " 🔎 Google Search via web browser"; padding: 15px; border: 0px; - text-color: white; + border-radius: 12px; } -- cgit v1.2.3 From dd46262fdfaabebb6fd2213a9baec91dd4244086 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 13 Feb 2025 10:02:50 +0900 Subject: added -L on find command on some scripts to be more https://github.com/JaKooLit/Hyprland-Dots/issues/553 --- config/hypr/UserScripts/00-Readme | 0 config/hypr/UserScripts/RofiBeats.sh | 2 +- config/hypr/UserScripts/WallpaperRandom.sh | 2 +- config/hypr/UserScripts/WallpaperSelect.sh | 2 +- config/hypr/UserScripts/ZshChangeTheme.sh | 2 +- config/hypr/scripts/Animations.sh | 2 +- config/hypr/scripts/DarkLight.sh | 6 +++--- config/hypr/scripts/RofiThemeSelector.sh | 2 +- config/hypr/scripts/Sounds.sh | 8 ++++---- config/hypr/scripts/WaybarLayout.sh | 3 ++- config/hypr/scripts/WaybarStyles.sh | 4 +++- 11 files changed, 18 insertions(+), 15 deletions(-) mode change 100644 => 100755 config/hypr/UserScripts/00-Readme (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/00-Readme b/config/hypr/UserScripts/00-Readme old mode 100644 new mode 100755 diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 58241256..38ff8829 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -34,7 +34,7 @@ populate_local_music() { while IFS= read -r file; do local_music+=("$file") filenames+=("$(basename "$file")") - done < <(find "$mDIR" -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.wav" -o -iname "*.ogg" -o -iname "*.mp4" \)) + done < <(find -L "$mDIR" -type f \( -iname "*.mp3" -o -iname "*.flac" -o -iname "*.wav" -o -iname "*.ogg" -o -iname "*.mp4" \)) } # Function for displaying notifications diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh index 1a5064e7..abaa9b03 100755 --- a/config/hypr/UserScripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperRandom.sh @@ -7,7 +7,7 @@ SCRIPTSDIR="$HOME/.config/hypr/scripts" focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') -PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.pnm" -o -name "*.tga" -o -name "*.tiff" -o -name "*.webp" -o -name "*.bmp" -o -name "*.farbfeld" -o -name "*.gif" \))) +PICS=($(find -L ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.pnm" -o -name "*.tga" -o -name "*.tiff" -o -name "*.webp" -o -name "*.bmp" -o -name "*.farbfeld" -o -name "*.gif" \))) RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 61253cb3..86264775 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -28,7 +28,7 @@ if pidof swaybg > /dev/null; then fi # Retrieve image files using null delimiter to handle spaces in filenames -mapfile -d '' PICS < <(find "${wallDIR}" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.pnm" -o -iname "*.tga" -o -iname "*.tiff" -o -iname "*.webp" -o -iname "*.bmp" -o -iname "*.farbfeld" -o -iname "*.png" -o -iname "*.gif" \) -print0) +mapfile -d '' PICS < <(find -L "${wallDIR}" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.pnm" -o -iname "*.tga" -o -iname "*.tiff" -o -iname "*.webp" -o -iname "*.bmp" -o -iname "*.farbfeld" -o -iname "*.png" -o -iname "*.gif" \) -print0) RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}" RANDOM_PIC_NAME=". random" diff --git a/config/hypr/UserScripts/ZshChangeTheme.sh b/config/hypr/UserScripts/ZshChangeTheme.sh index d43b6ff9..4ff43557 100755 --- a/config/hypr/UserScripts/ZshChangeTheme.sh +++ b/config/hypr/UserScripts/ZshChangeTheme.sh @@ -12,7 +12,7 @@ file_extension=".zsh-theme" iDIR="$HOME/.config/swaync/images" rofi_theme="~/.config/rofi/config-zsh-theme.rasi" -themes_array=($(find "$themes_dir" -type f -name "*$file_extension" -exec basename {} \; | sed -e "s/$file_extension//")) +themes_array=($(find -L "$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[@]}") diff --git a/config/hypr/scripts/Animations.sh b/config/hypr/scripts/Animations.sh index b4d368e9..62c32257 100755 --- a/config/hypr/scripts/Animations.sh +++ b/config/hypr/scripts/Animations.sh @@ -15,7 +15,7 @@ UserConfigs="$HOME/.config/hypr/UserConfigs" rofi_theme="~/.config/rofi/config-Animations.rasi" # 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) +animations_list=$(find -L "$animations_dir" -maxdepth 1 -type f | sed 's/.*\///' | sed 's/\.conf$//' | sort -V) # Rofi Menu chosen_file=$(echo "$animations_list" | rofi -i -dmenu -config $rofi_theme) diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 783fa31a..662e1954 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -68,7 +68,7 @@ set_waybar_style() { waybar_style_link="$HOME/.config/waybar/style.css" style_prefix="\\[${theme}\\].*\\.css$" - style_file=$(find "$waybar_styles" -maxdepth 1 -type f -regex ".*$style_prefix" | shuf -n 1) + style_file=$(find -L "$waybar_styles" -maxdepth 1 -type f -regex ".*$style_prefix" | shuf -n 1) if [ -n "$style_file" ]; then ln -sf "$style_file" "$waybar_style_link" @@ -117,9 +117,9 @@ fi # Set Dynamic Wallpaper for Dark or Light Mode if [ "$next_mode" = "Dark" ]; then - next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" + next_wallpaper="$(find -L "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" else - next_wallpaper="$(find "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" + next_wallpaper="$(find -L "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" fi # Update wallpaper using swww command diff --git a/config/hypr/scripts/RofiThemeSelector.sh b/config/hypr/scripts/RofiThemeSelector.sh index 420316bd..cbce04b0 100755 --- a/config/hypr/scripts/RofiThemeSelector.sh +++ b/config/hypr/scripts/RofiThemeSelector.sh @@ -16,7 +16,7 @@ menu() { options=() while IFS= read -r file; do options+=("$(basename "$file")") - done < <(find "$rofi_theme_dir" -maxdepth 1 -type f -exec basename {} \; | sort) + done < <(find -L "$rofi_theme_dir" -maxdepth 1 -type f -exec basename {} \; | sort) printf '%s\n' "${options[@]}" } diff --git a/config/hypr/scripts/Sounds.sh b/config/hypr/scripts/Sounds.sh index 9ab9127d..8b2cc76e 100755 --- a/config/hypr/scripts/Sounds.sh +++ b/config/hypr/scripts/Sounds.sh @@ -58,13 +58,13 @@ iTheme=$(cat "$sDIR/index.theme" | grep -i "inherits" | cut -d "=" -f 2) iDIR="$sDIR/../$iTheme" # Find the sound file and play it. -sound_file=$(find $sDIR/stereo -name "$soundoption" -print -quit) +sound_file=$(find -L $sDIR/stereo -name "$soundoption" -print -quit) if ! test -f "$sound_file"; then - sound_file=$(find $iDIR/stereo -name "$soundoption" -print -quit) + sound_file=$(find -L $iDIR/stereo -name "$soundoption" -print -quit) if ! test -f "$sound_file"; then - sound_file=$(find $userDIR/$defaultTheme/stereo -name "$soundoption" -print -quit) + sound_file=$(find -L $userDIR/$defaultTheme/stereo -name "$soundoption" -print -quit) if ! test -f "$sound_file"; then - sound_file=$(find $systemDIR/$defaultTheme/stereo -name "$soundoption" -print -quit) + sound_file=$(find -L $systemDIR/$defaultTheme/stereo -name "$soundoption" -print -quit) if ! test -f "$sound_file"; then echo "Error: Sound file not found." exit 1 diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh index d6c4db83..fe16d3e1 100755 --- a/config/hypr/scripts/WaybarLayout.sh +++ b/config/hypr/scripts/WaybarLayout.sh @@ -2,6 +2,7 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for waybar layout or configs +set -x IFS=$'\n\t' # Define directories @@ -15,7 +16,7 @@ menu() { options=() while IFS= read -r file; do options+=("$(basename "$file")") - done < <(find "$waybar_layouts" -maxdepth 1 -type f -exec basename {} \; | sort) + done < <(find -L "$waybar_layouts" -maxdepth 1 -type f -exec basename {} \; | sort) printf '%s\n' "${options[@]}" } diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh index 62550ced..471c85e5 100755 --- a/config/hypr/scripts/WaybarStyles.sh +++ b/config/hypr/scripts/WaybarStyles.sh @@ -2,6 +2,8 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Script for waybar styles +set -x + IFS=$'\n\t' # Define directories @@ -17,7 +19,7 @@ menu() { if [ -f "$waybar_styles/$file" ]; then options+=("$(basename "$file" .css)") fi - done < <(find "$waybar_styles" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort) + done < <(find -L "$waybar_styles" -maxdepth 1 -type f -name '*.css' -exec basename {} \; | sort) printf '%s\n' "${options[@]}" } -- cgit v1.2.3