[waybar] feat: Add keyboard-layout toggle
This commit is contained in:
parent
5fdf52e0dc
commit
0435852106
2 changed files with 19 additions and 6 deletions
|
@ -30,9 +30,9 @@
|
|||
"name": "keep",
|
||||
"position": "top",
|
||||
"height": 25,
|
||||
"modules-left": ["sway/mode", "keyboard-state"],
|
||||
"modules-left": ["sway/mode"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["privacy"],
|
||||
"modules-right": ["privacy", "keyboard-state"],
|
||||
|
||||
"include": [
|
||||
// Import modules (!)
|
||||
|
|
|
@ -48,18 +48,31 @@
|
|||
},
|
||||
|
||||
"custom/light-dark-toggle": {
|
||||
"exec": "bash ${SCRIPT_DIR}/toggle-light-dark.sh -g",
|
||||
"exec-on-event": true,
|
||||
"on-click": "bash ${SCRIPT_DIR}/toggle-light-dark.sh",
|
||||
"tooltip-format": "Toggle between light and dark mode",
|
||||
"format": "\uf042 ",
|
||||
// "format": "\uf042 ",
|
||||
"format": "{icon}",
|
||||
"format-icons": [
|
||||
"\uf185",
|
||||
"\uf111"
|
||||
],
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Toggle between light and dark mode"
|
||||
},
|
||||
|
||||
"custom/keyboard-switch": {
|
||||
"format": "\uf11c",
|
||||
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
|
||||
"tooltip-format": "Toggle keyboard layouts",
|
||||
"tooltip": true
|
||||
},
|
||||
|
||||
"custom/night-light-toggle": {
|
||||
"on-click": "bash ${SCRIPT_DIR}/sunset.sh",
|
||||
"tooltip-format": "Toggle night-light on or off",
|
||||
"format": "\uf0eb ",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Toggle night-light on or off",
|
||||
"tooltip-format": "Toggle night-light on or off"
|
||||
},
|
||||
|
||||
"custom/scratchpad-indicator": {
|
||||
|
|
Loading…
Reference in a new issue