From 2ef529de45ed1246bd7ea13622c2d578e98e435e Mon Sep 17 00:00:00 2001 From: Ayush Dumasia Date: Thu, 15 May 2025 15:29:43 +0530 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=94=A7:=20Some=20changes=20in=20t?= =?UTF-8?q?ransperancy=20in=20hyprland,=20waybar=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hypr/hyprland.conf | 12 ++++++------ waybar/scripts/toggle-trans.sh | 12 +++++++++--- zsh/.zshrc | 8 ++++++++ 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 94cece6..ca90385 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -33,7 +33,8 @@ exec-once = [workspace 2] kitty ############################# ### Windows Rules ### ############################# -windowrulev2 = opacity 1.0 1.0, class:Code +windowrule = opacity 1 override 1 override 1.0 override, class:Code +windowrule = opacity 1 override 1 override 1.0 override, class:zen-alpha windowrulev2 = workspace 1, class:zen-alpha windowrulev2 = workspace 1, class:firefox-bin windowrulev2 = workspace 1, class:obsidian @@ -74,12 +75,11 @@ general { decoration { dim_special = 0.2 - rounding = 6 + rounding = 6 #rounding = 20 - active_opacity = 1 + active_opacity = 0.95 inactive_opacity = 0.75 - shadow { enabled = true # range = 3 @@ -87,7 +87,7 @@ decoration { } blur { - enabled = true + enabled = true size = 2 passes = 4 new_optimizations = true @@ -246,7 +246,7 @@ bind = Ctrl_Shift, Tab, exec, $terminal $taskManager #ColorPicker bind = $mainMod, C, exec, $colorpicker -a -bind = $mainMod, I, exec, ~/.config/waybar/scripts/change-wallpaper.sh && hyprpaper +bind = $mainMod, I, exec, ~/.config/waybar/scripts/change-wallpaper.sh && hyprpaper bind = $mainMod, M, exec, ~/.config/rofi/clipboard/launcher.sh diff --git a/waybar/scripts/toggle-trans.sh b/waybar/scripts/toggle-trans.sh index fa9d94f..a35b116 100755 --- a/waybar/scripts/toggle-trans.sh +++ b/waybar/scripts/toggle-trans.sh @@ -8,14 +8,20 @@ if [[ ! -f "$CONFIG_FILE" ]]; then fi CURRENT_OPACITY=$(grep -E "^\s*active_opacity\s*=\s*" "$CONFIG_FILE" | awk -F'=' '{print $2}' | tr -d ' ') +CURRENT_OPACITY_2=$(grep -E "^\s*inactive_opacity\s*=\s*" "$CONFIG_FILE" | awk -F'=' '{print $2}' | tr -d ' ') -if [[ "$CURRENT_OPACITY" == "1" ]]; then - NEW_OPACITY="0.85" -else +if [[ "$CURRENT_OPACITY" == "0.95" ]]; then NEW_OPACITY="1" + INACTIVE_OPACITY="1" + notify-send -i "Transpenecy" "📝 Switched into Note Mode" -t 1000 +else + NEW_OPACITY="0.95" + INACTIVE_OPACITY="0.75" + notify-send -i "Transpenecy" "Switched into Normal Mode" -t 1000 fi sed -i "s/^\s*active_opacity\s*=\s*[0-9.]*/ active_opacity = $NEW_OPACITY/" "$CONFIG_FILE" +sed -i "s/^\s*inactive_opacity\s*=\s*[0-7.]*/ inactive_opacity = $INACTIVE_OPACITY/" "$CONFIG_FILE" echo "Toggled active_opacity to $NEW_OPACITY" diff --git a/zsh/.zshrc b/zsh/.zshrc index 471553e..1a9a2c0 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -100,6 +100,14 @@ commit(){ bash ~/SideProjects/dotsh/gh/commit.sh } +push(){ + git push +} + +ms(){ + touch "$1" && chmod +x "$1" +} + alias kls='kubectl get all' alias jump='nvim $(fzf -m --preview="bat --color=always {}")'