aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/lf/lfrc2
-rwxr-xr-xconfig/lf/previewer8
-rwxr-xr-xconfig/x11/xinitrc28
3 files changed, 37 insertions, 1 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc
new file mode 100644
index 0000000..e35c7ea
--- /dev/null
+++ b/config/lf/lfrc
@@ -0,0 +1,2 @@
+set icons
+set previewer '~/.config/lf/previewer'
diff --git a/config/lf/previewer b/config/lf/previewer
new file mode 100755
index 0000000..77cab43
--- /dev/null
+++ b/config/lf/previewer
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+case "$1" in
+ *.tar*) tar tf "$1";;
+ *.zip) unzip -l "$1";;
+ *.rar) unrar l "$1";;
+ *) bat --number --force-colorization --terminal-width "$4" "$1";;
+esac
diff --git a/config/x11/xinitrc b/config/x11/xinitrc
index 9250782..19d5d9f 100755
--- a/config/x11/xinitrc
+++ b/config/x11/xinitrc
@@ -6,7 +6,7 @@ dunst & # notification daemon
unclutter --timeout 10 --fork # hide mouse after 2s
clout push-watch & # could with rsync
xrdb "$XDG_CONFIG_HOME/x11/Xresources"
-syncthing --no-browser &
+syncthing --no-browser > ~/.cache/syncthing.log 2>&1 &
hsetroot -add '#111' -add '#222' -gradient 180
case "$(cat /etc/hostname)" in
@@ -34,3 +34,29 @@ esac
# awesome
xmonad || { xmonad --recompile; xmonad; }
+
+# keynav daemonize # moving the cursor around without the mouse
+# redshift & # filter blue light
+# dunst & # notification daemon
+# unclutter --timeout 10 --fork # hide mouse after 2s
+# clout push-watch & # could with rsync
+# xrdb "$XDG_CONFIG_HOME/x11/Xresources"
+# syncthing --no-browser &
+# hsetroot -add '#111' -add '#222' -gradient 180
+# switch "$(cat /etc/hostname)"
+# case 'charles-main'
+# if xrandr | grep 'DisplayPort-0 connected'
+# xrandr --output DisplayPort-0 --mode 3840x1080 --rate 68
+# else if xrandr | grep 'HDMI-0 connected'
+# xrandr --output DVI-0 --auto --left-of DVI-1 \
+# --output DVI-1 --mode 1920x1080 --primary --left-of HDMI-0 \
+# --output HDMI-0 --mode 1920x1080
+# else
+# xrandr --output DVI-0 --auto --left-of DVI-1 \
+# --output DVI-1 --mode 1920x1080 --primary
+# end
+# case 'charles-laptop'
+# xrandr | grep 'VGA1.*connected' &&
+# xrandr --output LVDS1 --primary --left-of VGA1 \
+# --output VGA1 --mode 1280x1024
+# end