summaryrefslogtreecommitdiff
path: root/.xbindkeysrc
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2026-10-08 14:32:50 +0200
committerWriterV2 <primary-v2@protonmail.com>2026-10-08 14:32:50 +0200
commitd668fc870d825de3c9659db1accbd6ab6066730e (patch)
treef95a92bf5ae6b02e538bcd95da99fdb13322ba98 /.xbindkeysrc
parenta4b64db132e047d9bef53712a545e54ec8fbbd4c (diff)
X: Update key bindings
- Use XDG default applications - Search for all media on disk - Add key binding to open video
Diffstat (limited to '.xbindkeysrc')
-rw-r--r--.xbindkeysrc13
1 files changed, 9 insertions, 4 deletions
diff --git a/.xbindkeysrc b/.xbindkeysrc
index 095381c..e23d3a4 100644
--- a/.xbindkeysrc
+++ b/.xbindkeysrc
@@ -27,16 +27,21 @@ Alt+Mod4 + c
m:0x48 + c:53
Alt+Mod4 + x
-# open an image (rofi + feh)
-"fd . -e png -e jpg -e gif /mnt/files/Pictures | rofi -dmenu | xargs -I {} feh {}"
+# open an image (rofi + default xdg)
+"fd . -e png -e jpg -e gif /mnt | rofi -dmenu | xargs -I {} xdg-open {}"
m:0x48 + c:33
Alt+Mod4 + p
-# open a document (rofi + pdf)
-"fd . -e pdf /mnt/files/ | rofi -dmenu | xargs -I {} firefox {}"
+# open a document (rofi + default xdg)
+"fd . -e pdf /mnt | rofi -dmenu | xargs -I {} xdg-open {}"
m:0x48 + c:40
Alt+Mod4 + d
+# open a video (rofi + default xdg)
+"fd . -e mp4 -e webm -e mkv -e ogg -e wmv -e avi -e mov -e qt -e mpeg -e mpg /mnt | rofi -dmenu | xargs -I {} xdg-open {}"
+m:0x48 + c:55
+Alt+Mod4 + v
+
# save screenshot with selection
"maim -s /mnt/files/Pictures/Screens/$(date +%s)-screen.png"
m:0x0 + c:107