|
|
@@ -13,46 +13,66 @@ launch() { |
|
|
|
Chat |
|
|
|
Music |
|
|
|
Browser |
|
|
|
Hidden browser |
|
|
|
Manual |
|
|
|
Email |
|
|
|
Page |
|
|
|
Define |
|
|
|
Package search |
|
|
|
Package info |
|
|
|
Processes" | tr -d '\t' | |
|
|
|
dmenu -i -p "Launcher") |
|
|
|
|
|
|
|
case $app in |
|
|
|
Notes) st -e vim "+cd ~/Notes/text" "+CtrlP";; |
|
|
|
Files) st -e sh -lc nnn;; |
|
|
|
Editor) st -e vim;; |
|
|
|
Terminal) st;; |
|
|
|
Multiplexer) st -e tmux $*;; |
|
|
|
Notes) st -t "Notes" -e vim "+cd ~/Notes/text" "+CtrlP";; |
|
|
|
Files) st -t "Files" -e sh -lc nnn;; |
|
|
|
Editor) st -t "Editor" -e vim;; |
|
|
|
Terminal) st -t "Terminal";; |
|
|
|
Page) pages pager "$(printf "1\n2\n3\n" | dmenu -p 'page')";; |
|
|
|
Manual) st -e man "$(printf "" | dmenu -p 'man')";; |
|
|
|
Multiplexer) st -t "Multiplexer" -e tmux attach || st -t "Multiplexer" -e tmux;; |
|
|
|
LBRY) lbry;; |
|
|
|
Chat) element-desktop;; |
|
|
|
Music) st -e ncmpcpp;; |
|
|
|
Music) st -t "Music" -e ncmpcpp;; |
|
|
|
Browser) $browser_cmd;; |
|
|
|
'Hidden browser') $browser_cmd --incognito;; |
|
|
|
Email) $browser_cmd mail.protonmail.com/login;; |
|
|
|
Processes) st -e htop;; |
|
|
|
'Define') word=$(printf '' | dmenu -p 'word'); st -e sh -lc "dict \"$word\" | less";; |
|
|
|
'Package search')s=$(printf '' | dmenu -p 'name'); if [ -z "$s" ]; then exit; fi; st -t "Package $s" -e sh -lc "apt search $s | less";; |
|
|
|
'Package info')s=$(printf '' | dmenu -p 'name'); if [ -z "$s" ]; then exit; fi; st -t "Package $s" -e sh -lc "apt show $s | less";; |
|
|
|
Processes) st -t "Processes" -e htop;; |
|
|
|
esac |
|
|
|
} |
|
|
|
|
|
|
|
editor() { |
|
|
|
type=$(printf "Recent\nProjects\nSource\nConfigs\nMacros" | dmenu -i -p 'edit what?') |
|
|
|
} |
|
|
|
|
|
|
|
#Opening all mru files, not just for editing |
|
|
|
opener() { |
|
|
|
sdfs |
|
|
|
} |
|
|
|
|
|
|
|
action() { |
|
|
|
action=$(printf "Play Music |
|
|
|
action=$(printf "Toggle Music |
|
|
|
Pause Music |
|
|
|
Toggle Music |
|
|
|
Play Music |
|
|
|
Go page |
|
|
|
Command |
|
|
|
Command to clipboard |
|
|
|
Search github |
|
|
|
Search ddg |
|
|
|
Search godoc |
|
|
|
Open page |
|
|
|
Select VPN |
|
|
|
Disable VPN |
|
|
|
Enable VPN |
|
|
|
VPN Status |
|
|
|
Rebind Keys |
|
|
|
Disable Bar |
|
|
|
Man |
|
|
|
Password |
|
|
|
Username |
|
|
|
Alternate password |
|
|
|
Download |
|
|
|
Enable Bar" | tr -d '\t' | |
|
|
|
dmenu -i -p "Actions") |
|
|
|
|
|
|
@@ -66,13 +86,13 @@ case $action in |
|
|
|
'Search github') github;; |
|
|
|
'Search godoc') godoc;; |
|
|
|
'Search ddg') ddg;; |
|
|
|
'Open page') pages pager "$(printf "1\n2\n3\n" | dmenu -p 'page')";; |
|
|
|
'Command') cmd;; |
|
|
|
'Command to clipboard') cmd_clip;; |
|
|
|
'Username') username;; |
|
|
|
'Password') password;; |
|
|
|
'Alternate password') other_password;; |
|
|
|
'Man') st -e man "$(printf "" | dmenu -p 'man')";; |
|
|
|
#This should check for an error code and confirm that download has started |
|
|
|
'Download') youtube-dl --no-progress -o "$HOME/Downloads/tmp/%(title)s.%(ext)s" "$(xclip -selection clipboard -o)"; notify-send -u low -t 3000 "Download complete";; |
|
|
|
'Go page') num=$(go_page); pages pager $num;; |
|
|
|
esac |
|
|
|
} |
|
|
|