From 1008f5fb7116aecd8a6e06602f32279772e978da Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 11 Aug 2022 09:41:31 -0500 Subject: [PATCH] SWAYBG --- host/desktop/bin/reboot-to-windows | 6 ++++-- host/desktop/sway/config | 2 +- os/linux/arch/provision.d/optional/ui-packages.bash | 2 +- os/linux/sway/.gitignore | 2 ++ os/linux/sway/config | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 os/linux/sway/.gitignore diff --git a/host/desktop/bin/reboot-to-windows b/host/desktop/bin/reboot-to-windows index 690faba..7f89b67 100755 --- a/host/desktop/bin/reboot-to-windows +++ b/host/desktop/bin/reboot-to-windows @@ -1,4 +1,6 @@ #!/usr/bin/env sh -# use `efibootmgr` to list boot entries -sudo efibootmgr -n 0001 + +next_boot_entry_n="$(efibootmgr | awk 'match($0,/Boot([0-9]+)\*? Windows Boot Manager/,a){print a[1];exit}')" + +sudo efibootmgr -n "$next_boot_entry_n" sudo reboot diff --git a/host/desktop/sway/config b/host/desktop/sway/config index 643d35b..668078b 100644 --- a/host/desktop/sway/config +++ b/host/desktop/sway/config @@ -1 +1 @@ -exec output '"Dell Inc. DELL U2720Q CWTM623"' transform 270 scale 1.5 +output '"Dell Inc. DELL U2720Q CWTM623"' transform 270 scale 1.5 diff --git a/os/linux/arch/provision.d/optional/ui-packages.bash b/os/linux/arch/provision.d/optional/ui-packages.bash index 5501f52..df077da 100755 --- a/os/linux/arch/provision.d/optional/ui-packages.bash +++ b/os/linux/arch/provision.d/optional/ui-packages.bash @@ -54,7 +54,7 @@ paru -Sy --needed \ pavucontrol pulsemixer `# Audio Backend and Controls` \ playerctl `# Media Keys Controls` \ feh `# Image Viewer & Wallpaper Manager` \ - wlroots sway `# Wayland Compositor` \ + wlroots sway swaybg `# Wayland Compositor` \ swaylock swayidle `# Auto-Locking for Sway` \ kanshi `# Monitor Management for Sway` \ wofi `# Sway app launcher` \ diff --git a/os/linux/sway/.gitignore b/os/linux/sway/.gitignore new file mode 100644 index 0000000..8598a6a --- /dev/null +++ b/os/linux/sway/.gitignore @@ -0,0 +1,2 @@ +bg.jpg +bg.png diff --git a/os/linux/sway/config b/os/linux/sway/config index 13a5045..43eb4ee 100644 --- a/os/linux/sway/config +++ b/os/linux/sway/config @@ -188,7 +188,7 @@ exec mako # prevents all windows from stealing focus no_focus [class=".*"] -output * background $HOME/.wallpaper fill +output * background $HOME/.config/lytedev-dotfiles/os/linux/sway/bg.jpg fill include /etc/sway/config.d/* include $XDG_CONFIG_HOME/lytedev-env/*/sway/config