aboutsummaryrefslogtreecommitdiff
path: root/sway/init.sh
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2023-10-14 17:15:36 +0200
committerbozo.kopic <bozo@kopic.xyz>2023-10-14 17:15:36 +0200
commitc2ef7cf345a5b609157ee8ff0b7330ed6c26f272 (patch)
tree70401129e6aa2496f72af24cbb9bc1349812b716 /sway/init.sh
parent872615941ef71eefc86c3e637959a2ede7f33c20 (diff)
.
Diffstat (limited to 'sway/init.sh')
-rwxr-xr-xsway/init.sh32
1 files changed, 19 insertions, 13 deletions
diff --git a/sway/init.sh b/sway/init.sh
index c01f216..95d2063 100755
--- a/sway/init.sh
+++ b/sway/init.sh
@@ -1,23 +1,29 @@
#!/bin/sh
# export GDK_DPI_SCALE=0.95
-gsettings set org.gnome.desktop.interface scaling-factor 1
-gsettings set org.gnome.desktop.interface text-scaling-factor 1
-gsettings set org.gnome.desktop.interface cursor-size 32
+if command -v gsettings > /dev/null; then
+ gsettings set org.gnome.desktop.interface scaling-factor 1
+ gsettings set org.gnome.desktop.interface text-scaling-factor 1
+ gsettings set org.gnome.desktop.interface cursor-size 32
+fi
export QT_QPA_PLATFORM=wayland
-systemctl --user import-environment \
- QT_QPA_PLATFORM \
- SWAYSOCK \
- WAYLAND_DISPLAY \
- XDG_SESSION_TYPE \
- XDG_CURRENT_DESKTOP
-dbus-update-activation-environment --systemd --all
+export XDG_CURRENT_DESKTOP=sway
-systemctl --user restart plasma-kactivitymanagerd.service
+if command -v systemctl > /dev/null; then
+ systemctl --user import-environment \
+ QT_QPA_PLATFORM \
+ SWAYSOCK \
+ WAYLAND_DISPLAY \
+ XDG_SESSION_TYPE \
+ XDG_CURRENT_DESKTOP
+ dbus-update-activation-environment --systemd --all
-~/.config/sway/swayidle.sh &
+ systemctl --user restart xdg-desktop-portal
+ systemctl --user restart xdg-desktop-portal-wlr
+ systemctl --user restart plasma-kactivitymanagerd
+fi
+~/.config/sway/swayidle.sh &
kanshi &
-
waybar -c ~/.config/waybar/sway.conf &