Allow user to provide a different configuration per host
This commit is contained in:
parent
82d5350ded
commit
d8113f6228
10 changed files with 238 additions and 30 deletions
|
@ -28,15 +28,11 @@
|
|||
"reverse-scrolling": true,
|
||||
"on-click": "swaymsg exec amixer -q set Master toggle"
|
||||
},
|
||||
{% if isNotebook | bool %}
|
||||
{% if hostvars[ansible_hostname]['mobile_platform'] | bool %}
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
{% endif %}
|
||||
"custom/power":{
|
||||
"format":" ",
|
||||
"on-click":"swaynag -t warning -m 'Power Menu Options' -b 'Logout' 'swaymsg exit' -b 'Lock' 'swaymsg exec swaylock -f' -b 'Suspend' 'swaymsg exec sudo systemctl suspend && swaylock -f' -b 'Reboot' 'swaymsg exec sudo systemctl reboot' -b 'Shutdown' 'swaymsg exec sudo systemctl poweroff'"
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue