aboutsummaryrefslogtreecommitdiff
path: root/linux/sway
diff options
context:
space:
mode:
Diffstat (limited to 'linux/sway')
-rw-r--r--linux/sway/autostart17
-rw-r--r--linux/sway/config2
-rw-r--r--linux/sway/hid6
3 files changed, 20 insertions, 5 deletions
diff --git a/linux/sway/autostart b/linux/sway/autostart
index 2d5eae7..3e53a79 100644
--- a/linux/sway/autostart
+++ b/linux/sway/autostart
@@ -2,9 +2,11 @@
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
# screen locking
-exec swayidle timeout 1200 physlock \
- timeout 1800 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on"'
+exec swayidle -w \
+ timeout 300 'swaymsg "output * dpms off"' \
+ timeout 3600 physlock \
+ resume 'swaymsg "output * dpms on"' \
+ before-sleep physlock
# notification centre
exec swaync
@@ -24,3 +26,12 @@ exec wl-paste -t text --watch clipman store --no-persist
# Nice color hues in the evenings
exec wlsunset -l 59.9614 -L 10.925 -t 4500 -T 6500 -g 1.0
+# start nextcloud
+exec_always nextcloud --background
+
+# gnome keyring daemon
+exec_always eval $(gnome-keyring-daemon --start)
+exec_always export SSH_AUTH_SOCK
+
+# IME
+exec_always fcitx5 -d
diff --git a/linux/sway/config b/linux/sway/config
index a772cd6..fb4afe5 100644
--- a/linux/sway/config
+++ b/linux/sway/config
@@ -47,7 +47,7 @@ bindsym $Mod+Return exec alacritty
bindsym $Mod+w exec firefox
bindsym $Mod+f exec thunar
bindsym $Mod+c exec swaync-client -t
-bindsym Mod1+l exec nwg-lock
+bindsym Mod1+l exec physlock
bindsym $Mod+d exec wofi --show=drun
# Exit menu
diff --git a/linux/sway/hid b/linux/sway/hid
index 7ef3f70..23ad103 100644
--- a/linux/sway/hid
+++ b/linux/sway/hid
@@ -1,3 +1,7 @@
+output eDP-1 {
+ scale 1.4
+}
+
input "type:keyboard" {
xkb_layout us,no
repeat_delay 300
@@ -8,7 +12,7 @@ input "type:keyboard" {
input "type:touchpad" {
pointer_accel 0.0
- natural_scroll disabled
+ natural_scroll enabled
scroll_factor 1.0
scroll_method two_finger
left_handed disabled