Skip to content

Commit

Permalink
Merge pull request #83 from FilippoBonazziSUSE/swaync_integration
Browse files Browse the repository at this point in the history
Add swaync configuration in waybar and hotkey
  • Loading branch information
denisok authored Jan 16, 2023
2 parents 9243985 + b8ff17f commit 8883a43
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .config/sway/config.d/50-openSUSE.conf
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ mode $mode_system {
unbindsym $mod+Shift+e
bindsym $mod+Shift+e mode $mode_system

# Toggle notification bar
set $toggle_notification "swaync-client -t -sw"
bindsym $mod+Shift+n exec $toggle_notification

# openSUSE theme
default_border pixel 2
Expand Down
18 changes: 17 additions & 1 deletion .config/waybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,21 @@
"exec-if": "exit 0",
"on-click": "swaymsg 'scratchpad show'",
"on-click-right": "swaymsg 'move scratchpad'"
}
},
"custom/notification": {
"tooltip": true,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"none": " ",
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></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
}
}

0 comments on commit 8883a43

Please sign in to comment.