dmenu is a simple program with a pretty selection window for X. These are my scripts for doing things with that.
dbc: dobc -lon the input so you can do mathdbrowsel: select a browser for the link in the clipboard to opendcpupower: select CPU throttling settingsdkeymap: select a keymapdintelbacklight: select backlight with dmenu or wjt (a scroll wheel)ddmenu: use dmenu to select a dmenu script -- dceptiondmenu_run/dsudo: run programs, maybe from a keybind set with xbindkeys or a wmdmenupass: ask for the sudo password as SUDO_ASKPASSdmount/dunmount: mount/unmount drivesdopenrc-runlevel: choose openrc runlevels for various advanced tasks like networkingdrssadd: add RSS links to the newsboat config from clipboaddshow: run a command and show output without having to open a terminaldsysact: reboot/shutdown/etc.dtimer: a coffee timer. Check out uniformativ.de's countty for a non-dmenu one.dtmpl: copy template files from a directory into the clipboardpassmenu: unixpassinterface, copies to clipboard.passmenu-otp: like passmenu but copies the OTP code to clipboard.y-or-n: ask if yes or no
- dmodurl: change a URL in the clipboard according to sed rules
- dpatchmail: do (code) patches with dmenu
- dsad: manage background audio with Simple Audio Daemon
- prompt-mail: manage your email contacts list (neomutt compatible)
- sbm: manage your bookmarks list
- tnon: like tmux but not (using mtm and abduco)
You could do:
alias program='SUDO_ASKPASS=dgivepass sudo -A program'
but it won't come up in dmenu_run. So move program to program-aux and make a new script at program:
#!/bin/sh
SUDO_ASKPASS=dgivepass sudo -A program
intel-backlight: uninformativ.de's intel-backlight script