summary refs log tree commit diff
path: root/.config/sway
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-06-01 18:26:13 +0200
committerRobert Günzler <r@gnzler.io>2020-06-01 18:32:20 +0200
commite818554a2223fb63fc302783ad496a06858ab0a2 (patch)
tree6b30edd65f5c5c82bf21d6ca755c9b161940975f /.config/sway
parent0a580b1f7569f33b50e776d84210e2fcfe6ea157 (diff)
sway: reorder environment file + kanshi reload on start
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/env27
-rw-r--r--.config/sway/hibiki7
2 files changed, 21 insertions, 13 deletions
diff --git a/.config/sway/env b/.config/sway/env
index 316530c..8ca0b55 100644
--- a/.config/sway/env
+++ b/.config/sway/env
@@ -1,24 +1,29 @@
 #!/bin/sh
 
-# export XDG_RUNTIME_DIR=/run/user/1000
+export TERM=alacritty
 
-export DESKTOP_SESSION=gnome
+# export DESKTOP_SESSION=gnome
 export GDK_BACKEND=wayland
 export CLUTTER_BACKEND=wayland
-export SDK_VIDEODRIVER=wayland
-
 export QT_QPA_PLATFORM=wayland-egl
-# export QT_QPA_PLATFORM=
-# export QT_AUTO_SCREEN_SCALE_FACTOR=0
-# export QT_SCREEN_SCALE_FACTORS='1.5;1'
-export QT_QPA_PLATFORMTHEME=qgnomeplatform
-export QT_STYLE_OVERRIDE=adwaita
-
+export SDL_VIDEODRIVER=wayland
+export ECORE_EVAS_ENGINE=wayland-egl
+export ELM_ENGINE=wayland_egl
 export _JAVA_AWT_WM_NONREPARENTING=1
+export NO_AT_BRIDGE=1
 export MOZ_ENABLE_WAYLAND=1
 
+export QT_QPA_PLATFORMTHEME=qgnomeplatform
+export QT_STYLE_OVERRIDE=adwaita
+
 export XMODIFIERS=@im=ibus
 export QT_IM_MODULE=ibus
 export GTK_IM_MODULE=xim
 
-export TERM=alacritty
+export XDG_SESSION_TYPE=wayland
+export XDG_SESSION_DESKTOP=sway
+# export XDG_CURRENT_DESKTOP=Unity
+export XDG_CURRENT_DESKTOP=sway
+
+# export WLR_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0"
+export WLR_DRM_DEVICES="/dev/dri/card0"
diff --git a/.config/sway/hibiki b/.config/sway/hibiki
index 37345c2..5a61f59 100644
--- a/.config/sway/hibiki
+++ b/.config/sway/hibiki
@@ -3,12 +3,12 @@
 set $laptop eDP-1
 set $desk "Dell Inc. DELL U2518D 3C4YP87AAK3L"
 
-# output * scale 1
-
 font pango:Iosevka Sparkle 12
 
+output * scale 1
 output * max_render_time 1
 output * adaptive_sync on
+
 # for_window [app_id=Alacritty] max_render_time 2
 # for_window [app_id=firefox] max_render_time 3
 # seat * hide_cursor 2000
@@ -29,5 +29,8 @@ exec swayidle -w \
 	before-sleep 'lock' \
 	lock lock
 
+exec_always kanshictl reload
+
+# clampshell mode?
 #bindswitch --locked lid:on output $laptop disable
 #bindswitch --locked lid:off output $laptop enable