mirror of
https://github.com/eoli3n/dotfiles
synced 2024-09-24 21:10:50 +02:00
changed default work powermenu
This commit is contained in:
parent
53b1e15b09
commit
afd589e68f
@ -10,8 +10,8 @@
|
||||
state: directory
|
||||
|
||||
- name: Copy powermenu script
|
||||
copy:
|
||||
src: powermenu.sh
|
||||
template:
|
||||
src: powermenu.j2
|
||||
dest: ~/.config/rofi/powermenu.sh
|
||||
mode: 0755
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
{% if ansible_hostname == "work" %}
|
||||
action=$(echo -e "lock\nhibernate\nlogout\nshutdown\nreboot" | rofi -dmenu -p "power:")
|
||||
{% else %}
|
||||
action=$(echo -e "suspend\nlock\nhibernate\nlogout\nshutdown\nreboot" | rofi -dmenu -p "power:")
|
||||
{% endif %}
|
||||
|
||||
if [[ "$action" == "lock" ]]
|
||||
then
|
Loading…
Reference in New Issue
Block a user