Compare commits
6 Commits
c70c39f28f
...
0e125af3f7
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e125af3f7 | |||
| a9850d527c | |||
| cc6f4cb102 | |||
|
|
8d59331de5 | ||
|
|
066308e9ae | ||
|
|
6159d33cd6 |
6
Makefile
6
Makefile
@@ -9,13 +9,9 @@ ansible_run = $(activate) && ansible-playbook -e ansible_python_interpreter=/usr
|
|||||||
all: | venv $(ansible)
|
all: | venv $(ansible)
|
||||||
$(ansible_run)
|
$(ansible_run)
|
||||||
|
|
||||||
.PHONY: dryrun
|
|
||||||
dryrun: $(ansible)
|
|
||||||
$(ansible_run) --check
|
|
||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update: $(ansible)
|
update: $(ansible)
|
||||||
$(ansible_run) --tags update_system
|
$(ansible_run) --tags update
|
||||||
|
|
||||||
.PHONY: reboot
|
.PHONY: reboot
|
||||||
reboot:
|
reboot:
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
font_size: 12
|
font_size: 12
|
||||||
letter_space: 0
|
letter_space: 0
|
||||||
terminal_binary: alacritty
|
|
||||||
|
|
||||||
gpu: amd
|
gpu: amd
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
font_size: 11
|
font_size: 11
|
||||||
letter_space: 0
|
letter_space: 0
|
||||||
terminal_binary: alacritty
|
|
||||||
|
|
||||||
users:
|
users:
|
||||||
- name: hannes-work
|
- name: hannes-work
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
font_size: 11
|
font_size: 11
|
||||||
letter_space: 0
|
letter_space: 0
|
||||||
terminal_binary: alacritty
|
|
||||||
|
|
||||||
users:
|
users:
|
||||||
- name: hannes-work
|
- name: hannes-work
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ window:
|
|||||||
#startup_mode: Windowed
|
#startup_mode: Windowed
|
||||||
|
|
||||||
# Window title
|
# Window title
|
||||||
#title: Alacritty
|
title: "[terminal]"
|
||||||
|
|
||||||
# Allow terminal applications to change Alacritty's window title.
|
# Allow terminal applications to change Alacritty's window title.
|
||||||
dynamic_title: true
|
dynamic_title: true
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
|
||||||
# The default terminal
|
# The default terminal
|
||||||
set $terminal "{{ machine.terminal_binary }} --title terminal"
|
set $terminal "alacritty --config-file ~/.config/alacritty.yml"
|
||||||
set $calc "{{ machine.terminal_binary }} --title calc -e $SHELL -i -c calc"
|
set $calc "alacritty --config-file ~/.config/alacritty.yml -e $SHELL -i -c calc"
|
||||||
|
|
||||||
set $scriptdir ~/.i3/scripts
|
set $scriptdir ~/.i3/scripts
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
when: distro == 'archlinux'
|
when: distro == 'archlinux'
|
||||||
tags: [update_system]
|
tags: [update]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: install sudo
|
- name: install sudo
|
||||||
@@ -591,6 +591,7 @@
|
|||||||
- name: create dotfiles user
|
- name: create dotfiles user
|
||||||
user:
|
user:
|
||||||
name: dotfiles
|
name: dotfiles
|
||||||
|
group: dotfiles
|
||||||
home: /var/lib/dotfiles
|
home: /var/lib/dotfiles
|
||||||
create_home: false
|
create_home: false
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
|
|||||||
5
user.yml
5
user.yml
@@ -314,6 +314,7 @@
|
|||||||
register: ycm_before_update
|
register: ycm_before_update
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: ycm_before_update.rc not in (0, 200)
|
failed_when: ycm_before_update.rc not in (0, 200)
|
||||||
|
tags: [update]
|
||||||
|
|
||||||
- name: install vim plugins
|
- name: install vim plugins
|
||||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall'
|
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugInstall +qall'
|
||||||
@@ -329,10 +330,12 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
register: vim_plugin_update
|
register: vim_plugin_update
|
||||||
changed_when: vim_plugin_update.stderr != ""
|
changed_when: vim_plugin_update.stderr != ""
|
||||||
|
tags: [update]
|
||||||
|
|
||||||
- name: update go binaries for vim
|
- name: update go binaries for vim
|
||||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall'
|
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
tags: [update]
|
||||||
|
|
||||||
- name: get ycm version after update
|
- name: get ycm version after update
|
||||||
shell: |
|
shell: |
|
||||||
@@ -342,6 +345,7 @@
|
|||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
register: ycm_after_update
|
register: ycm_after_update
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
tags: [update]
|
||||||
|
|
||||||
- name: compile youcompleteme
|
- name: compile youcompleteme
|
||||||
# --force-sudo is required, as the script refuses to run in a sudo
|
# --force-sudo is required, as the script refuses to run in a sudo
|
||||||
@@ -358,6 +362,7 @@
|
|||||||
(ycm_before_update.rc == 200)
|
(ycm_before_update.rc == 200)
|
||||||
or
|
or
|
||||||
(ycm_before_update.stdout != ycm_after_update.stdout)
|
(ycm_before_update.stdout != ycm_after_update.stdout)
|
||||||
|
tags: [update]
|
||||||
tags: [vim-plugins]
|
tags: [vim-plugins]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|||||||
@@ -89,6 +89,9 @@ alias gpg=gpg2
|
|||||||
|
|
||||||
alias alacritty="alacritty --config-file $HOME/.config/alacritty.yml"
|
alias alacritty="alacritty --config-file $HOME/.config/alacritty.yml"
|
||||||
|
|
||||||
|
alias d=docker
|
||||||
|
alias dc=docker-compose
|
||||||
|
|
||||||
gitmaster() {
|
gitmaster() {
|
||||||
git stash push -m gitmaster-$(date -uIseconds) -u || return 1
|
git stash push -m gitmaster-$(date -uIseconds) -u || return 1
|
||||||
_branch=$(git rev-parse --abbrev-ref HEAD)
|
_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|||||||
Reference in New Issue
Block a user