From 1cb78494f3022fe9d808d070507bddf552c64753 Mon Sep 17 00:00:00 2001 From: Casper Date: Wed, 18 Dec 2024 15:21:28 -0700 Subject: Initial commit, new repo --- wm/wm-setup.sls | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ wm/wm-setup.top | 3 +++ 2 files changed, 84 insertions(+) create mode 100644 wm/wm-setup.sls create mode 100644 wm/wm-setup.top (limited to 'wm') diff --git a/wm/wm-setup.sls b/wm/wm-setup.sls new file mode 100644 index 0000000..e4864f5 --- /dev/null +++ b/wm/wm-setup.sls @@ -0,0 +1,81 @@ +# Set user_name to your username in dom0 +{% set user_name = 'skylar' %} + +wm--install-wm-pkgs: + pkg.installed: + - pkgs: + - i3 + - i3-settings-qubes + - nitrogen + - arandr + - rofi + - zenity + - dunst + +'mkdir /home/{{ user_name }}/.config/i3': + cmd.run: + - creates: /home/{{ user_name }}/.config/i3/ +/home/{{ user_name }}/.config/i3/config: + file.managed: + - source: salt://dots/i3-config + - user: root + - group: root + - mode: 777 + +'sudo mv /usr/bin/qubes-i3-sensible-terminal /usr/bin/qubes-i3-sensible-terminal-default': + cmd.run: + - creates: /usr/bin/qubes-i3-sensible-terminal-default +/usr/bin/qubes-i3-sensible-terminal: + file.managed: + - source: salt://scripts/qubes-i3-sensible-terminal + - user: root + - group: root + - mode: 777 + +'mkdir /home/{{ user_name }}/.screenlayout': + cmd.run: + - creates: /home/{{ user_name }}/.config/i3/ +/home/{{ user_name }}/.screenlayout/home.sh: + file.managed: + - source: salt://dots/default-screenlayout.sh + - user: root + - user: root + - mode: 777 + +'mkdir /home/{{ user_name }}/.config/nitrogen': + cmd.run: + - creates: /home/{{ user_name }}/.config/i3/ +/home/{{ user_name }}/.config/nitrogen/bg-saved.cfg: + file.managed: + - source: salt://dots/nitrogen/bg-saved.cfg + - user: root + - group: root + - mode: 777 + +/home/{{ user_name }}/Pictures/wallpaper.png: + file.managed: + - source: salt://dots/nitrogen/wallpaper.png + +/etc/X11/xorg.conf.d/90-touchpad.conf: + file.managed: + - source: salt://dots/90-touchpad.conf + - user: root + - group: root + - mode: 777 + +'sudo mv /usr/bin/dmenu /usr/bin/dmenu-unlinked': + cmd.run: + - creates: /usr/bin/dmenu-unlinked +'sudo ln -s /usr/bin/rofi /usr/bin/dmenu': + cmd.run: + - creates: /usr/bin/dmenu +'mkdir /home/{{ user_name }}/.config/rofi': + cmd.run: + - creates: /home/{{ user_name }}/.config/rofi/ +/home/{{ user_name }}/.config/rofi/config.rasi: + file.managed: + - source: salt://dots/rofi-config.rasi + - user: root + - group: root + - mode: 777 + diff --git a/wm/wm-setup.top b/wm/wm-setup.top new file mode 100644 index 0000000..ade0aa7 --- /dev/null +++ b/wm/wm-setup.top @@ -0,0 +1,3 @@ +user: + dom0: + - wm.wm-setup -- cgit v1.2.3