Compare commits

..

2 Commits

Author SHA1 Message Date
b453f9efd7 feat: random notification sounds 2025-12-25 02:10:43 +03:00
deace16b64 feat: improved taskbar;
refactor: hyprland blur
2025-12-25 02:10:29 +03:00
10 changed files with 84 additions and 29 deletions

View File

@@ -102,7 +102,8 @@ general {
col.inactive_border = rgba(4B535Bff) # rgba(595959aa) col.inactive_border = rgba(4B535Bff) # rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps # Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false resize_on_border = true
hover_icon_on_border = true
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = true # false allow_tearing = true # false
@@ -121,6 +122,7 @@ general {
decoration { decoration {
rounding = 10 rounding = 10
rounding_power = 2 rounding_power = 2
border_part_of_window = 0
# Change transparency of focused and unfocused windows # Change transparency of focused and unfocused windows
active_opacity = 1.0 active_opacity = 1.0
@@ -137,7 +139,7 @@ decoration {
blur { blur {
enabled = true enabled = true
size = 1 size = 1
passes = 4 passes = 3
ignore_opacity = true ignore_opacity = true
new_optimizations = true new_optimizations = true
@@ -256,6 +258,16 @@ misc {
enable_anr_dialog = false enable_anr_dialog = false
} }
##############
### CURSOR ###
##############
cursor {
# inactive_timeout = 10
# no_warps = 1
# persistent_warps = 1
warp_on_change_workspace = 1
}
############# #############
### INPUT ### ### INPUT ###
@@ -273,7 +285,6 @@ input {
follow_mouse = 2 follow_mouse = 2
float_switch_override_focus = 0 float_switch_override_focus = 0
# touchpad / canyon # touchpad / canyon
# sensitivity = 0.2 # -1.0 - 1.0, 0 means no modification. # sensitivity = 0.2 # -1.0 - 1.0, 0 means no modification.
@@ -703,7 +714,7 @@ layerrule = animation slideIn right, swaync-notification-window
layerrule = ignorezero, waybar layerrule = ignorezero, waybar
layerrule = blur, waybar layerrule = blur, waybar
layerrule = ignorealpha 0.6, waybar layerrule = ignorealpha 0.6, waybar
layerrule = animation slide top, waybar layerrule = animation fadeIn, waybar
# Adjustments for certain workspaces # Adjustments for certain workspaces
workspace = special:magic, gapsin:20, gapsout:50, shadow:false workspace = special:magic, gapsin:20, gapsout:50, shadow:false

View File

@@ -1,7 +0,0 @@
#!/bin/sh
if pgrep -x waybar > /dev/null; then
pkill -x waybar
else
GTK_THEME="Simply_Circles_Dark" waybar -c "$HOME/.config/waybar/config_top.jsonc" -s "$HOME/.config/waybar/style_top.css" &
fi

View File

@@ -33,14 +33,9 @@
"text-empty": "No nothing", "text-empty": "No nothing",
"script-fail-notify": true, "script-fail-notify": true,
"scripts": { "scripts": {
"example-script": { "notification-sound": {
"exec": "echo 'Do something...'", "exec": "sh $HOME/.config/swaync/scripts/sound.sh",
"urgency": "Normal" "app-name": "^(?!.*AyuGram).*$"
},
"example-action-script": {
"exec": "echo 'Do something actionable!'",
"urgency": "Normal",
"run-on": "action"
} }
}, },
"notification-visibility": { "notification-visibility": {

33
swaync/scripts/sound.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
if [ $(swaync-client --get-dnd) == "true" ]; then
echo "Do Not Disturb is on, skipping sound"
exit 0
fi
# Directory containing your notification sounds
SOUND_DIR="$HOME/.config/swaync/scripts/sounds"
# Enable nullglob to prevent literal interpretation when no files match
shopt -s nullglob
# Get a list of audio files in the directory (simpler approach)
SOUND_FILES=()
for ext in wav mp3 ogg flac; do
SOUND_FILES+=("$SOUND_DIR"/*."$ext")
done
# Check if any sound files exist
if [ ${#SOUND_FILES[@]} -eq 0 ]; then
echo "No sound files found in $SOUND_DIR"
exit 0 # Exit with success so notifications still work
fi
# Select a random sound file
RANDOM_INDEX=$((RANDOM % ${#SOUND_FILES[@]}))
RANDOM_SOUND="${SOUND_FILES[$RANDOM_INDEX]}"
# Play the random sound
play -v 0.5 "$RANDOM_SOUND" 2>/dev/null || {
echo "Failed to play $RANDOM_SOUND"
}

Binary file not shown.

Binary file not shown.

View File

@@ -47,8 +47,8 @@
"wlr/taskbar": { "wlr/taskbar": {
"all-outputs": false, "all-outputs": false,
"format": "{icon}", "format": "{icon}",
"icon-size": 25, "icon-size": 24,
"icon-theme": "Retro Art - Red Kolya", "icon-theme": "GreyStone",
"tooltip-format": "{title}", "tooltip-format": "{title}",
"on-click": "activate", "on-click": "activate",
"on-click-middle": "close", "on-click-middle": "close",
@@ -78,7 +78,8 @@
"s3": 30, "s3": 30,
"s4": 50, "s4": 50,
"s5": 70 "s5": 70
} },
"on-click": "kitty btop"
}, },
"memory": { "memory": {
"format": "{icon}", "format": "{icon}",
@@ -94,7 +95,8 @@
"s4": 70 "s4": 70
}, },
"tooltip-format": "{used:0.1f}GiB used", "tooltip-format": "{used:0.1f}GiB used",
"tooltip": true "tooltip": true,
"on-click": "kitty btop"
}, },
"temperature": { "temperature": {
"format": "{icon}", "format": "{icon}",
@@ -103,7 +105,8 @@
"󰄰", "󰄰", "󰄰", "󰄰", "󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥" "󰄰", "󰄰", "󰄰", "󰄰", "󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
], ],
"warning-threshold": 60, "warning-threshold": 60,
"critical-threshold": 80 "critical-threshold": 80,
"on-click": "kitty btop"
}, },
"mpd": { "mpd": {
"password": "kapuchinamusica", "password": "kapuchinamusica",

View File

@@ -117,7 +117,8 @@
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module
"format-icons": ["󰂎", "", "", "󰁽", "", "󰁿", "", "󰂁", "󰂂"], "format-icons": ["󰂎", "", "", "󰁽", "", "󰁿", "", "󰂁", "󰂂"],
"tooltip-format": "{capacity}%, draws {power:2.1f}W, time is {time}" "tooltip-format": "{capacity}%, draws {power:2.1f}W, time is {time}",
"on-click": "gnome-power-statistics"
}, },
"network": { "network": {
"format-wifi": "{icon}", "format-wifi": "{icon}",
@@ -127,7 +128,8 @@
"format-disconnected": "󰤫", "format-disconnected": "󰤫",
"format-icons": [ "format-icons": [
"󰤯", "󰤟", "󰤢", "󰤥", "󰤨" "󰤯", "󰤟", "󰤢", "󰤥", "󰤨"
] ],
"on-click": "kitty nmtui-connect"
}, },
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float

View File

@@ -1,3 +1,4 @@
/* Normal view */
@define-color bg-panel rgba(28, 28, 28, 0.81); @define-color bg-panel rgba(28, 28, 28, 0.81);
@define-color text-secondary rgba(86, 86, 86, 0.81); @define-color text-secondary rgba(86, 86, 86, 0.81);
@define-color bg-opaque rgba(23, 28, 39, 0.8); @define-color bg-opaque rgba(23, 28, 39, 0.8);

View File

@@ -60,7 +60,7 @@ window#waybar.chromium {
#scratchpad { #scratchpad {
padding: 0 10px; padding: 0 10px;
color: @text-primary; color: @text-primary;
transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease; transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease, padding 0.3s ease;
} }
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
@@ -151,7 +151,7 @@ window#waybar.chromium {
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
SIDE PANEL GROUPS SIDE PANEL GROUPS
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
.modules-left, .modules-center, .modules-right { .modules-left, .modules-right {
/* Layout & Box Model */ /* Layout & Box Model */
border: 1px solid @border-color; border: 1px solid @border-color;
border-radius: 12px; border-radius: 12px;
@@ -165,6 +165,17 @@ window#waybar.chromium {
/* transition-duration: 0.5s; */ /* transition-duration: 0.5s; */
} }
.modules-center {
background: linear-gradient(to right,
alpha(#000000, 0) 0%,
alpha(@bg-panel, 1) 20%,
alpha(@bg-panel, 1) 80%,
alpha(#000000, 0) 100%
);
padding: 0 20px;
}
.modules-left { .modules-left {
} }
@@ -223,10 +234,16 @@ window#waybar.chromium {
} }
#taskbar button.active { #taskbar button.active {
background: radial-gradient(circle, alpha(@accent, 1) 0%, alpha(@accent, 1) 50%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 25, 0) 100%); background: radial-gradient(circle, alpha(@accent, 1) 0%, alpha(@accent, 1) 30%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%);
transition: color 0.3s, box-shadow 0.3s, background 0.3s; transition: color 0.3s, box-shadow 0.3s, background 0.3s;
} }
#taskbar button.active image {
min-width: 24px;
min-height: 24px;
padding: 0 5px;
}
/* POMODORO STATES */ /* POMODORO STATES */
#custom-pomodoro.work { #custom-pomodoro.work {
color: @accent; color: @accent;