updated sway and waybar configs for swaync

This commit is contained in:
Mike G 2023-11-11 07:57:52 -05:00
parent fda28e4e0d
commit a68c513f34
3 changed files with 32 additions and 3 deletions

View file

@ -22,7 +22,10 @@ set $term foot
set $menu rofi -show drun
# start notification deamon
exec mako
exec swaync
# add keybinding to toggle swaync notification center
bindsym $mod+Shift+n exec swaync-client -t -sw
### Output configuration
#

View file

@ -2,7 +2,7 @@
"layer": "top",
"modules-left": ["sway/workspaces","sway/scratchpad","sway/window"],
"modules-center": ["clock"],
"modules-right": ["backlight","pulseaudio","network","idle_inhibitor","battery"],
"modules-right": ["custom/notification", "backlight","pulseaudio","network","idle_inhibitor","battery"],
"spacing": 0,
"clock":
@ -128,8 +128,28 @@
"on-scroll-up": "brightnessctl set 1+",
"on-scroll-down": "brightnessctl set 1-",
"scroll-step": 0.5
}
},
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notifications": "<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>",
"inihibited-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
}
}

View file

@ -72,6 +72,12 @@ tooltip label
padding: 0 10px;
}
#custom-notification
{
padding: 0 10px;
border-right: 1px solid @primary_fg_color;
}
#mode, #clock, #battery
{
padding: 0px 10px;