Use sway notification center over mako

main
Ensar Sarajčić 2022-09-20 12:20:50 +02:00
parent 9ad2fb0c9d
commit 92164a525c
4 changed files with 47 additions and 28 deletions

View File

@ -1,5 +1,5 @@
# Start up notification manager
exec --no-startup-id mako
exec swaync
exec kdeconnect-indicator
exec ulauncher --hide-window
exec libinput-gestures-setup start

View File

@ -1,4 +0,0 @@
# Mako control key bindings
bindsym --release control+space exec makoctl dismiss
bindsym --release control+space+period exec makoctl dismiss --all
bindsym --release control+space+o exec makoctl menu wofi -d

View File

@ -0,0 +1,5 @@
# Mako control key bindings
bindsym --release control+space exec swaync-client --hide-latest
bindsym --release control+space+period exec swaync-client --close-all
bindsym --release control+space+o exec swaync-client --open-panel
bindsym --release $mod+v exec swaync-client -t -sw

View File

@ -27,6 +27,7 @@
"modules-center": [
"clock#date",
"clock#time",
"custom/notification"
],
"modules-right": [
"network",
@ -74,28 +75,28 @@
},
"clock#date": {
"interval": 10,
"format": " {:%e %b %Y}", // Icon: calendar-alt
"tooltip-format": "{:%e %B %Y}"
"interval": 10,
"format": " {:%e %b %Y}", // Icon: calendar-alt
"tooltip-format": "{:%e %B %Y}"
},
"cpu": {
"interval": 5,
"format": " {usage}% ({load})", // Icon: microchip
"states": {
"warning": 70,
"critical": 90
"warning": 70,
"critical": 90
}
},
"custom/keyboard-layout": {
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
// Interval set only as a fallback, as the value is updated by signal
"interval": 30,
"format": " {}", // Icon: keyboard
// Signal sent by Sway key binding (~/.config/sway/key-bindings)
"signal": 1, // SIGHUP
"tooltip": false
"exec": "swaymsg -t get_inputs | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
// Interval set only as a fallback, as the value is updated by signal
"interval": 30,
"format": " {}", // Icon: keyboard
// Signal sent by Sway key binding (~/.config/sway/key-bindings)
"signal": 1, // SIGHUP
"tooltip": false
},
"memory": {
@ -160,17 +161,17 @@
},
"temperature": {
"critical-threshold": 80,
"interval": 5,
"format": "{icon} {temperatureC}°C",
"format-icons": [
"", // Icon: temperature-empty
"", // Icon: temperature-quarter
"", // Icon: temperature-half
"", // Icon: temperature-three-quarters
"" // Icon: temperature-full
],
"tooltip": true
"critical-threshold": 80,
"interval": 5,
"format": "{icon} {temperatureC}°C",
"format-icons": [
"", // Icon: temperature-empty
"", // Icon: temperature-quarter
"", // Icon: temperature-half
"", // Icon: temperature-three-quarters
"" // Icon: temperature-full
],
"tooltip": true
},
"tray": {
@ -191,4 +192,21 @@
"format": "",
"on-click": "wlogout"
},
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-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
},
}