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)
# 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
allow_tearing = true # false
@@ -121,6 +122,7 @@ general {
decoration {
rounding = 10
rounding_power = 2
border_part_of_window = 0
# Change transparency of focused and unfocused windows
active_opacity = 1.0
@@ -137,7 +139,7 @@ decoration {
blur {
enabled = true
size = 1
passes = 4
passes = 3
ignore_opacity = true
new_optimizations = true
@@ -256,6 +258,16 @@ misc {
enable_anr_dialog = false
}
##############
### CURSOR ###
##############
cursor {
# inactive_timeout = 10
# no_warps = 1
# persistent_warps = 1
warp_on_change_workspace = 1
}
#############
### INPUT ###
@@ -273,7 +285,6 @@ input {
follow_mouse = 2
float_switch_override_focus = 0
# touchpad / canyon
# 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 = blur, waybar
layerrule = ignorealpha 0.6, waybar
layerrule = animation slide top, waybar
layerrule = animation fadeIn, waybar
# Adjustments for certain workspaces
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",
"script-fail-notify": true,
"scripts": {
"example-script": {
"exec": "echo 'Do something...'",
"urgency": "Normal"
},
"example-action-script": {
"exec": "echo 'Do something actionable!'",
"urgency": "Normal",
"run-on": "action"
"notification-sound": {
"exec": "sh $HOME/.config/swaync/scripts/sound.sh",
"app-name": "^(?!.*AyuGram).*$"
}
},
"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": {
"all-outputs": false,
"format": "{icon}",
"icon-size": 25,
"icon-theme": "Retro Art - Red Kolya",
"icon-size": 24,
"icon-theme": "GreyStone",
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
@@ -78,7 +78,8 @@
"s3": 30,
"s4": 50,
"s5": 70
}
},
"on-click": "kitty btop"
},
"memory": {
"format": "{icon}",
@@ -94,7 +95,8 @@
"s4": 70
},
"tooltip-format": "{used:0.1f}GiB used",
"tooltip": true
"tooltip": true,
"on-click": "kitty btop"
},
"temperature": {
"format": "{icon}",
@@ -103,7 +105,8 @@
"󰄰", "󰄰", "󰄰", "󰄰", "󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"
],
"warning-threshold": 60,
"critical-threshold": 80
"critical-threshold": 80,
"on-click": "kitty btop"
},
"mpd": {
"password": "kapuchinamusica",

View File

@@ -117,7 +117,8 @@
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
"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": {
"format-wifi": "{icon}",
@@ -127,7 +128,8 @@
"format-disconnected": "󰤫",
"format-icons": [
"󰤯", "󰤟", "󰤢", "󰤥", "󰤨"
]
],
"on-click": "kitty nmtui-connect"
},
"pulseaudio": {
// "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 text-secondary rgba(86, 86, 86, 0.81);
@define-color bg-opaque rgba(23, 28, 39, 0.8);

View File

@@ -60,7 +60,7 @@ window#waybar.chromium {
#scratchpad {
padding: 0 10px;
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
-------------------------------------------------------------------------- */
.modules-left, .modules-center, .modules-right {
.modules-left, .modules-right {
/* Layout & Box Model */
border: 1px solid @border-color;
border-radius: 12px;
@@ -165,6 +165,17 @@ window#waybar.chromium {
/* 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 {
}
@@ -223,10 +234,16 @@ window#waybar.chromium {
}
#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;
}
#taskbar button.active image {
min-width: 24px;
min-height: 24px;
padding: 0 5px;
}
/* POMODORO STATES */
#custom-pomodoro.work {
color: @accent;