aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2024-09-17 09:47:48 +0900
committerGitHub <noreply@github.com>2024-09-17 09:47:48 +0900
commit6799691d8a491d73cd3eb466b99f9f5289ac33df (patch)
tree4e2f64356a9f539678a1c67177210a327423b6c2 /config/hypr
parentea5a4b1f60946d37cbcc03d5325e74a221e789dd (diff)
parent628b4203ad9976db811a15e2c330c3904ce40cd5 (diff)
Merge pull request #446 from JaKooLit/development
Development to main. copy patch
Diffstat (limited to 'config/hypr')
-rw-r--r--config/hypr/UserConfigs/UserDecorAnimations.conf13
-rw-r--r--config/hypr/UserConfigs/WindowRules.conf5
-rwxr-xr-xconfig/hypr/UserScripts/QuickEdit.sh89
3 files changed, 48 insertions, 59 deletions
diff --git a/config/hypr/UserConfigs/UserDecorAnimations.conf b/config/hypr/UserConfigs/UserDecorAnimations.conf
index 88224473..ef43fd6e 100644
--- a/config/hypr/UserConfigs/UserDecorAnimations.conf
+++ b/config/hypr/UserConfigs/UserDecorAnimations.conf
@@ -22,16 +22,17 @@ decoration {
drop_shadow = true
shadow_range = 6
shadow_render_power = 1
+
col.shadow = $color12
col.shadow_inactive = 0x50000000
blur {
- enabled = true
- size = 6
- passes = 2
- ignore_opacity = true
- new_optimizations = true
- special = true
+ enabled = true
+ size = 6
+ passes = 2
+ ignore_opacity = true
+ new_optimizations = true
+ special = true
}
}
diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf
index 869162da..26b7a7c2 100644
--- a/config/hypr/UserConfigs/WindowRules.conf
+++ b/config/hypr/UserConfigs/WindowRules.conf
@@ -49,7 +49,8 @@ windowrulev2 = float, class:([Tt]hunar), title:(File Operation Progress)
windowrulev2 = float, class:([Tt]hunar), title:(Confirm to replace files)
windowrulev2 = float, class:(xdg-desktop-portal-gtk)
windowrulev2 = float, class:(org.gnome.Calculator), title:(Calculator)
-windowrulev2 = float, class:(codium|codium-url-handler|VSCodium), title:(Add Folder to Workspace)
+windowrulev2 = float, class:(codium|codium-url-handler|VSCodium|code-oss), title:(Add Folder to Workspace)
+windowrulev2 = float, class:(electron), title:(Add Folder to Workspace)
windowrulev2 = float, class:^([Rr]ofi)$
windowrulev2 = float, class:^(eog|org.gnome.Loupe)$ # image viewer
windowrulev2 = float, class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)$
@@ -85,7 +86,7 @@ windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$
windowrulev2 = opacity 0.8 0.7, class:^(gedit|org.gnome.TextEditor|mousepad)$
windowrulev2 = opacity 0.9 0.8, class:^(deluge)$
windowrulev2 = opacity 0.8 0.7, class:^(Alacritty|kitty|kitty-dropterm)$ # Terminals
-windowrulev2 = opacity 0.9 0.7, class:^(VSCodium|codium-url-handler)$
+windowrulev2 = opacity 0.9 0.7, class:^(VSCodium|codium-url-handler|code-oss)$
windowrulev2 = opacity 0.9 0.8, class:^(nwg-look|qt5ct|qt6ct|[Yy]ad)$
windowrulev2 = opacity 0.9 0.8, title:(Kvantum Manager)
windowrulev2 = opacity 0.9 0.7, class:^(com.obsproject.Studio)$
diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh
index 6320218b..c8168ca3 100755
--- a/config/hypr/UserScripts/QuickEdit.sh
+++ b/config/hypr/UserScripts/QuickEdit.sh
@@ -1,66 +1,53 @@
#!/bin/bash
-# Rofi menu for Quick Edit / View of Settings (SUPER E)
+# Rofi menu for Quick Edit/View of Settings (SUPER E)
-# define your preferred text editor and terminal to use
-editor=${EDITOR:-nano}
+# Define preferred text editor and terminal
+edit=${EDITOR:-nano}
tty=kitty
+# Paths to configuration directories
configs="$HOME/.config/hypr/configs"
UserConfigs="$HOME/.config/hypr/UserConfigs"
-menu(){
- printf "1. edit Env-variables\n"
- printf "2. edit Window-Rules\n"
- printf "3. edit Startup_Apps\n"
- printf "4. edit User-Keybinds\n"
- printf "5. edit Monitors\n"
- printf "6. edit Laptop-Keybinds\n"
- printf "7. edit User-Settings\n"
- printf "8. edit Decorations & Animations\n"
- printf "9. edit Workspace-Rules\n"
- printf "10. edit Default-Settings\n"
- printf "11. edit Default-Keybinds\n"
+# Function to display the menu options
+menu() {
+ cat <<EOF
+1. Edit Env-variables
+2. Edit Window-Rules
+3. Edit Startup_Apps
+4. Edit User-Keybinds
+5. Edit Monitors
+6. Edit Laptop-Keybinds
+7. Edit User-Settings
+8. Edit Decorations & Animations
+9. Edit Workspace-Rules
+10. Edit Default-Settings
+11. Edit Default-Keybinds
+EOF
}
+# Main function to handle menu selection
main() {
choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
+
+ # Map choices to corresponding files
case $choice in
- 1)
- $tty $editor "$UserConfigs/ENVariables.conf"
- ;;
- 2)
- $tty $editor "$UserConfigs/WindowRules.conf"
- ;;
- 3)
- $tty $editor "$UserConfigs/Startup_Apps.conf"
- ;;
- 4)
- $tty $editor "$UserConfigs/UserKeybinds.conf"
- ;;
- 5)
- $tty $editor "$UserConfigs/Monitors.conf"
- ;;
- 6)
- $tty $editor "$UserConfigs/Laptops.conf"
- ;;
- 7)
- $tty $editor "$UserConfigs/UserSettings.conf"
- ;;
- 8)
- $tty $editor "$UserConfigs/UserDecorAnimations.conf"
- ;;
- 9)
- $tty $editor "$UserConfigs/WorkspaceRules.conf"
- ;;
- 10)
- $tty $editor "$configs/Settings.conf"
- ;;
- 11)
- $tty $editor "$configs/Keybinds.conf"
- ;;
- *)
- ;;
+ 1) file="$UserConfigs/ENVariables.conf" ;;
+ 2) file="$UserConfigs/WindowRules.conf" ;;
+ 3) file="$UserConfigs/Startup_Apps.conf" ;;
+ 4) file="$UserConfigs/UserKeybinds.conf" ;;
+ 5) file="$UserConfigs/Monitors.conf" ;;
+ 6) file="$UserConfigs/Laptops.conf" ;;
+ 7) file="$UserConfigs/UserSettings.conf" ;;
+ 8) file="$UserConfigs/UserDecorAnimations.conf" ;;
+ 9) file="$UserConfigs/WorkspaceRules.conf" ;;
+ 10) file="$configs/Settings.conf" ;;
+ 11) file="$configs/Keybinds.conf" ;;
+ *) return ;; # Do nothing for invalid choices
esac
+
+ # Open the selected file in the terminal with the text editor
+ $tty -e $edit "$file"
}
-main \ No newline at end of file
+main
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage