diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-09-02 07:28:29 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-09-02 07:28:29 +0200 |
| commit | d24b871c47826eace3d7f6c642aaffdd01fe6ebe (patch) | |
| tree | 996981952eb80a22ecefa483277045a0fa11698f | |
| parent | 61c59a6c1f356ed23983ad8625d199e4338f1f4d (diff) | |
| download | scripts-d24b871c47826eace3d7f6c642aaffdd01fe6ebe.tar.gz scripts-d24b871c47826eace3d7f6c642aaffdd01fe6ebe.zip | |
Some small changes
Diffstat (limited to '')
| -rwxr-xr-x | dmenu-screenshot | 2 | ||||
| -rwxr-xr-x | open-file | 2 | ||||
| -rwxr-xr-x | open-url | 2 | ||||
| -rwxr-xr-x | 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 | |||
| 25 | done | 25 | done |
| 26 | shift $((OPTIND - 1)) | 26 | shift $((OPTIND - 1)) |
| 27 | 27 | ||
| 28 | folder="$HOME/pictures/screenshots" | 28 | folder="$HOME/box/pictures/screenshots" |
| 29 | filename="screenshot_$(date +%Y-%m-%d-%H%M%S).png" | 29 | filename="screenshot_$(date +%Y-%m-%d-%H%M%S).png" |
| 30 | filepath="${folder}/${filename}" | 30 | filepath="${folder}/${filename}" |
| 31 | 31 | ||
| @@ -12,7 +12,7 @@ menu="dmenu -i -l 15" | |||
| 12 | video=${VIDEO:-vlc} | 12 | video=${VIDEO:-vlc} |
| 13 | music=${MUSIC:-vlc} | 13 | music=${MUSIC:-vlc} |
| 14 | pdf=${PDF:-zathura} | 14 | pdf=${PDF:-zathura} |
| 15 | img="imv" | 15 | img="nsxiv" |
| 16 | word="libreoffice" | 16 | word="libreoffice" |
| 17 | sheet="libreoffice" | 17 | sheet="libreoffice" |
| 18 | html="firefox --new-window" | 18 | html="firefox --new-window" |
| @@ -4,7 +4,7 @@ | |||
| 4 | # Requires: mail-compose, spawn, xsel (optional) | 4 | # Requires: mail-compose, spawn, xsel (optional) |
| 5 | 5 | ||
| 6 | browser=${BROWSER:-firefox} | 6 | browser=${BROWSER:-firefox} |
| 7 | imageviewer=${IMAGEVIEWER:-imv} | 7 | imageviewer=${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") | |||
| 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then | 16 | if [ "$(pulsemixer --get-mute)" -eq 1 ]; then |
| 17 | volume="Muted" | 17 | volume="Muted" |
| 18 | else | 18 | else |
| 19 | volume="Vol: $(pulsemixer --get-volume | awk '{print $1}')%" | 19 | volume="Vol $(pulsemixer --get-volume | awk '{print $1}')%" |
| 20 | fi | 20 | fi |
| 21 | 21 | ||
| 22 | bat="/sys/class/power_supply/BAT0" | 22 | bat="/sys/class/power_supply/BAT0" |
| 23 | if [ -d $bat ]; then | 23 | if [ -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" |
| 26 | else | 26 | else |
| 27 | battery="No battery" | 27 | battery="No battery" |
| 28 | fi | 28 | fi |
| @@ -41,5 +41,5 @@ noticount=$(notify show | wc -l) | |||
| 41 | 41 | ||
| 42 | printf '%s' "$network$sep$volume$sep$battery$sep$date$sep$time" | 42 | printf '%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]" |
| 45 | printf '\n' | 45 | printf '\n' |
