aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-11-22 23:16:01 +0800
committerGuangxiong Lin <[email protected]>2022-11-22 23:16:01 +0800
commit0d642734476df5795f229b0d336cb39d1e7be7b3 (patch)
treef436f7e031691bd23933ab0b7ee0d2d650201649
parent29a7a8c98d7fafbe71bbd82bb4bb91f81cb9bad8 (diff)
downloaddotfiles-0d642734476df5795f229b0d336cb39d1e7be7b3.tar.gz
dotfiles-0d642734476df5795f229b0d336cb39d1e7be7b3.tar.bz2
dotfiles-0d642734476df5795f229b0d336cb39d1e7be7b3.zip
Boot swaywm by script
-rw-r--r--.config/sway/config2
-rwxr-xr-xbin/startsway6
2 files changed, 5 insertions, 3 deletions
diff --git a/.config/sway/config b/.config/sway/config
index ace4ccc..7311480 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -22,8 +22,6 @@ set $term st
# set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu my-dmenu -m 0 -fn monospace:size=12 -nb '#222222' -nf '#bbbbbb' -sb '#005577' -sf '#eeeeee' | xargs swaymsg exec --
-exec --no-startup-id autostart-wayland
-
default_border pixel 1
default_floating_border pixel 1
diff --git a/bin/startsway b/bin/startsway
index b593354..812788b 100755
--- a/bin/startsway
+++ b/bin/startsway
@@ -5,4 +5,8 @@ export XDG_SESSION_DESKTOP=sway
export WLR_RENDER=vulkan
export MOZ_ENABLE_WAYLAND=1
-exec sway
+sway
+
+swaymsg -- exec --no-startup-id autostart-wayland
+
+exit 0