further xmonad rework
This commit is contained in:
parent
bfde774848
commit
c4956eedd1
18
justfile
18
justfile
@ -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}}"
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
13
site.yml
13
site.yml
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user