feat: configure screenshots

This commit is contained in:
Ivan R. 2024-04-15 20:46:12 +05:00
parent a9a99e1c7c
commit b0fdee5f17
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
2 changed files with 14 additions and 1 deletions

View file

@ -123,3 +123,8 @@ bindsym XF86AudioRaiseVolume exec wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindsym Print exec grim - | wl-copy
bindsym Shift+Print exec grim -g "$(slurp)" - | wl-copy
bindsym $mod+Print exec grim ~/Pictures/screenshots/$(date +%FT%T).png
bindsym $mod+Shift+Print exec grim -g "$(slurp)" ~/Pictures/screenshots/$(date +%FT%T).png

View file

@ -1,8 +1,11 @@
- name: Install sway
- name: Install sway, grim, slurp and wl-clipboard
become: true
ansible.builtin.apt:
pkg:
- sway
- grim
- slurp
- wl-clipboard
- name: Create sway config dir
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/sway"
@ -18,3 +21,8 @@
src: files/sway.d/
dest: "{{ ansible_env.HOME }}/.config/sway/config.d/"
mode: '1770'
- name: Create directory for screenshots
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/Pictures/screenshots"
state: directory
mode: '1770'