aboutsummaryrefslogtreecommitdiffstats
path: root/bin/udt-launcher.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/udt-launcher.sh')
-rwxr-xr-xbin/udt-launcher.sh41
1 files changed, 23 insertions, 18 deletions
diff --git a/bin/udt-launcher.sh b/bin/udt-launcher.sh
index d0a8013..34dc556 100755
--- a/bin/udt-launcher.sh
+++ b/bin/udt-launcher.sh
@@ -1,22 +1,27 @@
-#!/usr/bin/env bash
-
-## Author : Aditya Shakya (adi1090x)
-## Github : @adi1090x
-## Derived from adi1090x/rofi, GPL-3.0 like upstream. Modifications
-## Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+#!/bin/bash
+# udt-launcher.sh - fullscreen app launcher: apps, executables, folders
+# Copyright (C) 2026 Danilo M. <danix@danix.xyz>
#
-## Rofi : Launcher (Modi Drun, Run, File Browser, Window)
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
#
-## Available Styles
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-## style-1 style-2 style-3 style-4 style-5
-## style-6 style-7 style-8 style-9 style-10
-## style-11 style-12 style-13 style-14 style-15
-
-dir="$HOME/.config/rofi/udt"
-theme='launcher'
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-## Run
-rofi \
- -show drun \
- -theme ${dir}/${theme}.rasi
+# Three tabs, switched with Shift+Left/Right or a click: rofi's own drun
+# (sorted by use), run over $PATH, and udt-folders. Typing a category name
+# ("graphics") filters Apps too, since drun matches on categories.
+# Always on DP-1, the wide monitor the 10x5 grid is sized for, whichever
+# monitor has focus.
+exec rofi -show drun -m DP-1 \
+ -modi "drun,run,󰉋 Folders:udt-folders" \
+ -display-drun '󰀻 Apps' -display-run '󰆍 Run' \
+ -show-icons -drun-display-format '{name}' \
+ -theme ~/.config/rofi/udt/launcher.rasi