Makes a start on dialer
This commit is contained in:
parent
853f680702
commit
afb6634bec
3 changed files with 147 additions and 0 deletions
32
bin/.bin/modem/dialer
Executable file
32
bin/.bin/modem/dialer
Executable file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
prompt=""
|
||||||
|
|
||||||
|
answer=""
|
||||||
|
reject=""
|
||||||
|
|
||||||
|
options="1
|
||||||
|
4
|
||||||
|
7
|
||||||
|
*
|
||||||
|
|
||||||
|
2
|
||||||
|
5
|
||||||
|
8
|
||||||
|
0
|
||||||
|
$answer
|
||||||
|
3
|
||||||
|
6
|
||||||
|
9
|
||||||
|
#
|
||||||
|
# "
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
notify-send "$prompt"
|
||||||
|
input="$(echo "$options" |
|
||||||
|
rofi -dmenu -p "$prompt" -theme themes/dialer.rasi \
|
||||||
|
-me-select-entry '' -me-accept-entry MousePrimary)"
|
||||||
|
[ "$input" = "#" ] && exit
|
||||||
|
#exit
|
||||||
|
prompt+="$input"
|
||||||
|
done
|
|
@ -130,4 +130,5 @@ echo "RECIPIENT: $number" >> $log
|
||||||
echo "TIME: $(date)" >> $log
|
echo "TIME: $(date)" >> $log
|
||||||
echo "----" >> $log
|
echo "----" >> $log
|
||||||
cat "$FILE" >> $log
|
cat "$FILE" >> $log
|
||||||
|
# I assume nobody will be sending me messages with null bytes in them
|
||||||
printf '\00\n' >> $log
|
printf '\00\n' >> $log
|
||||||
|
|
114
rofi/.config/rofi/themes/dialer.rasi
Normal file
114
rofi/.config/rofi/themes/dialer.rasi
Normal file
|
@ -0,0 +1,114 @@
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* Author : Aditya Shakya
|
||||||
|
* Mail : adi1090x@gmail.com
|
||||||
|
* Github : @adi1090x
|
||||||
|
* Twitter : @adi1090x
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
configuration {
|
||||||
|
font: "iosevka 45";
|
||||||
|
drun-display-format: "{name}";
|
||||||
|
disable-history: false;
|
||||||
|
fullscreen: false;
|
||||||
|
hide-scrollbar: true;
|
||||||
|
sidebar-mode: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
background: #00000060;
|
||||||
|
background-alt: #00000000;
|
||||||
|
background-bar: #f2f2f215;
|
||||||
|
foreground: #f2f2f2EE;
|
||||||
|
accent: #ffffff66;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
transparency: "real";
|
||||||
|
background-color: @background;
|
||||||
|
text-color: @foreground;
|
||||||
|
border: 0px;
|
||||||
|
border-color: @border;
|
||||||
|
border-radius: 0px;
|
||||||
|
width: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
enabled: true;
|
||||||
|
padding: 0.30% 1% 0% 0.5%;
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: @foreground;
|
||||||
|
placeholder-color: @foreground;
|
||||||
|
expand: true;
|
||||||
|
horizontal-align: 0;
|
||||||
|
placeholder: "Search";
|
||||||
|
padding: 0.10% 0% 0% 0%;
|
||||||
|
blink: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
children: [ prompt ];
|
||||||
|
background-color: @background-bar;
|
||||||
|
text-color: @foreground;
|
||||||
|
expand: false;
|
||||||
|
border: 0.1%;
|
||||||
|
border-radius: 6px;
|
||||||
|
dborder-color: @accent;
|
||||||
|
margin: 0% 0% 0% 0%;
|
||||||
|
padding: 1%;
|
||||||
|
position: west;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
background-color: @background-alt;
|
||||||
|
columns: 3;
|
||||||
|
lines: 5;
|
||||||
|
spacing: 2%;
|
||||||
|
cycle: false;
|
||||||
|
dynamic: true;
|
||||||
|
layout: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
mainbox {
|
||||||
|
background-color: @background-alt;
|
||||||
|
border: 0% 0% 0% 0%;
|
||||||
|
border-radius: 0% 0% 0% 0%;
|
||||||
|
border-color: @accent;
|
||||||
|
children: [ inputbar, listview ];
|
||||||
|
/*spacing: 8%;
|
||||||
|
padding: 10% 8.5% 10% 8.5%;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
background-color: @background-alt;
|
||||||
|
text-color: @foreground;
|
||||||
|
orientation: vertical;
|
||||||
|
border-radius: 0%;
|
||||||
|
padding: 2.5% 0% 2.5% 0%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
size: 81px;
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text {
|
||||||
|
expand: true;
|
||||||
|
horizontal-align: 0.5;
|
||||||
|
vertical-align: 0.5;
|
||||||
|
margin: 0.5% 0.5% -0.5% 0.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
element selected {
|
||||||
|
background-color: @background-bar;
|
||||||
|
text-color: @foreground;
|
||||||
|
border: 0% 0% 0% 0%;
|
||||||
|
border-radius: 12px;
|
||||||
|
border-color: @accent;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue