From 0d3e81d7d691adc6ce25d87bccb0c6e381911f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 23 Jul 2021 21:44:12 +0300 Subject: Better suspend on lid close Tell elogind to ignore lid events, rely completely on Sway for it to properly lock screen and suspend. --- dotfiles/.config/sway/basedpad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dotfiles') 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 -- cgit v1.2.3 From c82c45a89f0e63c9fb7e82e6cda9abcaed04057f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 30 Jul 2021 15:55:54 +0300 Subject: lf/scope: highlight json --- dotfiles/.local/bin/scope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dotfiles') 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 -- cgit v1.2.3