From f26f5acedc2e626ebe2f97d1a1cb94c8217eef7a Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 13 Oct 2018 00:18:25 -0400 Subject: [PATCH] Add rofi Rofi is "a window switcher, application launcher, and dmenu replacement". It lets you search for and access certain information at any given time, making it very useful. --- .config/rofi/config.rasi | 18 ++++++++++++++++++ .config/sxhkd/sxhkdrc | 21 ++++++++++++++++++--- 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .config/rofi/config.rasi diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi new file mode 100644 index 00000000..05f913da --- /dev/null +++ b/.config/rofi/config.rasi @@ -0,0 +1,18 @@ +configuration { + modi: "window,run,drun"; + dpi: 192; + font: "Hack 12"; + show-icons: true; + bw: 0; + theme: "~/.cache/wal/colors-rofi-dark.rasi"; + drun-icon-theme: "Papirus-Dark"; + terminal: "urxvtcd"; + scroll-method: 1; + columns: 3; + width: 70; + display-drun: "Search"; + display-window: "Windows"; + display-calc: "Calc"; +} + +// vim:ft=java diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 3792c466..168cd8f5 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -160,9 +160,24 @@ super + {Left,Down,Up,Right} super + y bspc node focused -g private -# A very bad script that opens the application menu in -# KDE Plasma based on mouse coordinates. +# ==================== +# ======= Rofi ======= +# ==================== + +# Show the application launcher alt + z - xdotool mousemove 28 2131 click 1 + env XDG_CURRENT_DESKTOP="KDE" QT_FONT_DPI="192" rofi -show drun + +# Show open windows +alt + space + rofi -show window + +# Show pass +alt + slash + rofi-pass + +# Show calculator with natural language support +alt + backslash + rofi -show calc -modi calc -no-show-match -no-sort # vim:ft=sxhkdrc