aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-12-23 10:01:15 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-12-23 10:01:15 +0100
commit7d3dc968b6183f51dc2594c80450372f0c8fb811 (patch)
tree955b6be59884229125a63f070e16992dc5a79ca1
parent20bbe3418e71556ff2d14623cbbf047c0bd55855 (diff)
downloadscripts-7d3dc968b6183f51dc2594c80450372f0c8fb811.tar.gz
scripts-7d3dc968b6183f51dc2594c80450372f0c8fb811.zip
Changes for new laptop
Diffstat (limited to '')
-rwxr-xr-xbattery-checknow2
-rwxr-xr-xdmenu-unmount3
-rwxr-xr-xopen-file6
-rwxr-xr-xopen-stdin8
-rwxr-xr-xterminal4
-rwxr-xr-xxedit3
6 files changed, 14 insertions, 12 deletions
diff --git a/battery-checknow b/battery-checknow
index 66bbd60..4b76488 100755
--- a/battery-checknow
+++ b/battery-checknow
@@ -4,7 +4,7 @@
4# Requires: battery-status, notify-battery 4# Requires: battery-status, notify-battery
5 5
6file="${XDG_DATA_HOME:-$HOME/.local/share}/batterystatus" 6file="${XDG_DATA_HOME:-$HOME/.local/share}/batterystatus"
7notify="notify push" 7notify=${NOTIFY:-"notify push"}
8low=20 8low=20
9crit=15 9crit=15
10 10
diff --git a/dmenu-unmount b/dmenu-unmount
index 8f7a27f..93c8186 100755
--- a/dmenu-unmount
+++ b/dmenu-unmount
@@ -7,8 +7,7 @@
7# Example: dmenu-unmount -m slmenu -w echo 7# Example: dmenu-unmount -m slmenu -w echo
8 8
9menu=dmenu 9menu=dmenu
10#writeout=notify-send 10writeout=${NOTIFY:-"notify push"}
11writeout="notify push"
12 11
13usage() { 12usage() {
14 echo "Usage: dmenu-unmount [-m MENU] [-w WRITER]" 13 echo "Usage: dmenu-unmount [-m MENU] [-w WRITER]"
diff --git a/open-file b/open-file
index f196073..eb7ea1c 100755
--- a/open-file
+++ b/open-file
@@ -9,9 +9,9 @@
9menu="dmenu -i -l 15" 9menu="dmenu -i -l 15"
10 10
11# Change default apps here 11# Change default apps here
12video="vlc" 12video=${VIDEO:-vlc}
13music="vlc" 13music=${MUSIC:-vlc}
14pdf="zathura" 14pdf=${PDF:-zathura}
15img="imv" 15img="imv"
16word="libreoffice" 16word="libreoffice"
17sheet="libreoffice" 17sheet="libreoffice"
diff --git a/open-stdin b/open-stdin
index 5c0ee1e..a1e10b5 100755
--- a/open-stdin
+++ b/open-stdin
@@ -1,12 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Saves standard input in a download folder and opens it (spawn) 3# Saves standard input in a temporary file and opens it (spawn)
4# Usage: open-stdin 4# Usage: open-stdin
5# Requires: open-file 5# Requires: open-file (or set $OPENER to e.g. xdg-open)
6 6
7#folder=$HOME/Downloads/open-stdin
8folder=${TMPDIR:-/tmp} 7folder=${TMPDIR:-/tmp}
8open=${OPENER:-open-file}
9 9
10tempfile=$(mktemp -p "$folder") 10tempfile=$(mktemp -p "$folder")
11 11
12cat > "$tempfile" && open-file $@ "$tempfile" 12cat > "$tempfile" && $open $@ "$tempfile"
diff --git a/terminal b/terminal
index b98a67e..c6b358f 100755
--- a/terminal
+++ b/terminal
@@ -2,4 +2,6 @@
2 2
3# My default terminal 3# My default terminal
4 4
5st -e tmux new-session "$@" 5terminal=${TERMINAL:-'st -e tmux new-session "$@"'}
6
7$terminal
diff --git a/xedit b/xedit
index 9438aa8..4fb3114 100755
--- a/xedit
+++ b/xedit
@@ -4,5 +4,6 @@
4# Requires: terminal 4# Requires: terminal
5 5
6editor=${EDITOR:-${VISUAL:-vi}} 6editor=${EDITOR:-${VISUAL:-vi}}
7xed=${XEDIT:-'terminal "$editor"'}
7 8
8terminal "$editor" "$@" 9$xed "$@"

Generated with cgit - Back to sebastiano.tronto.net