From 3e5011cc5eb8331206bd15977c3c5b7cb37fb28f Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 15 Nov 2024 10:13:19 +0100 Subject: asdf --- config/openbox/autostart | 12 ++++++++++++ config/openbox/rc-templ.xml | 7 ++++++- config/openbox/run-ollama | 3 +++ config/openbox/scr | 2 ++ config/openbox/small-templ.xml | 12 ++++++------ config/openbox/wireplumber | 1 + ocr | 7 +++++++ xinitrc | 15 +++++++++++++++ xmodmap | 13 +++++++++++++ 9 files changed, 65 insertions(+), 7 deletions(-) create mode 100755 config/openbox/run-ollama create mode 100755 config/openbox/scr create mode 100755 config/openbox/wireplumber create mode 100755 ocr create mode 100755 xinitrc create mode 100644 xmodmap diff --git a/config/openbox/autostart b/config/openbox/autostart index c7f63b7..90d7b27 100644 --- a/config/openbox/autostart +++ b/config/openbox/autostart @@ -1,15 +1,27 @@ CONFDIR=$HOME/.config/openbox $CONFDIR/run-autorun +pkill -9 -f gnome-keyring-daemon gnome-keyring-daemon --start & +pkill -9 -f polkit-gnome-authentication-agent-1 +/usr/libexec/polkit-gnome-authentication-agent-1 & +pkill -9 -f xfce4-panel xfce4-panel & +pkill -9 -f xfce4-power-manager xfce4-power-manager & +pkill -9 -f xfce4-clipman xfce4-clipman & +pkill -9 -f xcape xcape -e 'Super_L=Control_L|Shift_L|Alt_L|Super_L|D' & +pkill -9 -f xfce4-notifyd /usr/lib64/xfce4/notifyd/xfce4-notifyd & +pkill -9 -f spacefm spacefm --desktop & xscreensaver -no-splash & +pkill -9 -f nm-applet nm-applet & +pkill -9 -f cortile-x86 +pkill -9 -f cortile-arm64 $CONFDIR/run-cortile & $CONFDIR/ibus-wait & diff --git a/config/openbox/rc-templ.xml b/config/openbox/rc-templ.xml index abfb4ee..85b0c92 100644 --- a/config/openbox/rc-templ.xml +++ b/config/openbox/rc-templ.xml @@ -327,7 +327,12 @@ - xfce4-screenshooter -r + scrot -s -e 'xclip -selection clipboard -t image/png -i $f' + + + + + ocr diff --git a/config/openbox/run-ollama b/config/openbox/run-ollama new file mode 100755 index 0000000..55237a7 --- /dev/null +++ b/config/openbox/run-ollama @@ -0,0 +1,3 @@ +#!/bin/bash + +ollama serve diff --git a/config/openbox/scr b/config/openbox/scr new file mode 100755 index 0000000..a8186ba --- /dev/null +++ b/config/openbox/scr @@ -0,0 +1,2 @@ +#!/bin/bash +scrot -s -e 'xclip -selection clipboard -t image/png -i $f' diff --git a/config/openbox/small-templ.xml b/config/openbox/small-templ.xml index d01da89..18ffa9f 100644 --- a/config/openbox/small-templ.xml +++ b/config/openbox/small-templ.xml @@ -1,6 +1,6 @@ Px437 DOS/V re. JPN16 - 12 + 13 Normal @@ -9,7 +9,7 @@ Px437 DOS/V re. JPN16 - 12 + 13 Normal @@ -18,7 +18,7 @@ Px437 DOS/V re. JPN12 - 9 + 10 Normal @@ -27,7 +27,7 @@ Px437 DOS/V re. JPN12 - 9 + 10 Normal @@ -36,7 +36,7 @@ Px437 DOS/V re. JPN12 - 9 + 10 Bold @@ -45,7 +45,7 @@ Px437 DOS/V re. JPN12 - 9 + 10 Bold diff --git a/config/openbox/wireplumber b/config/openbox/wireplumber new file mode 100755 index 0000000..480df7a --- /dev/null +++ b/config/openbox/wireplumber @@ -0,0 +1 @@ +daemon wireplumber diff --git a/ocr b/ocr new file mode 100755 index 0000000..eb1d096 --- /dev/null +++ b/ocr @@ -0,0 +1,7 @@ +#!/bin/bash +READ=$(scrot -s 'temp_%Y%m%d_%H%M%S.png' -e 'tesseract $f stdout -l jpn && rm $f') + +if [[ ! -z $READ ]]; then + echo $READ | xclip -selection clipboard +fi + diff --git a/xinitrc b/xinitrc new file mode 100755 index 0000000..36d6469 --- /dev/null +++ b/xinitrc @@ -0,0 +1,15 @@ +#!/bin/sh + +# /etc/X11/xinit/xinitrc +# +# global xinitrc file, used by all X sessions started by xinit (startx) + +# invoke global X session script +# +export GTK_IM_MODULE=ibus +export QT_IM_MODULE=ibus +export XMODIFIERS='@im=ibus' +xrandr --output DP-0 --mode 1920x1080 --rate 165 +xrandr --output DP-0 --mode 1280x1024 --rate 75 +[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +. /etc/X11/Xsession diff --git a/xmodmap b/xmodmap new file mode 100644 index 0000000..f49fa66 --- /dev/null +++ b/xmodmap @@ -0,0 +1,13 @@ +remove Lock = Caps_Lock +keysym Caps_Lock = Escape + +clear Mod1 +clear Mod4 + +keycode 133 = Alt_L +keycode 134 = Alt_R +keycode 64 = Super_L +keycode 108 = Super_R + +add Mod1 = Alt_L Alt_R +add Mod4 = Super_L Super_R -- cgit v1.2.3