Many changes including introduction to menu system
THe main addition here is the menu system that is used to contoll the phone. THere are also some small helper scripts for calls etc.
This commit is contained in:
parent
72ecf44743
commit
43f0dd09bc
10 changed files with 206 additions and 2 deletions
37
bin/.bin/dmenu/menu-system
Executable file
37
bin/.bin/dmenu/menu-system
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
options="Terminal
|
||||
Browser
|
||||
Phone
|
||||
Podcasts
|
||||
Go To Workspace
|
||||
Move To Workspace
|
||||
Power Menu
|
||||
Exit"
|
||||
|
||||
chooseWorkspace(){
|
||||
seq 1 10 | trofi
|
||||
}
|
||||
|
||||
goToWorkspace(){
|
||||
xdotool key --clearmodifiers "Super_L+$(chooseWorkspace)"
|
||||
}
|
||||
moveToWorkspace(){
|
||||
xdotool key --clearmodifiers "Super_L+Shift+$(chooseWorkspace)"
|
||||
}
|
||||
|
||||
while true ; do
|
||||
choice="$(echo "$options" | trofi)"
|
||||
case "$choice" in
|
||||
"Terminal") (folder-shell &); break ;;
|
||||
"Browser") (firefox &); break ;;
|
||||
"Podcasts") (gnome-podcasts &); break ;;
|
||||
"Phone") spawn-phone-menu phone ; break ;;
|
||||
"Go To Workspace") goToWorkspace ; break ;;
|
||||
"Move To Workspace") moveToWorkspace ; break ;;
|
||||
"Power Menu") (rofi-shutdown &); break ;;
|
||||
"Exit") sleep 0.3; xdotool key --clearmodifiers "Super_L+q"; break ;;
|
||||
"") break;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue