aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/mountmenu
blob: 1b5a007009040fd33dc4fb90997d9d753146e90f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

# Colors
BACKGROUND="#1A1A1A"
INACTIVE="#1F1F1F"
ACTIVE="#186673"
TEXT="#FFFFFF"

# Launching
RESULT="$(echo "$(lsblk -l | awk '$3 == "1" {print $0}' | grep part)" | rofi -no-lazy-grab -dmenu \
-display-drun "Applications :" -drun-display-format "{name}" \
-hide-scrollbar true \
-matching fuzzy \
-bw 0 \
-lines 5 \
-line-padding 15 \
-padding 20 \
-width 50 \
-font "Hack 20" \
-color-enabled true \
-color-window "$BACKGROUND, $BACKGROUND, $BACKGROUND" \
-color-normal "$INACTIVE, $TEXT, $INACTIVE, $ACTIVE, $TEXT" | awk '{print $1}' )"

mkdir -p /mnt/mount
sudo mount "/dev/$RESULT" /mnt/mount && notify-send "Erfolg" || notify-send "Fehler"

# I like this font
# -font "Fantasque Sans Mono 20" \