From d24b871c47826eace3d7f6c642aaffdd01fe6ebe Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 2 Sep 2025 07:28:29 +0200 Subject: Some small changes --- dmenu-screenshot | 2 +- open-file | 2 +- open-url | 2 +- status-linux | 6 +++--- 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 done shift $((OPTIND - 1)) -folder="$HOME/pictures/screenshots" +folder="$HOME/box/pictures/screenshots" filename="screenshot_$(date +%Y-%m-%d-%H%M%S).png" filepath="${folder}/${filename}" 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" video=${VIDEO:-vlc} music=${MUSIC:-vlc} pdf=${PDF:-zathura} -img="imv" +img="nsxiv" word="libreoffice" sheet="libreoffice" html="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 @@ # Requires: mail-compose, spawn, xsel (optional) browser=${BROWSER:-firefox} -imageviewer=${IMAGEVIEWER:-imv} +imageviewer=${IMAGEVIEWER:-nsxiv} [ -z "$1" ] && exit 0 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") if [ "$(pulsemixer --get-mute)" -eq 1 ]; then volume="Muted" else - volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" + volume="Vol $(pulsemixer --get-volume | awk '{print $1}')%" fi bat="/sys/class/power_supply/BAT0" if [ -d $bat ]; then charge_status="$(cat $bat/status | awk '{print substr ($0, 0, 2)}')" - battery="Bat: $(cat $bat/capacity)% $charge_status" + battery="Bat $(cat $bat/capacity)% $charge_status" else battery="No battery" fi @@ -41,5 +41,5 @@ noticount=$(notify show | wc -l) printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" [ "$noticount" = "1" ] && printf '%s' "$sep$(notify show)" -[ "$noticount" -gt "1" ] && printf '%s' "${sep} [$noticount]" +[ "$noticount" -gt "1" ] && printf '%s' "${sep}[$noticount]" printf '\n' -- cgit v1.3