./i3_switch_workspace.sh./monitor_layout.shTries to generate colors from current Gtk+-3.0 theme. Based on code in Mate-HUD.
A shell script to fuzzy find (and open) from rofi (or dmenu) a PDF file in the history of the zathura viewer.
To use this script most conveniently:
-
Save this script, say to
~/bin/zathist.shbymkdir --parents ~/bin && curl -fLo https://raw.githubusercontent.com/Konfekt/zathist.sh/master/zathist.sh ~/bin/zathist.sh
-
mark it executable by
chmod a+x ~/bin/zathist.sh,
To launch zathist.sh by a global keyboard shortcut, say pressing at the same time the Microsoft Windows key and Z:
-
install, say,
Xbindkeys(orSxhkd), (for example, onopenSUSEbysudo zypper install xbindkeysrespectivelysudo zypper install sxhkd) -
add to
~/.xbindkeysrca shortcut that launcheszathist.sh, say"$HOME/bin/zathist.sh" Mod4 + z -
start
xbindkeys.
To start xbindkeys automatically at login, say on a KDE desktop environment, put a file xbindkeys.sh reading
#! /bin/sh
xbindkeysinto ~/.config/autostart-scripts/.
PDFs whose path matches the pattern given by the variable
IGNORE_REGEX="^${TMPDIR:-/tmp}/\|_cropped\.pdf$"will not be listed.
zathist.sh uses rofi in dmenu mode.
Replace at will by dmenu itself and change its command line arguments by the variables
MENU_ENGINE=-rofi
MENU_ARGS="-dmenu -i -keep-right"To customize the prompt and theme, adapt the variables
THEME='
element{ horizontal-align: 0; }
listview {
dynamic: true;
padding: 0px 0px 0px ;
}'
PROMPT='❯ '
This shell script refines shell code posted on stackexchange.

