Switch to mako for notifications

This commit is contained in:
David Heinemeier Hansson
2025-06-22 20:48:38 -04:00
parent c5f1982274
commit d43639df15
18 changed files with 68 additions and 194 deletions

View File

@ -36,19 +36,14 @@ ln -nsf "$NEW_THEME" "$HOME/.config/omarchy/current/theme"
touch "$HOME/.config/alacritty/alacritty.toml" touch "$HOME/.config/alacritty/alacritty.toml"
# Restart for new theme # Restart for new theme
pkill swaync && setsid swaync
pkill -SIGUSR2 waybar pkill -SIGUSR2 waybar
makoctl reload
hyprctl reload hyprctl reload
# Set new background # Set new background
ln -nsf $(find "$HOME/.config/omarchy/current/backgrounds/" -type f | head -n 1) "$HOME/.config/omarchy/current/background" ln -nsf $(find "$HOME/.config/omarchy/current/backgrounds/" -type f | head -n 1) "$HOME/.config/omarchy/current/background"
pkill -x swaybg && setsid swaybg -i "$HOME/.config/omarchy/current/background" -m fill pkill -x swaybg
setsid swaybg -i "$HOME/.config/omarchy/current/background" -m fill
# Wait for swaync to get started properly again
while ! pgrep -x swaync >/dev/null; do
sleep 0.05
done
sleep 0.5
# Notify of the new theme # Notify of the new theme
notify-send "Theme changed to $NEW_THEME_NAME" -t 2000 -e notify-send "Theme changed to $NEW_THEME_NAME" -t 2000

View File

@ -4,7 +4,7 @@
source = ~/.config/hypr/hyprland-monitors.conf source = ~/.config/hypr/hyprland-monitors.conf
# Autostart necessary processes # Autostart necessary processes
exec-once = hypridle & swaync & waybar & fcitx5 exec-once = hypridle & mako & waybar & fcitx5
exec-once = wl-clip-persist --clipboard regular & clipse -listen exec-once = wl-clip-persist --clipboard regular & clipse -listen
exec-once = ~/.local/share/omarchy/bin/swaybg-next exec-once = ~/.local/share/omarchy/bin/swaybg-next
exec-once = dropbox-cli start exec-once = dropbox-cli start

View File

@ -1,93 +0,0 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "center",
"positionY": "top",
"layer": "overlay",
"control-center-layer": "top",
"layer-shell": true,
"layer-shell-cover-screen": true,
"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": 32,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"fit-to-screen": true,
"relative-timestamps": 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,
"text-empty": "No Notifications",
"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-visibility": {
"example-name": {
"state": "muted",
"urgency": "Low",
"app-name": "Spotify"
}
},
"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"
},
"label": {
"max-lines": 5,
"text": "Label Text"
},
"mpris": {
"image-size": 96,
"image-radius": 12,
"blacklist": []
},
"buttons-grid": {
"actions": [
{
"label": "直",
"type": "toggle",
"active": true,
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'",
"update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'"
}
]
}
}
}

View File

@ -1,30 +0,0 @@
* {
all: unset;
font-family: Liberation Sans;
font-size: 14px;
}
.notification {
border-radius: 0px;
padding: 14px;
color: #cdd6f4;
background-color: rgba(26, 27, 38, 0.95);
border: 2px solid #313244;
margin: 20px;
}
.icon,
.app-icon,
.image {
margin-right: 8px;
}
.title {
font-weight: bold;
}
.body {
color: #a6adc8;
}
@import "../omarchy/current/theme/swaync.css";

View File

@ -1,6 +1,6 @@
yay -S --noconfirm --needed \ yay -S --noconfirm --needed \
hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils \ hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils \
wofi waybar swaync swaybg \ wofi waybar mako swaybg \
xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gnome xdg-desktop-portal-hyprland xdg-desktop-portal xdg-desktop-portal-gnome
# Start Hyprland on first session # Start Hyprland on first session

View File

@ -19,3 +19,5 @@ ln -snf ~/.config/omarchy/backgrounds/tokyo-night ~/.config/omarchy/current/back
ln -snf ~/.config/omarchy/current/theme/wofi.css ~/.config/wofi/style.css ln -snf ~/.config/omarchy/current/theme/wofi.css ~/.config/wofi/style.css
ln -snf ~/.config/omarchy/current/theme/neovim.lua ~/.config/nvim/lua/plugins/theme.lua ln -snf ~/.config/omarchy/current/theme/neovim.lua ~/.config/nvim/lua/plugins/theme.lua
ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current.theme ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current.theme
mkdir -p ~/.config/mako
ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config

View File

@ -0,0 +1,10 @@
text-color=#cad3f5
border-color=#8aadf4
background-color=#24273a
width=300
height=110
padding=10
border-size=2
font=CaskaydiaMono Nerd Font 10
anchor=top-right
default-timeout=5000

View File

@ -1,10 +0,0 @@
.notification {
color: #cdd6f4;
background-color: rgba(30, 30, 46, 0.95);
border: 2px solid #313244;
}
.body {
color: #a6adc8;
}

View File

@ -0,0 +1,10 @@
text-color=#d3c6aa
border-color=#a7c080
background-color=#2d353b
width=300
height=110
padding=10
border-size=2
font=CaskaydiaMono Nerd Font 10
anchor=top-right
default-timeout=5000

View File

@ -1,10 +0,0 @@
.notification {
color: #d3c6aa;
background-color: rgba(45, 53, 59, 0.95);
border: 2px solid #475258;
}
.body {
color: #a7c080;
}

10
themes/gruvbox/mako.ini Normal file
View File

@ -0,0 +1,10 @@
text-color=#d4be98
border-color=#a9b665
background-color=#282828
width=300
height=110
padding=10
border-size=2
font=CaskaydiaMono Nerd Font 10
anchor=top-right
default-timeout=5000

View File

@ -1,10 +0,0 @@
.notification {
color: #d4be98;
background-color: rgba(40, 40, 40, 0.95);
border: 2px solid #3c3836;
}
.body {
color: #a9b665;
}

10
themes/kanagawa/mako.ini Normal file
View File

@ -0,0 +1,10 @@
text-color=#dcd7ba
border-color=#7e9cd8
background-color=#1f1f28
width=300
height=110
padding=10
border-size=2
font=CaskaydiaMono Nerd Font 10
anchor=top-right
default-timeout=5000

View File

@ -1,10 +0,0 @@
.notification {
color: #dcd7ba;
background-color: rgba(31, 31, 40, 0.95);
border: 2px solid #2d4f67;
}
.body {
color: #76946a;
}

10
themes/nord/mako.ini Normal file
View File

@ -0,0 +1,10 @@
text-color=#d8dee9
border-color=#81a1c1
background-color=#2e3440
width=300
height=110
padding=10
border-size=2
font=CaskaydiaMono Nerd Font 10
anchor=top-right
default-timeout=5000

View File

@ -1,10 +0,0 @@
.notification {
color: #d8dee9;
background-color: rgba(46, 52, 64, 0.95);
border: 2px solid #4c566a;
}
.body {
color: #a3be8c;
}

View File

@ -0,0 +1,10 @@
text-color=#a9b1d6
border-color=#7aa2f7
background-color=#1a1b26
width=300
height=110
padding=10
border-size=2
font=CaskaydiaMono Nerd Font 10
anchor=top-right
default-timeout=5000

View File

@ -1,10 +0,0 @@
.notification {
color: #cdd6f4;
background-color: rgba(26, 27, 38, 0.95);
border: 2px solid #313244;
}
.body {
color: #a6adc8;
}