From c0e23e444e1fec3702c84a89180c87ecf6881eee Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Thu, 26 Jan 2023 09:44:49 +0000 Subject: [PATCH] [MINOR] Added to xmonad to open scripts menu in rofi,added projects script --- .config/rofi/scripts/projects.sh | 4 ++++ .config/xmonad/xmonad.lhs | 1 + 2 files changed, 5 insertions(+) create mode 100644 .config/rofi/scripts/projects.sh diff --git a/.config/rofi/scripts/projects.sh b/.config/rofi/scripts/projects.sh new file mode 100644 index 0000000..9dab2f5 --- /dev/null +++ b/.config/rofi/scripts/projects.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +selected=$(ls ~/projects/ | rofi -dmenu -p "Open: ") +alacritty -e fish -c "cd ~/projects/$selected; nvim . ;fish" diff --git a/.config/xmonad/xmonad.lhs b/.config/xmonad/xmonad.lhs index 37fb0c7..a9443ea 100644 --- a/.config/xmonad/xmonad.lhs +++ b/.config/xmonad/xmonad.lhs @@ -81,6 +81,7 @@ launch rofi > , ("M-p", spawn "rofi -show drun") +> , ("M-s", spawn "selected=$(ls ~/.config/rofi/scripts/|rofi -dmenu -p \"Run: \") && bash ~/.config/rofi/scripts/$selected") launch web browser