refactor 🔨: MICS
This commit is contained in:
parent
e14e58048e
commit
bb29250c8c
4 changed files with 10 additions and 16 deletions
|
@ -37,7 +37,7 @@ windowrulev2 = workspace 1, class:zen-alpha
|
||||||
windowrulev2 = workspace 1, class:firefox-bin
|
windowrulev2 = workspace 1, class:firefox-bin
|
||||||
windowrulev2 = workspace 3, class:Code
|
windowrulev2 = workspace 3, class:Code
|
||||||
windowrulev2 = workspace 1, class:obsidian
|
windowrulev2 = workspace 1, class:obsidian
|
||||||
windowrulev2 = workspace 9, class:Docker Desktop
|
windowrulev2 = workspace 2, class:Docker Desktop
|
||||||
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
|
@ -55,7 +55,7 @@ general {
|
||||||
gaps_in = 3
|
gaps_in = 3
|
||||||
gaps_out = 6
|
gaps_out = 6
|
||||||
|
|
||||||
border_size = 2
|
border_size = 0
|
||||||
|
|
||||||
col.active_border = rgb(8aadf4) rgb(24273A) rgb(24273A) rgb(8aadf4) 45deg
|
col.active_border = rgb(8aadf4) rgb(24273A) rgb(24273A) rgb(8aadf4) 45deg
|
||||||
col.inactive_border = rgb(24273A) rgb(24273A) rgb(24273A) rgb(27273A) 45deg
|
col.inactive_border = rgb(24273A) rgb(24273A) rgb(24273A) rgb(27273A) 45deg
|
||||||
|
@ -74,7 +74,7 @@ decoration {
|
||||||
dim_special = 0.2
|
dim_special = 0.2
|
||||||
rounding = 6
|
rounding = 6
|
||||||
|
|
||||||
active_opacity = 1
|
active_opacity = 0.85
|
||||||
inactive_opacity = 0.75
|
inactive_opacity = 0.75
|
||||||
|
|
||||||
shadow {
|
shadow {
|
||||||
|
@ -85,10 +85,10 @@ active_opacity = 1
|
||||||
|
|
||||||
blur {
|
blur {
|
||||||
enabled = true
|
enabled = true
|
||||||
size = 3
|
size = 2
|
||||||
passes = 3
|
passes = 4
|
||||||
new_optimizations = true
|
new_optimizations = true
|
||||||
vibrancy = 0.1696
|
vibrancy = 0.3000
|
||||||
ignore_opacity = true
|
ignore_opacity = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
|
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = /home/arcadian/Pictures/Wallpaper/529ilqybmlwe1.png
|
path = /home/arcadian/Pictures/Wallpaper/FullSize.png
|
||||||
# only png supported for now
|
# only png supported for now
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
include current-theme.conf
|
include current-theme.conf
|
||||||
|
|
||||||
font_size 10.0
|
font_size 12.0
|
||||||
enable_ligature true
|
enable_ligature true
|
||||||
|
|
||||||
confirm_os_window_close 0
|
confirm_os_window_close 0
|
||||||
|
|
|
@ -2,27 +2,21 @@
|
||||||
|
|
||||||
CONFIG_FILE="$HOME/.config/hypr/hyprland.conf"
|
CONFIG_FILE="$HOME/.config/hypr/hyprland.conf"
|
||||||
|
|
||||||
# Check if config file exists
|
|
||||||
if [[ ! -f "$CONFIG_FILE" ]]; then
|
if [[ ! -f "$CONFIG_FILE" ]]; then
|
||||||
echo "Hyprland config file not found at $CONFIG_FILE"
|
echo "Hyprland config file not found at $CONFIG_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the current opacity value
|
|
||||||
CURRENT_OPACITY=$(grep -E "^\s*active_opacity\s*=\s*" "$CONFIG_FILE" | awk -F'=' '{print $2}' | tr -d ' ')
|
CURRENT_OPACITY=$(grep -E "^\s*active_opacity\s*=\s*" "$CONFIG_FILE" | awk -F'=' '{print $2}' | tr -d ' ')
|
||||||
|
|
||||||
# Determine the new opacity value
|
|
||||||
if [[ "$CURRENT_OPACITY" == "1" ]]; then
|
if [[ "$CURRENT_OPACITY" == "1" ]]; then
|
||||||
NEW_OPACITY="0.95"
|
NEW_OPACITY="0.85"
|
||||||
else
|
else
|
||||||
NEW_OPACITY="1"
|
NEW_OPACITY="1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update the config file
|
sed -i "s/^\s*active_opacity\s*=\s*[0-9.]*/ active_opacity = $NEW_OPACITY/" "$CONFIG_FILE"
|
||||||
sed -i "s/^\s*active_opacity\s*=\s*[0-9.]*/active_opacity = $NEW_OPACITY/" "$CONFIG_FILE"
|
|
||||||
|
|
||||||
echo "Toggled active_opacity to $NEW_OPACITY"
|
echo "Toggled active_opacity to $NEW_OPACITY"
|
||||||
|
|
||||||
# Reload Hyprland config
|
|
||||||
hyprctl reload
|
hyprctl reload
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue