Add swaync widget to waybar
This commit is contained in:
parent
a59f7a1563
commit
b2e206884b
|
@ -90,8 +90,8 @@ in ''
|
|||
bind = SUPER, P, exec, pkill rofi || rofi-pass
|
||||
bind = SUPER SHIFT, P, exec, pkill rofi || rofi-pass --last-used
|
||||
bind = SUPER ALT, P, exec, pkill rofi || rofi-pass --insert
|
||||
bind = SUPER, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t
|
||||
bind = SUPER SHIFT, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -d
|
||||
bind = SUPER, Z, exec, swaync-client -t -sw
|
||||
bind = SUPER SHIFT, Z, exec, swaync-client -d -sw
|
||||
|
||||
# Common program shortcuts
|
||||
bind = SUPER, Space, exec, rofi -replace -show combi
|
||||
|
@ -246,7 +246,7 @@ in ''
|
|||
bindm = SUPER, mouse:272, movewindow
|
||||
bindm = SUPER, mouse:273, resizewindow
|
||||
|
||||
exec-once = ${pkgs.swaynotificationcenter}/bin/swaync
|
||||
exec-once = swaync
|
||||
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
|
||||
exec-once = ${pkgs.dex}/bin/dex --autostart
|
||||
''
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
"cpu"
|
||||
"memory"
|
||||
"clock"
|
||||
"custom/notification"
|
||||
"custom/separator"
|
||||
"tray"
|
||||
];
|
||||
|
@ -158,6 +159,26 @@
|
|||
tooltip-format = "{time}";
|
||||
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
||||
};
|
||||
"custom/notification" = {
|
||||
"tooltip" = false;
|
||||
"format" = "{icon}";
|
||||
"format-icons" = {
|
||||
"notification" = " ";
|
||||
"none" = " ";
|
||||
"dnd-notification" = " ";
|
||||
"dnd-none" = " ";
|
||||
"inhibited-notification" = " ";
|
||||
"inhibited-none" = " ";
|
||||
"dnd-inhibited-notification" = " ";
|
||||
"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;
|
||||
};
|
||||
tray = {
|
||||
icon-size = 16;
|
||||
show-passive-items = true;
|
||||
|
|
|
@ -84,6 +84,7 @@ tooltip {
|
|||
#memory,
|
||||
#temperature,
|
||||
#clock,
|
||||
#custom-notification,
|
||||
#tray {
|
||||
margin: 0px;
|
||||
padding: 1px 5px;
|
||||
|
@ -92,7 +93,8 @@ tooltip {
|
|||
#workspaces,
|
||||
#window,
|
||||
#mpris,
|
||||
#tray {
|
||||
#tray,
|
||||
#custom-separator {
|
||||
color: @text;
|
||||
}
|
||||
|
||||
|
@ -130,3 +132,6 @@ tooltip {
|
|||
#clock {
|
||||
color: @mauve;
|
||||
}
|
||||
#custom-notification {
|
||||
color: @lavender;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
systemPackages = with pkgs; [
|
||||
libsForQt5.polkit-kde-agent
|
||||
swaylock
|
||||
swaynotificationcenter
|
||||
xdg-utils
|
||||
hyprpaper
|
||||
pipewire
|
||||
|
|
Loading…
Reference in a new issue