You are not logged in.

#1 2013-04-14 01:28:02

KaiSforza
Member
Registered: 2012-04-22
Posts: 133
Website

scudmenu -- A dmenu script for use with systemd --user

So a while ago I started using systemd --user to manage my session, and I was pretty happy with how it turned out. However, I use a tiling wm, and sometimes I just want to quickly start or stop something without opening a terminal (say I'm looking at my mail and want to quickly restart offlineimap). Suckless' dmenu program is great, and really good for starting programs in your path.

When I typed in

systemctl --user

that would clear out the completion and just leave it to me to know the units names and everything.

So, I created a script called scudmenu that I bound to a key in my window manager. It opens up two dmenu's in order: the first to get the operation you want to run, and the second to get the unit name.

It would look like this:

Action:         [start] stop restart try-restar...
systemctl --user start            [dbus] dwm i3...

giving me a nice overview of the units that I have. (the second one actually takes the name of the action you select and uses it for a title)

I've put together an AUR package, scudmenu-git, that will install this to your system. At the moment, there is no configuration and it depends on a specific font, but I will be adding configuration options (such as fonts, colors, and a terminal for the 'status' output) soon. Technically you can just say

font="some-font-*-*-*-*-..." scudmenu

at the moment, but that's a bit annoying.

Last edited by KaiSforza (2013-04-14 01:38:49)


Thinkpad T420 | Intel 3000 | systemd {,--user}
PKGBUILDs I use | pywer AUR helper

Offline

Board footer

Powered by FluxBB