From 1096966d889e2bd5e6d8ac129340f6ed64bfc6a1 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 23 Apr 2020 19:51:00 +0200 Subject: [PATCH] updated readme --- README.md | 4 ++-- .../templates/by_host/arch-test/config.j2 | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 roles/sway/templates/by_host/arch-test/config.j2 diff --git a/README.md b/README.md index 8a6cb6c..5a2a400 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ For hosts configured with non-root user User needs to be in sudoers. You need to use -K to ask sudo password, and -l to limit to that host ``` -ansible-playbook install.yml -l host1 -K +ansible-playbook install.yml -l host1 -K --ask-vault-pass ``` #### Extra commands @@ -119,7 +119,7 @@ localhost ansible_connection=local ansible_user=user [desktop] ``` ``` -ansible-playbook install.yml -l localhost -K +ansible-playbook install.yml -l localhost -K --ask-vault-pass ``` ## Previously diff --git a/roles/sway/templates/by_host/arch-test/config.j2 b/roles/sway/templates/by_host/arch-test/config.j2 new file mode 100644 index 0000000..06a03b4 --- /dev/null +++ b/roles/sway/templates/by_host/arch-test/config.j2 @@ -0,0 +1,21 @@ +#INCLUDE#################################################### +# output configuration +set $laptop "eDP-1" +output $laptop pos 1920 0 res 1920x1080 +output $laptop scale 1 + +# lid +bindswitch --reload lid:on output $laptop disable +bindswitch --reload lid:off output $laptop enable + +# dpms +output * dpms on + +# exec startup apps +#exec --no-startup-id swaymsg 'exec xbindkeys &' +#exec --no-startup-id swaymsg 'exec variety &' +exec --no-startup-id swaymsg 'exec firefox' +#exec --no-startup-id swaymsg 'exec firefox -private -kiosk "www.gmail.com"' +exec --no-startup-id swaymsg 'workspace $tag4; exec alacritty -e "screen -rd weechat &"' +exec --no-startup-id swaymsg 'workspace $tag2; exec alacritty -e "ssh-add" && termite' +#INCLUDE####################################################