summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/guiscripts/vrec10
-rwxr-xr-xbin/menuscripts/mgame2
-rw-r--r--config/essentials/shell/aliases.sh1
-rw-r--r--config/old/spotifyd/spotifyd.conf2
4 files changed, 11 insertions, 4 deletions
diff --git a/bin/guiscripts/vrec b/bin/guiscripts/vrec
index f876da0..91443f4 100755
--- a/bin/guiscripts/vrec
+++ b/bin/guiscripts/vrec
@@ -5,7 +5,7 @@
# dependencies:
# - ffmpeg
# - hacksaw: part
-# - xdotool: active
+# - xdotool: active,window
# - xdg-user-dir
# - dmenu
# - clipp
@@ -21,6 +21,7 @@
# - full: record your full screen
# - last: copy the latest recording's path to the clipboard
# - audio: one of the prior recording commands but with sound
+# - window: select a window with xdotool and capture that geometry
# Recording:
# there is a lock file
@@ -87,7 +88,7 @@ fi
output="$(date +%F_%H-%M-%S)"
if [ -z "${option:="$1"}" ]; then
- option="$(printf 'active\npart\nstop\nfull\naudio\nlast\n' | dmenu -c)"
+ option="$(printf 'active\npart\nstop\nfull\naudio\nlast\nwindow\n' | dmenu -c)"
fi
[ "$option" ] || exit 1
@@ -96,6 +97,11 @@ case "$option" in
record_cmd $(xwininfo -id "$(xdotool getactivewindow)" |
sed '/Absolute\|Width:\|Height:/!d;s/.*:\s*//' | tr '\n' ' ') "$dir" "$output"
;;
+ window)
+ eval "$(xdotool getwindowgeometry --shell "$(xdotool selectwindow)")"
+
+ record_cmd $X $Y $WIDTH $HEIGHT "$dir" "$output"
+ ;;
part)
hacksaw | {
IFS=+x read -r w h x y
diff --git a/bin/menuscripts/mgame b/bin/menuscripts/mgame
index cf23aa0..cd7a7b0 100755
--- a/bin/menuscripts/mgame
+++ b/bin/menuscripts/mgame
@@ -14,7 +14,7 @@ steam_games()
done
}
-Choice="$(steam_games | cut -f 2- -d' ' | grep -v -i 'brawlhalla' | dmenu -c -i -x)"
+Choice="$(steam_games | cut -f 2- -d' ' | dmenu -c -i -x)"
[ "$Choice" ] || exit 1
ID="$(steam_games | grep "[0-9]\+ $Choice" | cut -f 1 -d ' ')"
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh
index 0064a25..6cd99eb 100644
--- a/config/essentials/shell/aliases.sh
+++ b/config/essentials/shell/aliases.sh
@@ -344,6 +344,7 @@ alias quickvms='/media/cricket/vms/quickemu/"$(find '\''/media/cricket/vms/quick
alias sqlplus='sqlplus -x'
alias rsqp='rlwrap sqlplus -x'
alias gcamc='gca -m "checkpoint"'
+alias gclcd'gclc --depth 1'
alias done.='(grt ; ga . ; gcamc ; gp)'
alias gdb='gdb -q'
alias gdbr='gdb -ex "target remote :4200"'
diff --git a/config/old/spotifyd/spotifyd.conf b/config/old/spotifyd/spotifyd.conf
index cb80dca..c275828 100644
--- a/config/old/spotifyd/spotifyd.conf
+++ b/config/old/spotifyd/spotifyd.conf
@@ -1,6 +1,6 @@
[global]
username = "lordtlast"
-device_name = "ArchiDesktop"
+device_name = "winter"
bitrate = 160
cache_path = "/home/aluc/.cache/spotifyd"
max_cache_size = 1000000000