1
0
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:
eoli3n 2019-12-03 17:13:45 +01:00
parent 53b1e15b09
commit afd589e68f
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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