summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-06-19 19:40:00 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-06-19 19:40:00 +0530
commit11da908b78b474dc8b574f9dea695c633fd8a88f (patch)
tree9cbff5a8628275153b772d42d8b880a2ad629ddb
parent9c2e80c9cd3b7238c7f04fb191f2a7cc96d148b4 (diff)
minor changes
-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