From f1bf69d50c8a662ba6f0c4791afbf6029dd2c68e Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 30 Apr 2019 09:55:57 +0100 Subject: [PATCH 1/2] Add ipcalc package --- .ansible/roles/linux_desktop/vars/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.ansible/roles/linux_desktop/vars/main.yaml b/.ansible/roles/linux_desktop/vars/main.yaml index 1f74be7..a64a0b5 100644 --- a/.ansible/roles/linux_desktop/vars/main.yaml +++ b/.ansible/roles/linux_desktop/vars/main.yaml @@ -36,6 +36,7 @@ linux_packages: - gnome-shell-extension-dashtodock - gnome-shell-extension-weather - gnome-tweaks + - ipcalc - keybase - net-tools - netcat From cd506694e8268350725e7c4db2f06a60060d6a26 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 30 Apr 2019 09:57:06 +0100 Subject: [PATCH 2/2] Add some clipboard aliases --- .ansible/roles/linux_desktop/tasks/config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.ansible/roles/linux_desktop/tasks/config.yaml b/.ansible/roles/linux_desktop/tasks/config.yaml index b744445..9470791 100644 --- a/.ansible/roles/linux_desktop/tasks/config.yaml +++ b/.ansible/roles/linux_desktop/tasks/config.yaml @@ -106,3 +106,14 @@ loop: "{{ gnome_custom_keybindings }}" loop_control: index_var: index + +- name: 'Shell: Clipboard aliases' + tags: + - config + - shell + copy: + content: | + [[ -x /usr/bin/copyq ]] && function pbpaste() { /usr/bin/copyq clipboard; } && export -f pbpaste + [[ -x /usr/bin/copyq ]] && function pbcopy() { /usr/bin/copyq add -; } && export -f pbcopy + dest: '~/.bashrc.d/alias.clipboard' + mode: '0400'