Add sway for linux.
This commit is contained in:
parent
8bd1c8f79e
commit
a808f81e27
@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- users
|
||||
- gpg
|
||||
|
@ -1,10 +1,14 @@
|
||||
# Enable power-saving display c-states (0=disable; 1=up to DC5; 2=up to DC6)
|
||||
compat.linuxkpi.i915_enable_dc=2
|
||||
hw.i915kms.enable_dc=2
|
||||
# Enable frame buffer compression which allegedly saves power
|
||||
compat.linuxkpi.i915_enable_fbc=1
|
||||
hw.i915kms.enable_fbc=1
|
||||
# Skip extra modesets during boot
|
||||
compat.linuxkpi.i915_fastboot=1
|
||||
hw.i915kms.fastboot=1
|
||||
# Disable display power wells (0=power wells always on, 1=power wells disabled when possible)
|
||||
compat.linuxkpi.i915_disable_power_well=1
|
||||
hw.i915kms.disable_power_well=1
|
||||
# Reduce interrupt rate to make it more likely that a C3 sleep state can be hit. Should make the CPU wake up less often.
|
||||
kern.hz=100
|
||||
# Enable dpcd backlight control
|
||||
hw.i915kms.enable_dpcd_backlight=1
|
||||
# Enable panel self refresh
|
||||
# hw.i915kms.enable_psr=1
|
||||
|
@ -1,3 +1,27 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- sway
|
||||
- swaybg
|
||||
- swayidle
|
||||
- swaylock
|
||||
- wofi
|
||||
- mako
|
||||
- grim
|
||||
- qt5-wayland
|
||||
# - gvfs
|
||||
- slurp # screen coordinates for screenshots
|
||||
- libnotify # mako doesn't seem to work without it
|
||||
- pcmanfm # For mounting drives
|
||||
- wf-recorder # screen recording
|
||||
- xdg-desktop-portal
|
||||
- xdg-desktop-portal-wlr # screen sharing
|
||||
# - rofimoji
|
||||
- wtype # for rofimoji to be able to insert characters
|
||||
- dbus # for desktop notifications
|
||||
- jq
|
||||
state: present
|
||||
|
||||
- name: Install scripts
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
|
@ -1,27 +1,8 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- sway
|
||||
- swaybg
|
||||
- swayidle
|
||||
- swaylock
|
||||
- wofi
|
||||
- mako
|
||||
- grim
|
||||
- xeyes
|
||||
- qt5-wayland
|
||||
# - gvfs
|
||||
- xauth # for ssh x11 forwarding
|
||||
- slurp # screen coordinates for screenshots
|
||||
- libnotify # mako doesn't seem to work without it
|
||||
- pcmanfm # For mounting drives
|
||||
- wf-recorder # screen recording
|
||||
- xdg-desktop-portal
|
||||
- xdg-desktop-portal-wlr # screen sharing
|
||||
# - rofimoji
|
||||
- wtype # for rofimoji to be able to insert characters
|
||||
- dbus # for desktop notifications
|
||||
- jq
|
||||
- wev # For debugging input
|
||||
- wlogout # Log out prompt
|
||||
state: present
|
||||
|
@ -1,3 +1,27 @@
|
||||
- name: Build aur packages
|
||||
register: buildaur
|
||||
become_user: "{{ build_user.name }}"
|
||||
command: "aurutils-sync --no-view {{ item }}"
|
||||
args:
|
||||
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
||||
loop:
|
||||
- wev
|
||||
|
||||
- name: Update cache
|
||||
when: buildaur.changed
|
||||
pacman:
|
||||
name: []
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- wev
|
||||
- xorg-xauth
|
||||
- xorg-xeyes
|
||||
- xorg-xwayland
|
||||
|
||||
- name: Install scripts
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
|
@ -13,6 +13,7 @@ while true; do
|
||||
battery_percentage=$(apm -l)
|
||||
battery_status=$(apm -b)
|
||||
seconds_remaining=$(apm -t)
|
||||
# minutes remaining would be at sysctl hw.acpi.battery.time
|
||||
class=""
|
||||
|
||||
if [ $battery_status -eq 3 ]; then
|
||||
|
@ -3,6 +3,7 @@
|
||||
name:
|
||||
- bc # For waybar sound script
|
||||
- upower # Needed for waybar battery script
|
||||
- waybar
|
||||
state: present
|
||||
|
||||
- name: Install scripts
|
||||
|
@ -10,6 +10,8 @@
|
||||
group: "{{ group_name.stdout }}"
|
||||
loop:
|
||||
- ".config/waybar"
|
||||
- ".config/sway"
|
||||
- ".config/sway/config.d"
|
||||
|
||||
- name: Copy files
|
||||
copy:
|
||||
|
@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- users
|
||||
- build
|
||||
|
@ -1,9 +1,3 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- zrepl
|
||||
state: present
|
||||
|
||||
- name: Create directories
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
@ -14,6 +8,12 @@
|
||||
loop:
|
||||
- /usr/local/etc/zrepl
|
||||
|
||||
- import_tasks: tasks/freebsd.yaml
|
||||
when: 'os_flavor == "freebsd"'
|
||||
|
||||
- import_tasks: tasks/linux.yaml
|
||||
when: 'os_flavor == "linux"'
|
||||
|
||||
- name: Configure zrepl
|
||||
template:
|
||||
src: templates/zrepl.yml.j2
|
||||
@ -23,9 +23,3 @@
|
||||
group: wheel
|
||||
validate: "zrepl configcheck --config %s"
|
||||
notify: "restart zrepl"
|
||||
|
||||
- import_tasks: tasks/freebsd.yaml
|
||||
when: 'os_flavor == "freebsd"'
|
||||
|
||||
- import_tasks: tasks/linux.yaml
|
||||
when: 'os_flavor == "linux"'
|
||||
|
@ -1,3 +1,9 @@
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- zrepl
|
||||
state: present
|
||||
|
||||
- name: Enable services
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
|
@ -1,3 +1,25 @@
|
||||
- name: Build aur packages
|
||||
register: buildaur
|
||||
become_user: "{{ build_user.name }}"
|
||||
command: "aurutils-sync --no-view {{ item }}"
|
||||
args:
|
||||
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
||||
loop:
|
||||
- zrepl
|
||||
|
||||
- name: Update cache
|
||||
when: buildaur.changed
|
||||
pacman:
|
||||
name: []
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- zrepl
|
||||
state: present
|
||||
|
||||
- name: Enable services
|
||||
systemd:
|
||||
enabled: yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user