Compare commits

...

3 Commits

Author SHA1 Message Date
Mike Wilson
d16dac3d49 Fix syntax issues with modules 2025-08-19 13:48:01 -04:00
Mike Wilson
db293c606a Add sxhkd 2025-06-29 09:53:48 -04:00
Mike Wilson
e3d1957341 Only display 15 lines for emoji picker instead of 30 2025-06-24 12:45:53 -04:00
6 changed files with 37 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
- name: Get path of default firefox profile
ansible.builtin.find:
paths: "/home/{{ username }}/.mozilla/firefox"
paths: "~/.mozilla/firefox"
file_type: directory
patterns: "*default-release"
register: profile_dir

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# Get user selection via dmenu from emoji file.
chosen=$(cut -d ';' -f1 ~/.local/share/chars/emoji | dmenu -l 30 | sed "s/ .*//")
chosen=$(cut -d ';' -f1 ~/.local/share/chars/emoji | dmenu -l 15 | sed "s/ .*//")
# Exit if none chosen.
[ -z "$chosen" ] && exit

View File

@@ -1,13 +1,15 @@
- name: Clone source code from gitea
ansible.builtin.git:
repo: "https://git.mjwilson.org/mike/{{ role_name }}"
dest: "{{ src_dir }}/dwm"
dest: "{{ src_dir }}/{{ role_name }}"
- name: Run build
community.general.make:
chdir: "{{ src_dir }}/{{ role_name }}"
target: install
params:
clean:
become: true
- name: Install scripts
ansible.builtin.copy:
@@ -18,5 +20,5 @@
- name: Install supplementary files
ansible.builtin.copy:
src: emoji
dest: "~/.local/share/chars/emoji"
dest: "~/.local/share/chars/"
mode: 0664

View File

@@ -7,9 +7,9 @@
- name: Install mpv.conf
ansible.builtin.copy:
src: mpv.conf
dest: "/home/{{ username }}/.config/mpv/mpv.conf"
dest: "~/.config/mpv/"
- name: Install scripts
ansible.builtin.copy:
src: scripts
dest: "/home/{{ username }}/.config/mpv/"
dest: "~/.config/mpv/"

19
roles/sxhkd/files/sxhkdrc Normal file
View File

@@ -0,0 +1,19 @@
# Launch Firefox
super + w
firefox
# Capture entire screen and save to clipboard
Print
scrot -m - | xclip -selection clipboard -target image/png
# Capture selection and save to clipboard
shift + Print
scrot -s - | xclip -selection clipboard -target image/png
# Launch Alacritty
super + shift + Return
alacritty
# Emoji Picker
super + grave
~/.local/bin/dmenuunicode

View File

@@ -0,0 +1,10 @@
- name: Install package
ansible.builtin.package:
name: "{{ role_name }}"
state: present
become: true
- name: Install config file
ansible.builtin.copy:
src: sxhkdrc
dest: "/home/{{ username }}/.config/sxhkd"