diff --git a/.config/sway/config b/.config/sway/config index bca82f7..5dc6ec9 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,3 +1,6 @@ +# Initial Setup +exec ~/set_once.sh + # Config for sway # # Read `man 5 sway` for a complete reference. diff --git a/.nanorc b/.nanorc new file mode 100644 index 0000000..7fa0d6c --- /dev/null +++ b/.nanorc @@ -0,0 +1 @@ +include /usr/share/nano/*.nanorc diff --git a/.profile b/.profile index bf2dd7e..5714a06 100644 --- a/.profile +++ b/.profile @@ -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 diff --git a/set_once.sh b/set_once.sh new file mode 100644 index 0000000..8c14921 --- /dev/null +++ b/set_once.sh @@ -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