Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .chezmoidata/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ packages:
- nvimpager
gui:
- swayosd
- swaync
- uwsm
wsl:
- wsl-open
Expand Down
2 changes: 1 addition & 1 deletion dot_config/hypr/autostart.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK

exec-once = ~/.config/hypr/scripts/idle.sh
exec-once = waybar
exec-once = dunst
exec-once = swaync

exec-once = 1password --silent # run this in tray for ssh-agent
exec-once = gnome-keyring-daemon --start --components=secrets
Expand Down
3 changes: 3 additions & 0 deletions dot_config/hypr/keybinds.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ bind = $mainMod SHIFT, L, exec, wlogout
# Reload the config
bind = $mainMod SHIFT, W, exec, ~/.config/hypr/scripts/waybar.sh

# Toggle notification center
bind = $mainMod, N, exec, swaync-client -t -sw

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
Expand Down
3 changes: 3 additions & 0 deletions dot_config/hypr/windowrules.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.

windowrulev2 = float,class:^(swaync-control-center)$
windowrulev2 = layer overlay,class:^(swaync-notification-window)$

windowrulev2 = float,class:^(1Password)$,title:(Lock Screen)
windowrulev2 = size 25% 25%,class:^(1Password)$,title:(Lock Screen)
windowrulev2 = center,class:^(1Password)$,title:(Lock Screen)
Expand Down
50 changes: 50 additions & 0 deletions dot_config/swaync/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"layer": "overlay",
"cssPriority": "application",
"control-center-margin-top": 0,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-icon-size": 64,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"fit-to-screen": true,
"control-center-width": 500,
"control-center-height": 600,
"notification-window-width": 500,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": true,
"script-fail-notify": true,
"widgets": [
"inhibitors",
"title",
"dnd",
"notifications"
],
"widget-config": {
"inhibitors": {
"text": "Inhibitors",
"button-text": "Clear All",
"clear-all-button": true
},
"title": {
"text": "Notifications",
"clear-all-button": true,
"button-text": "Clear All"
},
"dnd": {
"text": "Do Not Disturb"
}
}
}
1 change: 1 addition & 0 deletions dot_config/swaync/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Empty - uses system default styling */
20 changes: 20 additions & 0 deletions dot_config/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"battery",
"battery#bat2",
"clock",
"custom/notification-bell",
"tray"
],
// Modules configuration
Expand Down Expand Up @@ -213,5 +214,24 @@
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/notification-bell": {
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
}
}
1 change: 1 addition & 0 deletions dot_config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ button:hover {
#pulseaudio,
#wireplumber,
#custom-media,
#custom-notification-bell,
#tray,
#mode,
#idle_inhibitor,
Expand Down