diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/.bashrc | 2 | ||||
-rw-r--r-- | misc/.config/i3/config | 1 | ||||
-rw-r--r-- | misc/.config/mpv/input.conf | 1 | ||||
-rw-r--r-- | misc/.config/mpv/mpv.conf | 1 | ||||
-rw-r--r-- | misc/.config/rofi/config.rasi | 2 | ||||
-rw-r--r-- | misc/.gdbinit | 2 | ||||
-rwxr-xr-x | misc/bin/unzipall.sh | 8 | ||||
-rwxr-xr-x | misc/bin/zipall.sh | 9 |
8 files changed, 24 insertions, 2 deletions
diff --git a/misc/.bashrc b/misc/.bashrc index 814098d..2d44565 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -275,7 +275,7 @@ fi # gs-extract 4 11 page-4-thru-11.pdf original.pdf gs-extract() { gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=$1 -dLastPage=$2 \ - -sOutputFile=$3 $4 + -sOutputFile="$3" "$4" } # ghostscript, merge files: gs-merge merged.pdf 1.pdf 2.pdf diff --git a/misc/.config/i3/config b/misc/.config/i3/config index 31b74ad..803dcd1 100644 --- a/misc/.config/i3/config +++ b/misc/.config/i3/config @@ -211,3 +211,4 @@ bindsym $mod+minus exec dunstctl close exec ibus-daemon exec redshift-gtk exec --no-startup-id i3-msg 'workspace $ws1; exec urxvt' +exec xscreensaver -no-splash & diff --git a/misc/.config/mpv/input.conf b/misc/.config/mpv/input.conf index 890da80..0238138 100644 --- a/misc/.config/mpv/input.conf +++ b/misc/.config/mpv/input.conf @@ -1,2 +1,3 @@ PREV seek -15 NEXT stop +a vf toggle hflip diff --git a/misc/.config/mpv/mpv.conf b/misc/.config/mpv/mpv.conf index a3f5d24..3b49398 100644 --- a/misc/.config/mpv/mpv.conf +++ b/misc/.config/mpv/mpv.conf @@ -6,6 +6,7 @@ save-position-on-quit script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp ytdl-format="bestvideo[height<=?720]+bestaudio/best" osc=no +stop-screensaver = "yes" [emacsconf-talks] # Positioning diff --git a/misc/.config/rofi/config.rasi b/misc/.config/rofi/config.rasi index aab83de..041b095 100644 --- a/misc/.config/rofi/config.rasi +++ b/misc/.config/rofi/config.rasi @@ -33,7 +33,7 @@ configuration { /* parse-hosts: false;*/ /* parse-known-hosts: true;*/ combi-modes: "run,drun"; - matching: "glob"; + matching: "prefix"; /* tokenize: true;*/ /* m: "-5";*/ /* filter: ;*/ diff --git a/misc/.gdbinit b/misc/.gdbinit index b84dbef..b06bc7f 100644 --- a/misc/.gdbinit +++ b/misc/.gdbinit @@ -1,3 +1,5 @@ +set debuginfod enabled on +set max-completions 20 set print static-members off set print frame-arguments all # unlimited print string length diff --git a/misc/bin/unzipall.sh b/misc/bin/unzipall.sh new file mode 100755 index 0000000..2d654f0 --- /dev/null +++ b/misc/bin/unzipall.sh @@ -0,0 +1,8 @@ +#/bin/bash + +# unzip all zip/7z files with 7z in pwd +for f in ./*; do + ext=${f##*.} + if test "$ext" = zip; then 7z e "$f"; fi; + if test "$ext" = 7z; then 7z e "$f"; fi; +done diff --git a/misc/bin/zipall.sh b/misc/bin/zipall.sh new file mode 100755 index 0000000..0a244c2 --- /dev/null +++ b/misc/bin/zipall.sh @@ -0,0 +1,9 @@ +#/bin/bash + +# zip all non-7z and non-zip files with 7z in pwd and delete the original +for f in ./*; do + ext=${f##*.} + if test "$ext" = zip; then continue; fi; + if test "$ext" = 7z; then continue; fi; + 7z a -sdel "$f.7z" "$f" +done |