further xmonad rework

This commit is contained in:
Max Hohlfeld 2022-11-06 01:48:09 +01:00
parent bfde774848
commit c4956eedd1
4 changed files with 40 additions and 16 deletions

View File

@ -1,15 +1,17 @@
allTags := "nvim,xmonad"
default: default:
just --list just --list
sync-qwerty: sync-qwerty tags=allTags:
ansible-playbook site.yml -K -t "pc,qwerty" ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
sync-x220: sync-x220 tags=allTags:
ansible-playbook site.yml -K -t "pc,x220" ansible-playbook site.yml -K -t "pc,x220,{{tags}}"
sync-t460p: sync-t460p tags=allTags:
ansible-playbook site.yml -K -t "pc,t460p" ansible-playbook site.yml -K -t "pc,t460p,{{tags}}"
sync-server: sync-server tags=allTags:
ansible-playbook site.yml -K -t "server" ansible-playbook site.yml -K -t "server,{{tags}}"

View File

@ -108,8 +108,12 @@ spawnShell = currentTopicDir myTopicConfig >>= spawnShellIn
spawnShellIn :: Dir -> X () spawnShellIn :: Dir -> X ()
spawnShellIn dir = spawn $ "st -d " ++ dir spawnShellIn dir = spawn $ "st -d " ++ dir
spawnCommand :: String -> X() spawnShellWith :: String -> X()
spawnCommand cmd = spawn $ "st -d" ++ cmd -- spawnShellWith cmd = spawn $ "st -e " ++ cmd
spawnShellWith cmd = currentTopicDir myTopicConfig >>= spawnShellInWith cmd
spawnShellInWith :: Dir -> String -> X ()
spawnShellInWith dir cmd = spawn $ "st -d " ++ dir ++ " -e " ++ cmd
-- getDir :: X Dir -> String -- getDir :: X Dir -> String
-- getDir (X dir) = dir -- getDir (X dir) = dir

View File

@ -5,6 +5,7 @@
- xmonad - xmonad
- xmonad-contrib - xmonad-contrib
- xmobar - xmobar
- alacritty
state: present state: present
tags: pc tags: pc
@ -30,3 +31,13 @@
- { src: xmonad_t460p.hs, dest: ~/.config/xmonad/xmonad.hs } - { src: xmonad_t460p.hs, dest: ~/.config/xmonad/xmonad.hs }
- { src: xmobarrc_t460p, dest: ~/.config/xmobar/xmobarrc } - { src: xmobarrc_t460p, dest: ~/.config/xmobar/xmobarrc }
tags: t460p tags: t460p
- name: Copy over qwerty config files
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: '0644'
with_items:
- { src: xmonad_qwerty.hs, dest: ~/.config/xmonad/xmonad.hs }
- { src: xmobarrc_qwerty, dest: ~/.config/xmobar/xmobarrc }
tags: qwerty

View File

@ -1,8 +1,15 @@
--- ---
- name: Dotfile Playbook - name: Dotfile Playbook
hosts: localhost hosts: localhost
roles: # roles:
- role: nvim # - role: nvim
# tags: nvim
# - role: xmonad
# tags: xmonad
tasks:
- ansible.builtin.include_role:
name: nvim
tags: nvim tags: nvim
- role: xmonad - ansible.builtin.include_role:
name: xmonad
tags: xmonad tags: xmonad