Compare commits
2 Commits
35528621d9
...
a448468a8d
Author | SHA1 | Date | |
---|---|---|---|
a448468a8d | |||
d5216a045d |
9
justfile
9
justfile
@ -1,4 +1,5 @@
|
|||||||
allTags := "nvim,xmonad,git,scripts"
|
allTags := "nvim,xmonad,git,scripts"
|
||||||
|
hostname := `cat /etc/hostname`
|
||||||
|
|
||||||
default:
|
default:
|
||||||
just --list
|
just --list
|
||||||
@ -6,6 +7,14 @@ default:
|
|||||||
install-dependencies:
|
install-dependencies:
|
||||||
ansible-galaxy collection install kewlfft.aur
|
ansible-galaxy collection install kewlfft.aur
|
||||||
|
|
||||||
|
alias s := setup
|
||||||
|
setup tags=allTags:
|
||||||
|
just setup-{{ if hostname == "qwerty" { "qwerty" } else if hostname == "LE-ARCH-MHO" { "t460p" } else { "x220" } }} "{{ tags }}"
|
||||||
|
|
||||||
|
alias c := config
|
||||||
|
config tags=allTags:
|
||||||
|
just config-{{ if hostname == "qwerty" { "qwerty" } else if hostname == "LE-ARCH-MHO" { "t460p" } else { "x220" } }} "{{ tags }}"
|
||||||
|
|
||||||
setup-qwerty tags=allTags:
|
setup-qwerty tags=allTags:
|
||||||
ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
|
ansible-playbook site.yml -K -t "pc,qwerty,{{tags}}"
|
||||||
|
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
- lazygit
|
- lazygit
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Create a config directory if it doesn't exist
|
- name: Create a config directory if it doesn't exist
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: ~/.config/git
|
path: ~/.config/git
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Copy over config for T460p
|
- name: Copy over config for T460p
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@ -35,7 +35,7 @@
|
|||||||
path: ~/.config/lazygit
|
path: ~/.config/lazygit
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
tags: pc
|
tags: [pc, setup]
|
||||||
|
|
||||||
- name: Copy over config for lazygit
|
- name: Copy over config for lazygit
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
@ -29,6 +29,7 @@ import XMonad.Prompt.FuzzyMatch (fuzzyMatch, fuzzySort)
|
|||||||
import XMonad.Prompt.Shell (shellPrompt, unsafePrompt)
|
import XMonad.Prompt.Shell (shellPrompt, unsafePrompt)
|
||||||
|
|
||||||
import Text.Regex.Posix ((=~))
|
import Text.Regex.Posix ((=~))
|
||||||
|
import Control.Concurrent (threadDelay)
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
myTerminal = "alacritty"
|
myTerminal = "alacritty"
|
||||||
@ -67,7 +68,7 @@ topicItems =
|
|||||||
, noAction "4" "~/"
|
, noAction "4" "~/"
|
||||||
, noAction "5" "~/"
|
, noAction "5" "~/"
|
||||||
, TI "recipes" "~/projekte/recipes" (switchToLayout "Programming" *> spawnShellAndExecute "hugo server" *> proc (inProgram myBrowser) *> spawnEditor)
|
, TI "recipes" "~/projekte/recipes" (switchToLayout "Programming" *> spawnShellAndExecute "hugo server" *> proc (inProgram myBrowser) *> spawnEditor)
|
||||||
, TI "alkaa" "~/projekte/alkaa" (switchToLayout "Programming" *> spawnShell *> spawnEditor)
|
, TI "alkaa" "~/projekte/alkaa" (switchToLayout "Programming" *> spawnShell *> liftIO(threadDelay 500000) *> spawnEditor)
|
||||||
, TI "steam" "~" (switchToLayout "Steam" *> spawn "steam")
|
, TI "steam" "~" (switchToLayout "Steam" *> spawn "steam")
|
||||||
, TI "game" "~" (switchToLayout "Full")
|
, TI "game" "~" (switchToLayout "Full")
|
||||||
, TI "micro" "~/projekte/microcontroller" (switchToLayout "Programming" *> spawnShell *> spawnEditor)
|
, TI "micro" "~/projekte/microcontroller" (switchToLayout "Programming" *> spawnShell *> spawnEditor)
|
||||||
@ -232,6 +233,7 @@ myManageHook = composeAll . concat $
|
|||||||
, [ (className =? "steam" <||> className =? "steamwebhelper") --> doShift "steam" ]
|
, [ (className =? "steam" <||> className =? "steamwebhelper") --> doShift "steam" ]
|
||||||
, [ (title *!? "Friends List" <||> title *!? "News" ) --> doF W.swapDown ]
|
, [ (title *!? "Friends List" <||> title *!? "News" ) --> doF W.swapDown ]
|
||||||
, [ title =? "Steam" --> doF W.shiftMaster ]
|
, [ title =? "Steam" --> doF W.shiftMaster ]
|
||||||
|
, [ title =? "notificationtoasts_2_desktop" --> doFloat ]
|
||||||
, [ title =? t <&&> title *!? t --> doShift "game" | t <- myGames ]
|
, [ title =? t <&&> title *!? t --> doShift "game" | t <- myGames ]
|
||||||
|
|
||||||
-- float specific classes
|
-- float specific classes
|
||||||
|
Loading…
Reference in New Issue
Block a user