Compare commits
5 Commits
8dd8d8d91d
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d16dac3d49 | ||
![]() |
db293c606a | ||
![]() |
e3d1957341 | ||
![]() |
48f3910ad7 | ||
![]() |
54d74a083e |
1
main.yml
1
main.yml
@@ -1,6 +1,7 @@
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
roles:
|
||||
- dmenu
|
||||
- mpv
|
||||
- arkenfox
|
||||
- dwm
|
||||
|
@@ -6,3 +6,18 @@ user_pref("privacy.resistFingerprinting.letterboxing", true);
|
||||
user_pref("network.trr.mode", 5); // Disable DoH to use network resolver
|
||||
|
||||
user_pref("signon.rememberSignons", false); // Do not prompt to save password
|
||||
|
||||
// [SETTING] Privacy & Security>Forms and Autofill>Autofill addresses
|
||||
user_pref("extensions.formautofill.addresses.enabled", false); // [FF55+]
|
||||
user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+]
|
||||
|
||||
// 0401: disable SB (Safe Browsing)
|
||||
// SB makes connections to Google
|
||||
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||
// 0402: disable SB checks for downloads (both local lookups + remote)
|
||||
user_pref("browser.safebrowsing.downloads.enabled", false);
|
||||
// 0404: disable SB checks for unwanted software
|
||||
user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
|
||||
user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
|
||||
|
||||
|
@@ -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
|
||||
|
1620
roles/dmenu/files/emoji
Normal file
1620
roles/dmenu/files/emoji
Normal file
File diff suppressed because it is too large
Load Diff
16
roles/dmenu/files/scripts/dmenuunicode
Executable file
16
roles/dmenu/files/scripts/dmenuunicode
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get user selection via dmenu from emoji file.
|
||||
chosen=$(cut -d ';' -f1 ~/.local/share/chars/emoji | dmenu -l 15 | sed "s/ .*//")
|
||||
|
||||
# Exit if none chosen.
|
||||
[ -z "$chosen" ] && exit
|
||||
|
||||
# If you run this command with an argument, it will automatically insert the
|
||||
# character. Otherwise, show a message that the emoji has been copied.
|
||||
if [ -n "$1" ]; then
|
||||
xdotool type "$chosen"
|
||||
else
|
||||
printf "%s" "$chosen" | xclip -selection clipboard
|
||||
notify-send "'$chosen' copied to clipboard." &
|
||||
fi
|
24
roles/dmenu/tasks/main.yml
Normal file
24
roles/dmenu/tasks/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
- name: Clone source code from gitea
|
||||
ansible.builtin.git:
|
||||
repo: "https://git.mjwilson.org/mike/{{ role_name }}"
|
||||
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:
|
||||
src: scripts/
|
||||
dest: "~/.local/bin/"
|
||||
mode: 0774
|
||||
|
||||
- name: Install supplementary files
|
||||
ansible.builtin.copy:
|
||||
src: emoji
|
||||
dest: "~/.local/share/chars/"
|
||||
mode: 0664
|
@@ -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
19
roles/sxhkd/files/sxhkdrc
Normal 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
|
10
roles/sxhkd/tasks/main.yml
Normal file
10
roles/sxhkd/tasks/main.yml
Normal 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"
|
Reference in New Issue
Block a user