Commit ccafaca4 authored by Naoki OKAMURA's avatar Naoki OKAMURA

improved: use rofi as a launcher

parent b7ac8d4b
......@@ -12,7 +12,7 @@ super + a ; g
chromium
super + a ; l
dm-tool lock
sh /etc/nixos/scripts/rofi-application-launch.sh
super + a ; q
bspc quit
......@@ -29,6 +29,8 @@ super + a ; x
super + a ; X
bspc node focused -k
super + l
dm-tool switch-to-greeter
# Desktops
# ========
......
#!/usr/bin/env sh
filter() {
rofi -dmenu \
-show run \
-matching fuzzy \
-lines 10 \
-width 3840 \
-location 1 \
-dpi 192 \
-color-window "#191919,#F9F9F9,#666666" \
-color-normal "#191919,#FFFFFF,#333333,#CCFF00,#000000" \
-color-urgent "#191919,#FF0000,#333333,#CC0000,#FFFFFF" \
-color-active "#191919,#FFFFFF,#333333,#00CCFF,#000000"
}
applications() {
cat <<EOF
mlterm
chromium
uget
deadbeef
calibre
com.github.johnfactotum.Foliate
vlc
gimp
inkscape
fonforge
peek
com.github.philip-scott.spice-up
mate-calc
keepassxc
caja
engrampa
eom
atril
pluma
gucharmap
pavucontol
lxappearance
arandr
EOF
}
main() {
local APPS="$(applications | grep -v "^#" | grep -v "^$" | sort | uniq)"
local SEL="$(echo $APPS | tr ' ' "\n" | filter)"
if test "x$(echo $APPS | tr ' ' "\n" | grep $SEL)" = "x${SEL}"; then
exec $SEL
fi
}
main
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment