aboutsummaryrefslogtreecommitdiff
path: root/.config/sway
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-07-14 23:20:39 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-07-14 23:20:39 +0000
commit3a0868feb48fbe004942ed84bf7bea000428de82 (patch)
tree1bf67ee83c49cfc4d70acacedd0ff4a6bc977ede /.config/sway
parent106067ed048a684da33669eff984bd8b98f554a2 (diff)
downloaddotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.tar
dotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.tar.gz
dotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.tar.bz2
dotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.tar.lz
dotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.tar.xz
dotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.tar.zst
dotfiles-3a0868feb48fbe004942ed84bf7bea000428de82.zip
implement turnstile-style services
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/config26
1 files changed, 4 insertions, 22 deletions
diff --git a/.config/sway/config b/.config/sway/config
index fcfad93..ac82b2f 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -322,33 +322,15 @@ input "type:touchpad" {
output $laptop_screen enable
exec_always ${XDG_CONFIG_HOME:-~/.config}/sway/clamshell.sh
-exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
-exec dunst
-exec nm-applet --indicator
-exec blueman-applet
-exec thunar --daemon
-exec pipewire
-exec pipewire-pulse
-exec wireplumber
-exec gentoo-pipewire-launcher
-exec foot --server
+exec_always echo $WAYLAND_DISPLAY > $HOME/.config/service-env/WAYLAND_DISPLAY
+exec_always echo $DISPLAY > $HOME/.config/service-env/DISPLAY
+exec_always echo $SWAYSOCK > $HOME/.config/service-env/SWAYSOCK
+# TODO: How do I use this?
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
-exec pactl load-module module-null-sink media.class=Audio/Sink sink_name=my-sink channel_map=surround-51
-exec pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name="my-source" channel_map=front-left,front-right
-exec pactl load-module module-null-sink media.class=Audio/Duplex sink_name="Main thing" audio.position=FL,FR,RL,RR
-
-exec export SDL_VIDEODRIVER=wayland
-exec export _JAVA_AWT_WM_NONREPARENTING=1
-exec export QT_QPA_PLATFORM=wayland
-exec export XDG_CURRENT_DESKTOP=sway
-exec export XDG_SESSION_DESKTOP=sway
-exec "swaysome init 1"
-exec "swayrd"
-
include /etc/sway/config.d/*