aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdmenu-screenshot2
-rwxr-xr-xopen-file2
-rwxr-xr-xopen-url2
-rwxr-xr-xstatus-linux6
4 files changed, 6 insertions, 6 deletions
diff --git a/dmenu-screenshot b/dmenu-screenshot
index 90d1e7b..e2e8adf 100755
--- a/dmenu-screenshot
+++ b/dmenu-screenshot
@@ -25,7 +25,7 @@ while getopts "m:" opt; do
25done 25done
26shift $((OPTIND - 1)) 26shift $((OPTIND - 1))
27 27
28folder="$HOME/pictures/screenshots" 28folder="$HOME/box/pictures/screenshots"
29filename="screenshot_$(date +%Y-%m-%d-%H%M%S).png" 29filename="screenshot_$(date +%Y-%m-%d-%H%M%S).png"
30filepath="${folder}/${filename}" 30filepath="${folder}/${filename}"
31 31
diff --git a/open-file b/open-file
index eb7ea1c..8b23dcc 100755
--- a/open-file
+++ b/open-file
@@ -12,7 +12,7 @@ menu="dmenu -i -l 15"
12video=${VIDEO:-vlc} 12video=${VIDEO:-vlc}
13music=${MUSIC:-vlc} 13music=${MUSIC:-vlc}
14pdf=${PDF:-zathura} 14pdf=${PDF:-zathura}
15img="imv" 15img="nsxiv"
16word="libreoffice" 16word="libreoffice"
17sheet="libreoffice" 17sheet="libreoffice"
18html="firefox --new-window" 18html="firefox --new-window"
diff --git a/open-url b/open-url
index bd65a84..bd1b1a1 100755
--- a/open-url
+++ b/open-url
@@ -4,7 +4,7 @@
4# Requires: mail-compose, spawn, xsel (optional) 4# Requires: mail-compose, spawn, xsel (optional)
5 5
6browser=${BROWSER:-firefox} 6browser=${BROWSER:-firefox}
7imageviewer=${IMAGEVIEWER:-imv} 7imageviewer=${IMAGEVIEWER:-nsxiv}
8 8
9[ -z "$1" ] && exit 0 9[ -z "$1" ] && exit 0
10 10
diff --git a/status-linux b/status-linux
index d881228..4f91dfe 100755
--- a/status-linux
+++ b/status-linux
@@ -16,13 +16,13 @@ date=$(date +"%a %d %b")
16if [ "$(pulsemixer --get-mute)" -eq 1 ]; then 16if [ "$(pulsemixer --get-mute)" -eq 1 ]; then
17 volume="Muted" 17 volume="Muted"
18else 18else
19 volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" 19 volume="Vol $(pulsemixer --get-volume | awk '{print $1}')%"
20fi 20fi
21 21
22bat="/sys/class/power_supply/BAT0" 22bat="/sys/class/power_supply/BAT0"
23if [ -d $bat ]; then 23if [ -d $bat ]; then
24 charge_status="$(cat $bat/status | awk '{print substr ($0, 0, 2)}')" 24 charge_status="$(cat $bat/status | awk '{print substr ($0, 0, 2)}')"
25 battery="Bat: $(cat $bat/capacity)% $charge_status" 25 battery="Bat $(cat $bat/capacity)% $charge_status"
26else 26else
27 battery="No battery" 27 battery="No battery"
28fi 28fi
@@ -41,5 +41,5 @@ noticount=$(notify show | wc -l)
41 41
42printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" 42printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time"
43[ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)" 43[ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)"
44[ "$noticount" -gt "1" ] && printf '%s' "${sep} [$noticount]" 44[ "$noticount" -gt "1" ] && printf '%s' "${sep}[$noticount]"
45printf '\n' 45printf '\n'

Generated with cgit - Back to sebastiano.tronto.net