Include clipboard management in waybar

This commit is contained in:
Maximilian Friedersdorff 2025-06-06 13:02:34 +01:00
parent e932a1dd40
commit 7a77ab8abb
2 changed files with 15 additions and 1 deletions

View file

@ -20,6 +20,7 @@
],
"modules-right": [
"clock",
"custom/cliphist",
"custom/dnd",
"privacy",
"idle_inhibitor",
@ -230,5 +231,13 @@
"format": "⏻",
"tooltip": false,
"on-click": "$HOME/.config/sway/power-menu"
},
"custom/cliphist": {
"format": " {text}",
"interval": 30,
"exec": "cliphist list | wc -l",
"on-click": "cliphist list | wofi -S dmenu | cliphist decode | wl-copy",
"on-click-middle": "cliphist list | wofi -S dmenu | cliphist delete",
"on-click-right": "cliphist wipe"
}
}

View file

@ -106,7 +106,8 @@ button:hover {
#scratchpad,
#custom-power,
#language,
#custom-dnd
#custom-dnd,
#custom-cliphist
{
padding: 0 10px;
background-color: @base03;
@ -185,6 +186,10 @@ label:focus {
border-bottom: 3px solid @cyan;
}
#custom-cliphist {
border-bottom: 3px solid @magenta;
}
#memory {
border-bottom: 3px solid @magenta;
}