aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-11-13 00:16:07 +0800
committerGuangxiong Lin <[email protected]>2022-11-13 00:16:07 +0800
commit1d7640555a1669d74d7fa8112b879efae69b6f97 (patch)
tree06173f6ed347ff760a767768eb49bc8776850fe6 /bin
parent03b1f7fac8f5dbe44494f08c773b2372ce0846ea (diff)
downloaddotfiles-1d7640555a1669d74d7fa8112b879efae69b6f97.tar.gz
dotfiles-1d7640555a1669d74d7fa8112b879efae69b6f97.tar.bz2
dotfiles-1d7640555a1669d74d7fa8112b879efae69b6f97.zip
Update config for sway
Diffstat (limited to 'bin')
-rwxr-xr-xbin/autostart-wayland7
-rwxr-xr-xbin/startsway7
2 files changed, 14 insertions, 0 deletions
diff --git a/bin/autostart-wayland b/bin/autostart-wayland
index f725c20..d74ecb0 100755
--- a/bin/autostart-wayland
+++ b/bin/autostart-wayland
@@ -7,4 +7,11 @@
[ -f /usr/bin/clipmenud ] && clipmenud &
+command -v gammastep > /dev/null && \
+ command -v awk > /dev/null && \
+ command -v tr > /dev/null && \
+ gammastep \
+ -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') \
+ -m wayland
+
[ -x "$HOME/.local/autostart" ] && "$HOME/.local/autostart"
diff --git a/bin/startsway b/bin/startsway
new file mode 100755
index 0000000..d8b3869
--- /dev/null
+++ b/bin/startsway
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+export XDG_CURRENT_DESKTOP=sway
+export XDG_SESSION_DESKTOP=sway
+export WLR_RENDER=vulkan
+
+exec sway