create justfile; start xmonad

This commit is contained in:
Max Hohlfeld 2022-11-02 20:24:49 +01:00
parent 48389bfac0
commit 4d80939288
6 changed files with 59 additions and 4 deletions

View File

@ -1,2 +0,0 @@
ansible-playbook site.yml --skip-tags server -K
ansible-playbook site.yml --skip-tags pc -K

15
justfile Normal file
View File

@ -0,0 +1,15 @@
default:
just --list
sync-qwerty:
ansible-playbook site.yml -K -t "pc,qwerty"
sync-x220:
ansible-playbook site.yml -K -t "pc,x220"
sync-t460p:
ansible-playbook site.yml -K -t "pc,t460p"
sync-server:
ansible-playbook site.yml -K -t "server"

View File

@ -5,6 +5,7 @@
- neovim - neovim
- ripgrep - ripgrep
- git - git
- xclip
state: present state: present
tags: always tags: always

View File

@ -0,0 +1,20 @@
Config { font = "xft:Iosevka-Regular:size=11:antialias=true"
, bgColor = "#3f3f3f"
, fgColor = "#dcdccc"
, position = Top
, border = FullB
, borderColor = "#dcdccc"
, lowerOnStart = True
, commands = [Run DynNetwork ["-t", "<fc=#dca3a3><dev>:</fc> ↓ <rx> | ↑ <tx> kbps"] 10
, Run Date "<fc=#dca3a3>%a, %d.%m.%Y</fc> - <fc=#ffcfaf>%H:%M</fc>" "date" 10
, Run Alsa "default" "Master" ["-t", "<fc=#8c8cbc>Vol:</fc> <volume>%"]
, Run Kbd [("de", "de"), ("de(dsb_qwertz)", "dsb"), ("ru(phonetic)", "ru")]
, Run Memory ["-t", "<fc=#7f9f7f>RAM:</fc> <usedratio>%"] 10
, Run MultiCpu ["-t", "<fc=#ffcfaf>CPU:</fc> <total>%"] 10
, Run Com "uname" ["-r"] "" 0
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = " | %StdinReader% }{ %dynnetwork% | %multicpu% | %memory% | <fc=#8cd0d3>%uname%</fc> | <fc=#efef8f>%kbd%</fc> | %alsa:default:Master% | %date% | "
}

View File

@ -0,0 +1,22 @@
---
- name: Install xmonad and xmobar packages
ansible.builtin.package:
name:
- xmonad
- xmonad-contrib
- xmobar
state: present
tags: pc
- name: Build and install custom st, dmenu and slock
tags: pc
- name: Create config directories
ansible.builtin.file:
path: {{ item }}
state: directory
mode: '0755'
with_items:
- ~/.config/xmonad
- ~/.config/xmobar
tags: pc

View File

@ -1,6 +1,5 @@
--- ---
- name: Dotfile Playbook - name: Dotfile Playbook
hosts: localhost hosts: localhost
tags: always
roles: roles:
- nvim - nvim