This commit is contained in:
2019-04-14 11:54:29 +02:00
parent cb34056f15
commit 6be0232035
14 changed files with 48 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ clean:
$(ansible): venv $(ansible): venv
venv: venv:
command -v virtualenv || sudo dnf install -y python2-virtualenv || sudo apt-get -y install virtualenv command -v virtualenv || sudo dnf install -y python3-virtualenv || sudo apt-get -y install virtualenv
virtualenv --no-site-packages --python=python2 $(venv) virtualenv --no-site-packages --python=python2 $(venv)
$(activate) && $(pip) install -r $(requirements) $(activate) && $(pip) install -r $(requirements)

4
autostart/20_gpg_agent.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
printf '%s' "starting gpg-agent"
systemd-run -r --user --setenv=DISPLAY=${DISPLAY} gpg-agent --homedir "$HOME/.gnupg" --no-detach --daemon

11
autostart/20_screen.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
printf '%s\n' "start compton"
systemd-run --remain-after-exit --user --setenv=DISPLAY=${DISPLAY} compton --backend glx --vsync opengl &
printf '%s\n' "disable screen blanking"
xset -dpms &
xset s off &
printf '%s\n' "disable wakeup when lid switched"
grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup

4
autostart/50_nextcloud.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
printf '%s' "starting nextcloud"
systemd-run --user --setenv=DISPLAY=${DISPLAY} nextcloud

View File

@@ -1,5 +1,6 @@
empty_directories: empty_directories:
- .i3 - .i3
- .gnupg
dotfiles: dotfiles:
- from: autostart.sh - from: autostart.sh
to: .autostart.sh to: .autostart.sh

View File

@@ -1,5 +1,5 @@
default-cache-ttl 86400 default-cache-ttl 60480000
default-cache-ttl-ssh 86400 default-cache-ttl-ssh 60480000
max-cache-ttl 34560000 max-cache-ttl 34560000
max-cache-ttl-ssh 34560000 max-cache-ttl-ssh 34560000

View File

@@ -40,7 +40,7 @@ battery_level all {
} }
clock { clock {
format = ["{Europe/Berlin}", "{NZ}", "{Cuba}" ] format = ["{DE}", "{NZ}", "{Cuba}", "{MX}" ]
format_time = "  {name} \[KW %V\] %a %d.%m.%Y %H:%M:%S " format_time = "  {name} \[KW %V\] %a %d.%m.%Y %H:%M:%S "
} }

View File

@@ -292,3 +292,6 @@ packages:
rclone: rclone:
fedora: ["rclone"] fedora: ["rclone"]
ubuntu: ["rclone"] ubuntu: ["rclone"]
dnf:
fedora: ["python3-dnf"]
ubuntu: []

View File

@@ -33,9 +33,11 @@
become: true become: true
- name: install selinux specials on fedora - name: install selinux specials on fedora
package: dnf:
state: installed state: installed
name: libselinux-python name:
- python2-libselinux
- policycoreutils-python
become: true become: true
when: distro == 'fedora' when: distro == 'fedora'

View File

@@ -1,4 +1,4 @@
ansible==2.6.3 ansible==2.7.5
asn1crypto==0.24.0 asn1crypto==0.24.0
bcrypt==3.1.4 bcrypt==3.1.4
cffi==1.11.5 cffi==1.11.5

View File

@@ -306,3 +306,7 @@ let g:terraform_align = 1
if has("autocmd") if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif endif
let g:ycm_server_python_interpreter = "python2"
au FileType html setl shiftwidth=2

View File

@@ -5,11 +5,16 @@ URxvt.scrollBar: false
URxvt.font: xft:Inconsolata:size={{ machine.font_size }} URxvt.font: xft:Inconsolata:size={{ machine.font_size }}
URxvt.letterSpace: {{ machine.letter_space }} URxvt.letterSpace: {{ machine.letter_space }}
URxvt.perl-ext: default,matcher,selection-to-clipboard,font-size,resize-font URxvt.perl-ext-common: default,matcher,selection-to-clipboard,resize-font,selection-to-clipboard
URxvt.url-launcher: /usr/bin/xdg-open URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1 URxvt.matcher.button: 1
URxvt.saveLines: 10000 URxvt.saveLines: 10000
URxvt.keysym.C-udiaeresis: perl:matcher:last
URxvt.keysym.C-adiaeresis: perl:matcher:list
URxvt.matcher.rend.0: Uline Bold fg5
URxvt.internalBorder: 3 URxvt.internalBorder: 3
URxvt.externalBorder: 0 URxvt.externalBorder: 0

View File

@@ -85,6 +85,8 @@ alias newpw="pwgen --secure 25 1"
alias sys="systemctl" alias sys="systemctl"
alias sysu="systemctl --user" alias sysu="systemctl --user"
alias gpg=gpg2
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)

View File

@@ -202,3 +202,7 @@ prefix() {
file=$1 file=$1
mv $file ${prefix}${file} mv $file ${prefix}${file}
} }
tmp() {
cd "$(mktemp -d)"
}