summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-06-01 10:53:34 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-06-01 10:53:34 -0400
commit9391af624c07382663474f36573b8cbd87d78090 (patch)
treef26835f4318b115084c3a93d48da57ae403a5ad3
parent6b334b59fc9f681fd16fe437c363213bba80f640 (diff)
downloadeibhear-9391af624c07382663474f36573b8cbd87d78090.tar.gz
eibhear-9391af624c07382663474f36573b8cbd87d78090.tar.zst
eibhear-9391af624c07382663474f36573b8cbd87d78090.zip
dox
-rwxr-xr-x.local/bin/displayselect7
-rwxr-xr-x.local/bin/dmenumount11
-rwxr-xr-x.local/bin/dmenupass4
3 files changed, 13 insertions, 9 deletions
diff --git a/.local/bin/displayselect b/.local/bin/displayselect
index e526014..c0e3479 100755
--- a/.local/bin/displayselect
+++ b/.local/bin/displayselect
@@ -1,9 +1,8 @@
#!/bin/sh
-# A UI for detecting and selecting all displays.
-# Probes xrandr for connected displays and lets user select one to use.
-# User may also select "manual selection" which opens arandr.
-# I plan on adding a routine from multi-monitor setups later.
+# A UI for detecting and selecting all displays. Probes xrandr for connected
+# displays and lets user select one to use. User may also select "manual
+# selection" which opens arandr.
twoscreen() { # If multi-monitor is selected and there are two screens.
diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount
index 0de5f0f..1feb204 100755
--- a/.local/bin/dmenumount
+++ b/.local/bin/dmenumount
@@ -1,8 +1,9 @@
#!/bin/sh
-# Gives a dmenu prompt to mount unmounted drives.
-# If they're in /etc/fstab, they'll be mounted automatically.
-# Otherwise, you'll be prompted to give a mountpoint from already existsing directories.
-# If you input a novel directory, it will prompt you to create that directory.
+
+# Gives a dmenu prompt to mount unmounted drives and Android phones. If
+# they're in /etc/fstab, they'll be mounted automatically. Otherwise, you'll
+# be prompted to give a mountpoint from already existsing directories. If you
+# input a novel directory, it will prompt you to create that directory.
getmount() { \
[ -z "$chosen" ] && exit 1
@@ -51,7 +52,7 @@ if [ -z "$usbdrives" ]; then
else
if [ -z "$anddrives" ]; then
echo "USB drive(s) detected."
- mountusb
+ mountusb
else
echo "Mountable USB drive(s) and Android device(s) detected."
asktype
diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass
index 4fc464f..8631a13 100755
--- a/.local/bin/dmenupass
+++ b/.local/bin/dmenupass
@@ -1,2 +1,6 @@
#!/bin/sh
+
+# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
+# password prompt if needed.
+
dmenu -fn Monospace-18 -sb "#d79921" -sf "#1d2021" -nf "#000000" -nb "#000000" -p "$1" <&- && echo