Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
adbc843ecf | |||
5ecab2b527 |
8 changed files with 90 additions and 5 deletions
|
@ -11,13 +11,9 @@
|
||||||
file: host_vars/{{ ansible_hostname }}.yml
|
file: host_vars/{{ ansible_hostname }}.yml
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- import_tasks: tasks/user.yml
|
|
||||||
- import_tasks: tasks/packages.yml
|
|
||||||
|
|
||||||
- include_role:
|
- include_role:
|
||||||
name: geerlingguy.ntp
|
name: base
|
||||||
|
|
||||||
- import_tasks: tasks/boot.yml
|
|
||||||
- import_tasks: tasks/i3.yml
|
- import_tasks: tasks/i3.yml
|
||||||
|
|
||||||
# Don't bother configuring KDE for root, just assume it's for me
|
# Don't bother configuring KDE for root, just assume it's for me
|
||||||
|
|
51
files/libinput-gestures.conf
Normal file
51
files/libinput-gestures.conf
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# Configuration file for libinput-gestures.
|
||||||
|
#
|
||||||
|
# The default configuration file exists at /etc/libinput-gestures.conf
|
||||||
|
# but a user can create a personal custom configuration file at
|
||||||
|
# ~/.config/libinput-gestures.conf.
|
||||||
|
#
|
||||||
|
# Lines starting with '#' and blank lines are ignored.
|
||||||
|
# At present only gesture lines are configured in this file.
|
||||||
|
#
|
||||||
|
# Each gesture: line has 3 [or 4] arguments:
|
||||||
|
#
|
||||||
|
# action motion [finger_count] command
|
||||||
|
#
|
||||||
|
# where action and motion is either:
|
||||||
|
# swipe up
|
||||||
|
# swipe down
|
||||||
|
# swipe left
|
||||||
|
# swipe right
|
||||||
|
# pinch in
|
||||||
|
# pinch out
|
||||||
|
#
|
||||||
|
# command is the remainder of the line and is any valid shell command +
|
||||||
|
# arguments.
|
||||||
|
#
|
||||||
|
# finger_count is optional (and is typically 3 or 4). If specified then
|
||||||
|
# the command is executed when exactly that number of fingers is used in
|
||||||
|
# the gesture. If not specified then the command is executed when that
|
||||||
|
# gesture is executed with any number of fingers. Gesture lines
|
||||||
|
# specified with finger_count have priority over the same gesture
|
||||||
|
# specified without any finger_count.
|
||||||
|
#
|
||||||
|
# Typically command will be xdotool, or wmctrl. See "man xdotool" for
|
||||||
|
# the many things you can action with that tool.
|
||||||
|
|
||||||
|
# GNOME SHELL move to next workspace
|
||||||
|
gesture: swipe up 3 xdotool key super+Page_Up
|
||||||
|
|
||||||
|
# GNOME SHELL move to prev workspace
|
||||||
|
gesture: swipe down 3 xdotool key super+Page_Down
|
||||||
|
|
||||||
|
# GNOME/Browser go back
|
||||||
|
gesture: swipe right 3 xdotool key alt+Right
|
||||||
|
|
||||||
|
# GNOME/Browser go forward
|
||||||
|
gesture: swipe left 3 xdotool key alt+Left
|
||||||
|
|
||||||
|
# GNOME SHELL open/close overview
|
||||||
|
gesture: swipe up 4 xdotool key super+s
|
||||||
|
|
||||||
|
gesture: pinch in xdotool key Control_L+minus
|
||||||
|
gesture: pinch out xdotool key Control_L+plus
|
7
roles/base/tasks/main.yml
Normal file
7
roles/base/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- import_tasks: user.yml
|
||||||
|
- import_tasks: packages.yml
|
||||||
|
|
||||||
|
- include_role:
|
||||||
|
name: geerlingguy.ntp
|
||||||
|
|
||||||
|
- import_tasks: boot.yml
|
|
@ -5,6 +5,28 @@
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Autostart services
|
||||||
|
file:
|
||||||
|
src: /etc/xdg/autostart/{{ item }}.desktop
|
||||||
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||||
|
mode: 0644
|
||||||
|
owner: "{{ user }}"
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
loop:
|
||||||
|
- solaar
|
||||||
|
|
||||||
|
- name: Autostart applications
|
||||||
|
file:
|
||||||
|
src: /usr/share/applications/{{ item }}.desktop
|
||||||
|
dest: "{{ home }}/.config/autostart/{{ item }}.desktop"
|
||||||
|
mode: 0644
|
||||||
|
owner: "{{ user }}"
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
loop:
|
||||||
|
- libinput-gestures
|
||||||
|
|
||||||
- name: Autostart solaar
|
- name: Autostart solaar
|
||||||
get_url:
|
get_url:
|
||||||
url: https://raw.githubusercontent.com/pwr-Solaar/Solaar/master/share/autostart/solaar.desktop
|
url: https://raw.githubusercontent.com/pwr-Solaar/Solaar/master/share/autostart/solaar.desktop
|
||||||
|
|
|
@ -6,9 +6,18 @@
|
||||||
loop:
|
loop:
|
||||||
- gromit-mpx
|
- gromit-mpx
|
||||||
- iio-sensor-proxy
|
- iio-sensor-proxy
|
||||||
|
- libinput
|
||||||
|
- libinput-gestures
|
||||||
- solaar
|
- solaar
|
||||||
- xorg-xev
|
- xorg-xev
|
||||||
|
|
||||||
|
- name: Install libinput-gestures config
|
||||||
|
copy:
|
||||||
|
src: ./files/libinput-gestures.conf
|
||||||
|
dest: /etc/libinput-gestures.conf
|
||||||
|
mode: 0644
|
||||||
|
owner: "{{ user }}"
|
||||||
|
|
||||||
- name: Create uniemoji config directory
|
- name: Create uniemoji config directory
|
||||||
file:
|
file:
|
||||||
path: "{{ home }}/.config/uniemoji/"
|
path: "{{ home }}/.config/uniemoji/"
|
||||||
|
|
Loading…
Reference in a new issue