summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/surft4
-rw-r--r--etc/systemd/logind.conf8
-rw-r--r--etc/systemd/system/betterlockscreen@.service2
3 files changed, 9 insertions, 5 deletions
diff --git a/.local/bin/surft b/.local/bin/surft
new file mode 100755
index 0000000..8507ce1
--- /dev/null
+++ b/.local/bin/surft
@@ -0,0 +1,4 @@
+#!/bin/sh
+# open surf browser in tabbed format
+
+tabbed -c surf -e & disown
diff --git a/etc/systemd/logind.conf b/etc/systemd/logind.conf
index c004d34..63747c2 100644
--- a/etc/systemd/logind.conf
+++ b/etc/systemd/logind.conf
@@ -22,15 +22,15 @@
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
-#HandlePowerKey=poweroff
+HandlePowerKey=suspend
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
-#HandleSuspendKey=suspend
+HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
-#HandleHibernateKey=hibernate
+HandleHibernateKey=suspend
#HandleHibernateKeyLongPress=ignore
-#HandleLidSwitch=suspend
+HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
diff --git a/etc/systemd/system/betterlockscreen@.service b/etc/systemd/system/betterlockscreen@.service
index 012789a..99af0e0 100644
--- a/etc/systemd/system/betterlockscreen@.service
+++ b/etc/systemd/system/betterlockscreen@.service
@@ -7,9 +7,9 @@ Before=suspend.target
User=%I
Type=simple
Environment=DISPLAY=:0
+ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/bin/betterlockscreen --lock dimblur
TimeoutSec=infinity
-ExecStartPost=/usr/bin/sleep 1
[Install]
WantedBy=sleep.target