Merge pull request #9 from EndeavourOS-Community-Editions/next

Next
This commit is contained in:
Johannes Kamprad
2021-08-24 17:09:00 +00:00
committed by GitHub
4 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
# Initial Setup
exec ~/set_once.sh
# Config for sway
#
# Read `man 5 sway` for a complete reference.

1
.nanorc Normal file
View File

@@ -0,0 +1 @@
include /usr/share/nano/*.nanorc

View File

@@ -2,4 +2,5 @@ export MOZ_ENABLE_WAYLAND=1
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export WLR_NO_HARDWARE_CURSORS=1
#export WLR_NO_HARDWARE_CURSORS=0
#export WLR_RENDERER_ALLOW_SOFTWARE=1

11
set_once.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
dbus-launch dconf load / < ~/xed.dconf
chmod -R +x ~/.config/sway/scripts
chmod -R +x ~/.config/waybar/scripts
chmod -R +x ~/.config/wofi/windows.py
case "$(systemd-detect-virt)" in
kvm | qemu) sed -i ~/.profile -e 's|^#\(export WLR_RENDERER_ALLOW_SOFTWARE=1\)$|\1|' ;;
esac
sed -i 's|\(exec ~/set_once.sh\)|# \1|' ~/.config/sway/config
rm ~/xed.dconf
rm ~/set_once.sh