blob: 903d4eaa650eef5d357ca7a2f912cb77183cca9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/sh
# export GDK_DPI_SCALE=0.95
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
export XDG_CURRENT_DESKTOP=sway
os_id=$(. /etc/os-release && echo $ID)
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
systemctl --user restart xdg-desktop-portal
systemctl --user restart xdg-desktop-portal-wlr
systemctl --user restart xdg-desktop-portal-gtk
systemctl --user restart plasma-kactivitymanagerd
else
dbus-update-activation-environment WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP
if [ "$os_id" = "alpine" ]; then
/usr/libexec/pipewire-launcher &
/usr/libexec/xdg-desktop-portal-wlr &
elif [ "$os_id" = "void" ]; then
pipewire &
fi
fi
~/.config/sway/swayidle.sh &
kanshi &
waybar -c ~/.config/waybar/sway.conf &
|