]> git.friedersdorff.com Git - max/saltfiles.git/blob - arch.sls
0879813eea32edf8e2aeafd2fc2e358ba931f9d1
[max/saltfiles.git] / arch.sls
1 install sway:
2   pkg.installed:
3     - pkgs: 
4       - sway 
5       - swaylock
6       - swayidle
7       - dmenu-wayland-git
8
9 ensure dmenu-wl wrapper:
10   file.managed:
11     - name: {{ grains['homedir'] }}/.local/bin/dmenu_run
12     - mode: 750
13     - owner: {{ grains['user'] }}
14     - group: {{ grains['user'] }}
15     - contents:
16       - "#!/bin/sh"
17       - "active_monitor=$(swaymsg -t get_outputs | jq -r '.[map(.focused) | index(true)].name')"
18       - '/usr/bin/dmenu_run -m "${active_monitor}" "$@"'