aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-05 05:37:57 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-08-05 05:37:57 +0300
commitbddebc4144b1262d40d6fd26d5e98aeb51b0202f (patch)
tree0e3b0e6752e8056376c8eb95ac08b5ff570645a1
parente6f62e8c5445c121adbfde76b037fd712cd2a1cd (diff)
parentc82c45a89f0e63c9fb7e82e6cda9abcaed04057f (diff)
downloadswayrice-bddebc4144b1262d40d6fd26d5e98aeb51b0202f.tar.gz
swayrice-bddebc4144b1262d40d6fd26d5e98aeb51b0202f.zip
Merge branch 'master' of git.yaroslavps.com:public/configs/swayrice
-rw-r--r--dotfiles/.config/sway/basedpad2
-rwxr-xr-xdotfiles/.local/bin/scope2
-rw-r--r--system/elogind/logind.conf54
3 files changed, 56 insertions, 2 deletions
diff --git a/dotfiles/.config/sway/basedpad b/dotfiles/.config/sway/basedpad
index 6d062b4..7b392dd 100644
--- a/dotfiles/.config/sway/basedpad
+++ b/dotfiles/.config/sway/basedpad
@@ -9,7 +9,7 @@ output "*" background ~/.config/wall1.png fill
output "LVDS-1" pos 0 0
# On lid close
-bindswitch --reload --locked lid:on exec "lock-color"
+bindswitch --reload --locked lid:on exec "swaysession suspend"
# Workspaces
workspace $ws1 output LVDS-1
diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope
index d3041c1..5a6c157 100755
--- a/dotfiles/.local/bin/scope
+++ b/dotfiles/.local/bin/scope
@@ -34,7 +34,7 @@ handle_mime() {
case "${mimetype}" in
text/html) w3m -dump "${FILE_PATH}" ;;
text/troff) man ./ "${FILE_PATH}" | col -b ;;
- text/* | */xml | */csv)
+ text/* | */xml | */csv | */json)
if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then
exit 2
fi
diff --git a/system/elogind/logind.conf b/system/elogind/logind.conf
new file mode 100644
index 0000000..b5e7d2b
--- /dev/null
+++ b/system/elogind/logind.conf
@@ -0,0 +1,54 @@
+# This file is part of elogind.
+#
+# elogind is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# Entries in this file show the compile time defaults.
+# You can change settings by editing this file.
+# Defaults can be restored by simply deleting this file.
+#
+# See logind.conf(5) for details.
+
+[Login]
+#KillUserProcesses=no
+#KillOnlyUsers=
+#KillExcludeUsers=root
+#InhibitDelayMaxSec=5
+#HandlePowerKey=poweroff
+#HandleSuspendKey=suspend
+#HandleHibernateKey=hibernate
+HandleLidSwitch=ignore
+HandleLidSwitchExternalPower=ignore
+#HandleLidSwitchDocked=ignore
+#PowerKeyIgnoreInhibited=no
+#SuspendKeyIgnoreInhibited=no
+#HibernateKeyIgnoreInhibited=no
+#LidSwitchIgnoreInhibited=yes
+#HoldoffTimeoutSec=30s
+#IdleAction=ignore
+#IdleActionSec=30min
+#RuntimeDirectorySize=10%
+#RuntimeDirectoryInodes=400k
+#RemoveIPC=yes
+#InhibitorsMax=8192
+#SessionsMax=8192
+
+[Sleep]
+#AllowSuspend=yes
+#AllowHibernation=yes
+#AllowSuspendThenHibernate=yes
+#AllowHybridSleep=yes
+#AllowPowerOffInterrupts=no
+#BroadcastPowerOffInterrupts=yes
+#AllowSuspendInterrupts=no
+#BroadcastSuspendInterrupts=yes
+#HandleNvidiaSleep=no
+#SuspendState=mem standby freeze
+#SuspendMode=
+#HibernateState=disk
+#HibernateMode=platform shutdown
+#HybridSleepState=disk
+#HybridSleepMode=suspend platform shutdown
+#HibernateDelaySec=10800