1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00

lock screen

This commit is contained in:
Lilian Roller 2019-06-24 15:33:51 +02:00
parent 1ab6e06918
commit fb9854e79b
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
7 changed files with 25 additions and 3 deletions

View file

@ -37,11 +37,14 @@ Including an example of how to use your role (for instance, with variables passe
*`vars/main.yml`*
```bash
# background image
i3_desktop_background: "~/Bilder/wallpaper.jpg"
# additional programms you need
i3_packages_extra:
- ranger
# you want additional keybindings?
i3_keybindings_extra:
- keybinding:
name: Volume (mute/unmute)
@ -52,6 +55,7 @@ Including an example of how to use your role (for instance, with variables passe
key: $mod+Shift+F12
exec: --no-startup-id amixer sset Master 40%
# how your monitors are configured
i3_monitors:
- monitor:
id: 1
@ -68,6 +72,7 @@ Including an example of how to use your role (for instance, with variables passe
rotate: "normal"
workspaces: [7,8,9,0]
# startup applications
i3_applications:
- application:
class: "Firefox"
@ -80,4 +85,6 @@ Including an example of how to use your role (for instance, with variables passe
workspace: 7
on_startup: true
# lock your screen after 3 hours
enable_lock_after_time: true
```

View file

@ -41,3 +41,5 @@ submodules_versioncheck: true
i3wm_copy_wallpapers: true
disable_screensaver: true
enable_lock_after_time: false
lock_after_time: '200' # minutes to wait until your screen is locked

View file

@ -153,7 +153,7 @@ bar {
}
# Setup Monitors
exec sleep 2 && xrandr {% for monitor in i3_monitors %} --output {{ monitor.output }} --mode {{ monitor.mode }} --pos {{ monitor.pos }} --rotate {{ monitor.rotate }} {% endfor %}
exec_always sleep 1 && xrandr {% for monitor in i3_monitors %} --output {{ monitor.output }} --mode {{ monitor.mode }} --pos {{ monitor.pos }} --rotate {{ monitor.rotate }} {% endfor %}
# Background
{% if i3_desktop_background is defined %}
@ -162,11 +162,15 @@ exec_always feh --bg-scale {{ i3_desktop_background }}
{% if disable_screensaver | bool %}
# Disable screensaver by default
exec xset s off
exec_always xset s off
exec xset -dpms
{% endif %}
exec compton
{% if enable_lock_after_time | bool %}
exec xautolock -time {{ lock_after_time }} -locker 'scrot /tmp/screen_locked.png; mogrify -scale 10% -scale 1000% /tmp/screen_locked.png; i3lock -i /tmp/screen_locked.png'
{% endif %}
# Start Default Applications
{% for application in i3_applications if application.on_startup %}
exec sleep 3 && {{ application.name }}

View file

@ -7,3 +7,6 @@ __i3_packages:
- tmux
- terminator
- i3lock
- xautolock
- scrot
- imagemagick

View file

@ -7,3 +7,6 @@ __i3_packages:
- tmux
- terminator
- i3lock
- xautolock
- scrot
- imagemagick

View file

@ -7,3 +7,6 @@ __i3_packages:
- terminator
- i3lock
- dmenu
- xautolock
- scrot
- imagemagick

View file

@ -33,5 +33,5 @@ __i3_workspaces:
user: "{{ i3wm_user }}"
playbook_version_number: 9006 # should be over ninethousand
playbook_version_number: 9007 # should be over ninethousand
playbook_version_path: '/etc/ansible-version/role-i3wm_chaos-bodensee_github.com.version'