summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpublic/.local/bin/dmenu-opentable.sh7
-rwxr-xr-xpublic/.local/bin/laptop-xrandr.sh8
-rw-r--r--public/.xbindkeysrc3
3 files changed, 13 insertions, 5 deletions
diff --git a/public/.local/bin/dmenu-opentable.sh b/public/.local/bin/dmenu-opentable.sh
new file mode 100755
index 0000000..69786bb
--- /dev/null
+++ b/public/.local/bin/dmenu-opentable.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+# xdg-open a file selected through dmenu
+
+DIR="$HOME/docs/spreadsheet"
+FILE=$(ls "$DIR" | dmenu -i -l 10 -p "Select spreadsheet:")
+[ -z "$FILE" ] && exit 1
+xdg-open "$DIR/$FILE"
diff --git a/public/.local/bin/laptop-xrandr.sh b/public/.local/bin/laptop-xrandr.sh
index cd3a66f..833586c 100755
--- a/public/.local/bin/laptop-xrandr.sh
+++ b/public/.local/bin/laptop-xrandr.sh
@@ -9,11 +9,9 @@
simple_2_monitor() {
# enable
- xrandr --output eDP --auto \
- --output HDMI-A-0 --auto --left-of eDP
+ xrandr --output eDP --auto --output HDMI-A-0 --auto --left-of eDP
# disable
- xrandr --output eDP --auto \
- --output HDMI-A-0 --off
+ #xrandr --output eDP --auto --output HDMI-A-0 --off
}
# Thank you: https://www.maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/
@@ -34,5 +32,5 @@ case $1 in
4k) only_hdmi_4k ;;
2k) only_hdmi_2k ;;
reset) xrandr ;;
- *) only_hdmi_4k
+ *) simple_2_monitor ;;
esac
diff --git a/public/.xbindkeysrc b/public/.xbindkeysrc
index b13bb79..869a1c8 100644
--- a/public/.xbindkeysrc
+++ b/public/.xbindkeysrc
@@ -162,6 +162,9 @@
"screenshot_ocr.sh"
Mod4 + s
+"dmenu-opentable.sh"
+ Mod4 + d
+
# This key combination (Mod4 + Space) seems to break xbindkeys
# See Also:
# https://bbs.archlinux.org/viewtopic.php?id=226182