-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.sh
executable file
·36 lines (34 loc) · 893 Bytes
/
menu.sh
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
29
30
31
32
33
34
35
36
#!/bin/bash
clipboard=$(xsel --clipboard)
screenshot="Take screenshot"
screenshotsel="Take screenshot (selective)"
screenshotwindow="Take screenshot (window)"
twomon="2 Monitors"
onemon="1 Monitor"
ytdla="youtube-dl audio"
choice=$(echo -e "$screenshot\n$screenshotsel\n$screenshotwindow\n$twomon\n$onemon\n$ytdla" | rofi -dmenu)
if [ "$choice" = "$screenshot" ]
then
sleep 1
exec ~/.i3/screenshot.sh full
elif [ "$choice" = "$screenshotsel" ]
then
sleep 1
exec ~/.i3/screenshot.sh selective
elif [ "$choice" = "$screenshotwindow" ]
then
sleep 1
exec ~/.i3/screenshot.sh window
elif [ "$choice" = "$twomon" ]
then
exec ~/.screenlayout/2mon.sh
elif [ "$choice" = "$onemon" ]
then
exec ~/.screenlayout/1mon.sh
elif [ "$choice" = "$ytdla" ]
then
twmnc -t "youtube-dl" -c "Downloading from $clipboard..."
exec ~/.i3/youtube-dl-audio.sh "$clipboard"
else
echo $choice
fi