updated sway and waybar configs for swaync
This commit is contained in:
parent
fda28e4e0d
commit
a68c513f34
3 changed files with 32 additions and 3 deletions
|
@ -22,7 +22,10 @@ set $term foot
|
||||||
set $menu rofi -show drun
|
set $menu rofi -show drun
|
||||||
|
|
||||||
# start notification deamon
|
# 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
|
### Output configuration
|
||||||
#
|
#
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"modules-left": ["sway/workspaces","sway/scratchpad","sway/window"],
|
"modules-left": ["sway/workspaces","sway/scratchpad","sway/window"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": ["backlight","pulseaudio","network","idle_inhibitor","battery"],
|
"modules-right": ["custom/notification", "backlight","pulseaudio","network","idle_inhibitor","battery"],
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
|
|
||||||
"clock":
|
"clock":
|
||||||
|
@ -128,8 +128,28 @@
|
||||||
"on-scroll-up": "brightnessctl set 1+",
|
"on-scroll-up": "brightnessctl set 1+",
|
||||||
"on-scroll-down": "brightnessctl set 1-",
|
"on-scroll-down": "brightnessctl set 1-",
|
||||||
"scroll-step": 0.5
|
"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
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,12 @@ tooltip label
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-notification
|
||||||
|
{
|
||||||
|
padding: 0 10px;
|
||||||
|
border-right: 1px solid @primary_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
#mode, #clock, #battery
|
#mode, #clock, #battery
|
||||||
{
|
{
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
|
|
Loading…
Reference in a new issue