feat: Add opacity keybinds, replace hyprpaper with swww and update windowrules
This commit is contained in:
@@ -6,7 +6,8 @@ clipse -listen &
|
||||
|
||||
#/home/nathan/AppImages/Fingertip-0.0.4-beta2-linux-X64.AppImage & # This is broken using sane now
|
||||
|
||||
/home/nathan/AppImages/nextcloud_desktop_sync_client.appimage --background &
|
||||
#/home/nathan/AppImages/nextcloud_desktop_sync_client.appimage --background &
|
||||
nextcloud &
|
||||
# discord --start-minimized & Using vesktop now
|
||||
|
||||
sleep 2
|
||||
@@ -17,9 +18,3 @@ kdeconnect-indicator
|
||||
|
||||
# Misc
|
||||
/home/nathan/scripts/mute.sh
|
||||
|
||||
# Fix dolphin file assosiations
|
||||
XDG_MENU_PREFIX=arch- kbuildsycoca6
|
||||
|
||||
|
||||
#sleep 10 && WallRizz -r -n -d ~/.config/backgrounds
|
||||
|
||||
38
.config/hypr/scripts/opacity.sh
Executable file
38
.config/hypr/scripts/opacity.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if arg is passed
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <opacity>"
|
||||
echo "Example: $0 0.8"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# Validate opacity value (0.0 to 1.0 or -1)
|
||||
if ! [[ "$1" =~ ^(-1|0(\.[0-9]+)?|1(\.0)?)$ ]]; then
|
||||
echo "Error: Opacity must be a number between 0 and 1 or -1 for default."
|
||||
exit 1
|
||||
fi
|
||||
# Get the opacity value
|
||||
opacity="$1"
|
||||
|
||||
# Clear existing opacity settings
|
||||
hyprctl dispatch tagwindow -- -opacity:0.1
|
||||
hyprctl dispatch tagwindow -- -opacity:0.2
|
||||
hyprctl dispatch tagwindow -- -opacity:0.3
|
||||
hyprctl dispatch tagwindow -- -opacity:0.4
|
||||
hyprctl dispatch tagwindow -- -opacity:0.5
|
||||
hyprctl dispatch tagwindow -- -opacity:0.6
|
||||
hyprctl dispatch tagwindow -- -opacity:0.7
|
||||
hyprctl dispatch tagwindow -- -opacity:0.8
|
||||
hyprctl dispatch tagwindow -- -opacity:0.9
|
||||
hyprctl dispatch tagwindow -- -opacity:1
|
||||
|
||||
# Exit if opacity is -1 (default)
|
||||
if [ "$opacity" == "-1" ]; then
|
||||
hyprctl notify 1 1000 0 "Resetting opacity to default"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
hyprctl notify 1 1000 0 "Setting opacity to $opacity"
|
||||
hyprctl dispatch tagwindow opacity:"$opacity"
|
||||
Reference in New Issue
Block a user