From 6b9a5c00fe385338dd7fef20d3638abc1b20b419 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Tue, 1 Jul 2025 19:15:59 +0900 Subject: Add dmenu-opentable.sh --- public/.local/bin/dmenu-opentable.sh | 7 +++++++ public/.local/bin/laptop-xrandr.sh | 8 +++----- public/.xbindkeysrc | 3 +++ 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100755 public/.local/bin/dmenu-opentable.sh (limited to 'public') 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 -- cgit v1.2.3