Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
r1w1s1
r1w1s1
@r1w1s1@snac.bsd.cafe  ·  activity timestamp 2 days ago

I use dmenu as my main UI, not just dmenu_run.

Super+Space opens a small menu script that launches apps and system actions (WiFi, reboot, shutdown),
all keyboard-driven via sxhkd.

No panel, no mouse menus, WM-agnostic.

#!/bin/sh

ROOT=doas

# Open a terminal (st) with the given title and command
# example: st -t terminal_title -e command
term() {
st -t "$1" -e "${@:2}"
}

choice=$(printf "%s\n"
"Browser"
"Terminal"
"IRC"
"Mail"
"PDF"
"Editor"
"Files"
"Mixer"
"WiFi"
"Bluetooth"
"Reboot"
"Shutdown" |
dmenu -i -l 12 -p "Menu"
-fn "Iosevka Term-11"
-nb ' #000000' -nf ' #ffffff'
-sb ' #005f87' -sf ' #ffffff')

case "$choice" in
Browser) firefox ;;
Terminal) term st tmux ;;
IRC) term senpai senpai ;;
Mail) term mutt mutt ;;
PDF) pdf-open.sh ;;
Editor) geany ;;
Files) term fff fff ;;
Mixer) term alsamixer alsamixer ;;
WiFi) term wifitui "$ROOT" wifitui ;;
Bluetooth) blueman-manager ;;
Reboot) "$ROOT" /sbin/reboot ;;
Shutdown) "$ROOT" /sbin/poweroff ;;
esac
Curious how many dwm users do something similar vs bars / mouse menus.

#dwm #dmenu #sxhkd #x11 #linux #suckless

  • Copy link
  • Flag this post
  • Block

A small Bonfire corner on the internet

This is a small personal instance of Bonfire in the Fediverse.

A small Bonfire corner on the internet: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct