dmenu scripts repo released

dmenu scripts repo released

Article image.
get them before they rot

My dmenu scripts (click here for the git repo)

dmenu is a simple program with a pretty selection window for X. These are my scripts for doing things with that.

Scripts

  • dbc (file): do bc -l on the input so you can do math

  • dbrowsel (file): select a browser for the link in the clipboard to open

  • dcpupower (file): select CPU throttling settings

  • dkeymap (file): select a keymap

  • dintelbacklight(file): select backlight with dmenu or wjt (a scroll wheel)

  • ddmenu (file): use dmenu to select a dmenu script – dception

  • dmenu_run/dsudo (dmenurun)
    (dsudo): run programs, maybe from a keybind set with xbindkeys or a wm

  • dshow (file): run a command and show output without having to open a terminal

  • dsysact (file): reboot/shutdown/etc.

  • passmenu (file): unix pass interface

  • passmenu-otp (file): like passmenu but copies the OTP code to clipboard.

  • y-or-n (file): ask if yes or no

  • dmenupass(file): ask for the sudo password as SUDO_ASKPASS

  • dmount/dunmount(dmount)
    (dunmount): mount/unmount drives

  • dopenrc-runlevel(file): choose openrc runlevels for various advanced tasks like networking

  • drssadd(file): add RSS links to the newsboat config from clipboad

  • dtimer(file): a coffee timer. Check out uniformativ.de's countty for a non-dmenu one.

  • dtmpl(file): copy template files from a directory into the clipboard

Submodules with even more scripts

  • 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

  • tnot: like tmux but not (using mtm and abduco)

Quick hack for dmenu with sudo

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
`

Utilities

  • intel-backlight: uninformativ.de's intel-backlight script

in: articles

Spenser Truex

Contact
hacker emblem
| |