Xresources for sxiv, various small changes

modified:   .config/Xresources
	modified:   .config/coc/history.json
	modified:   .config/qutebrowser/bookmarks/urls
	modified:   .config/qutebrowser/qsettings/QtProject.conf
	modified:   .config/qutebrowser/quickmarks
	modified:   .config/ranger/rifle.conf
	modified:   .local/bin/dropdowncalc
	deleted:    .local/bin/i3cmds/hover
	deleted:    .local/bin/i3cmds/i3resize
	deleted:    .local/bin/i3cmds/killrecording
	deleted:    .local/bin/i3cmds/maimpick
	deleted:    .local/bin/i3cmds/prompt
	deleted:    .local/bin/i3cmds/samedir
	deleted:    .local/bin/i3cmds/td-toggle
	deleted:    .local/bin/i3cmds/tmuxdd
	deleted:    .local/bin/i3cmds/toggle-welcome
	deleted:    .local/bin/i3cmds/toggletouchpad
	deleted:    .local/bin/i3cmds/torwrap
	deleted:    .local/bin/i3cmds/winresize
	modified:   .local/bin/maimpick
	modified:   .local/bin/statusbar/torrent
	modified:   .local/bin/tools/dmenuhandler
This commit is contained in:
Alexander Bocken 2020-08-17 13:33:09 +02:00
parent 7bd59a784a
commit 11c023aade
22 changed files with 25 additions and 132 deletions

View File

@ -2,7 +2,6 @@
*.alpha: 0.8
!! Set a default font and font size as below:
Sxiv.font: monospace-10
*.dpi: 180
@ -183,6 +182,11 @@ Sxiv.font: monospace-10
*fading: 35
*fadeColor: nord3
Sxiv.font: monospace-10
Sxiv.txtcolor: nord6
Sxiv.background: bblack
Sxiv.foreground: nord6
*.color0: nord1
*.color1: nord11
*.color2: nord14

View File

@ -6,6 +6,9 @@
],
"local%2Fsrc%2Fbthandler": [
" "
],
"local%2Fsrc%2Fbibel": [
" "
]
},
"%2Fhome%2Falex": [

View File

@ -2,4 +2,4 @@ https://security.stackexchange.com/questions/220068/using-local-port-forwarding-
https://gist.github.com/attacus/cb5c8a53380ca755b10a5b37a636a0b9 Create your own encrypted chat server with Riot and Matrix
https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fmy.vultr.com%2F&ref_src=twsrc%5Etfw&text=I%20just%20deployed%20a%20high%20performance%20cloud%20server%20on%20Vultr.com%20!%20%23ILoveVultr%20%23Cloud&tw_p=tweetbutton&url=http%3A%2F%2Fgoo.gl%2FZLou61 Home / Twitter
https://translate.google.com/#view=home&op=translate&sl=de&tl=ja&text=Generation Google Translate
https://boards.4channel.org/g/thread/76917458 (30) /g/ - What's the best discord alternative that doesn't d - Technology - 4chan
https://evasys-app1.let.ethz.ch/evasys/online.php?pswd=O68MYGRV29I6EE EvaSys Onlineumfrage - Introduction to Quantum Mechanics for Engineers (151-0966-00S-FS20)

View File

@ -1,6 +1,6 @@
[FileDialog]
history=file:///home/alex, file:///home/alex/eth/thermo2, file:///home/alex/eth/wuf2, file:///home/alex/eth/innoproz
lastVisited=file:///home/alex
history=file:///home/alex, file:///home/alex/eth/thermo2, file:///home/alex/eth/wuf2, file:///home/alex/eth/innoproz, file:///home/alex/bks/Magazines/Death to the World
lastVisited=file:///home/alex/bks/Magazines/Death to the World
qtVersion=5.15.0
shortcuts=file:, file:///home/alex
sidebarWidth=82

View File

@ -3,5 +3,5 @@ ys https://www.youtube.com/feed/subscriptions
moo https://moodle-app2.let.ethz.ch/
fit https://boards.4channel.org/fit/
wsg https://boards.4channel.org/wsg/
mad https://www.cse-lab.ethz.ch/teaching/mad_fs20/
kanji https://kanji.sljfaq.org/
bant https://boards.4chan.org/bant/
kanji https://kanji.sljfaq.org/draw-canvas.html

View File

@ -176,7 +176,7 @@ mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
mime ^image/svg, has display, X, flag f = display -- "$@"
mime ^image, has pqiv, X, flag f = pqiv -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -s f -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"
mime ^image, has ristretto, X, flag f = ristretto "$@"

View File

@ -1,2 +1,2 @@
#!/bin/sh
ifinstalled python && python -iq -c "print('Welcome to the Calculator'); from numpy import *; import sys; sys.ps1='>'"
ifinstalled python && python -iq -c "print('Welcome to the Calculator'); from numpy import *; import sys; sys.ps1=''"

View File

@ -1,22 +0,0 @@
#!/bin/sh
[ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right
current=$(xdotool getwindowfocus)
newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))
newheight=$(($(xdotool getdisplaygeometry | awk '{print $1}') / 3))
centerwidth=$(( $(xdotool getdisplaygeometry | awk '{print $1}') / 2))
newsize=$(xdotool getwindowgeometry "$current" | grep Geometry | sed -e 's/x/ /g' | awk '{print $3}')
newwidth=$(xdotool getwindowgeometry "$current" | grep Geometry | grep -o " [0-9]*")
baroffset=47
case "$1" in
left) horizontal=0; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;;
right) horizontal=$(($(xdotool getdisplaygeometry | awk '{print $1}') - newwidth)) ; vertical=$(($(xdotool getdisplaygeometry | awk '{print $2}') - newsize)) ;;
center) echo "$centerwidth"
horizontal=$(( ( $(xdotool getdisplaygeometry | awk '{print $1}') - centerwidth ) / 2 ));
vertical=$baroffset
newheight=$(( $(xdotool getdisplaygeometry | awk '{print $2}' ) - baroffset -5))
newwidth=$centerwidth;;
esac
xdotool windowsize "$current" $newwidth $newheight
xdotool windowmove "$current" $horizontal $vertical

View File

@ -1,28 +0,0 @@
#!/bin/sh
# This script was made by `goferito` on Github.
# Some cleanup by Luke.
[ -z "$1" ] && echo "No direction provided" && exit 1
distanceStr="2 px or 2 ppt"
moveChoice() {
i3-msg resize "$1" "$2" "$distanceStr" | grep '"success":true' || \
i3-msg resize "$3" "$4" "$distanceStr"
}
case $1 in
up)
moveChoice grow up shrink down
;;
down)
moveChoice shrink up grow down
;;
left)
moveChoice shrink right grow left
;;
right)
moveChoice grow right shrink left
;;
esac

View File

@ -1,7 +0,0 @@
#!/bin/sh
kill -9 "$(cat ~/.recordingpid)"
# Update i3bar.
echo "" > ~/.recordingicon
pkill -RTMIN+9 i3blocks

View File

@ -1,9 +0,0 @@
#!/bin/sh
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
"a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
"current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;;
"full screen") maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;;
"a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
"current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
"full screen (copy)") maim | xclip -selection clipboard -t image/png ;;
esac

View File

@ -1,7 +0,0 @@
#!/bin/sh
# A dmenu binary prompt script.
# Gives a dmenu prompt labeled with $1 to perform command $2.
# For example:
# `./prompt "Do you want to shutdown?" "shutdown -h now"`
[ "$(printf "No\\nYes" | dmenu -i -n -p "$1" -nb darkred -sb red -sf white -nf gray )" = "Yes" ] && $2

View File

@ -1,5 +0,0 @@
#!/bin/sh
PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3)
PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g')
cd "$(readlink /proc/"$PID"/cwd)"
"$TERMINAL"

View File

@ -1,10 +0,0 @@
#!/bin/sh
# If transmission-daemon is running, will ask to kill, else will ask to start.
if pgrep -x transmission-da >/dev/null ;
then
[ "$(printf "No\\nYes" | dmenu -i -p "Kill transmission-daemon?")" = "Yes" ] && killall transmission-da && notify-send "transmission-daemon killed."
else
ifinstalled transmission-cli || exit
[ "$(printf "No\\nYes" | dmenu -i -p "Start transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "tranmission-daemon started."
fi
sleep 3 && pkill -RTMIN+7 i3blocks

View File

@ -1,5 +0,0 @@
#!/bin/sh
# This is the script that i3 runs to either start tmux in
# the dropdown terminal or log into a previous session.
tmux a || tmux

View File

@ -1,10 +0,0 @@
#!/bin/sh
# Toggles the LARBS welcome message.
PIC="${XDG_DATA_HOME:-$HOME/.local/share}/larbs/larbs.png"
grep LARBSWELCOME "$HOME/.xprofile" &&
( sed -i "/LARBSWELCOME/d" ~/.xprofile && notify-send -i "$PIC" "LARBS welcome message" "Welcome message disabled. Press Super+Shift+F1 again to reverse." ) ||
( echo "notify-send -i \"$PIC\" \"Welcome to LARBS\" \"Press super+F1 for the help menu.\" # LARBSWELCOME" >> ~/.xprofile &&
notify-send -i "$PIC" "LARBS welcome message" "Welcome message re-enabled." )

View File

@ -1,4 +0,0 @@
#!/bin/sh
# Toggle touchpad. Requires xf86-input-synaptics.
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && echo "TouchPad reactivated." && exit
synclient TouchpadOff=1 && echo "TouchPad deactivated."

View File

@ -1,6 +0,0 @@
#!/bin/sh
ifinstalled transmission-remote-cli transmission-cli || exit
! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks
$TERMINAL -e transmission-remote-cli

View File

@ -1,2 +0,0 @@
#!/bin/sh
echo "📐" | dmenu -p "Give width and height:" | xargs xdotool windowsize "$(xdotool getwindowfocus)"

View File

@ -5,10 +5,10 @@
# highlighting an area to copy. scrotcucks on suicidewatch right now.
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
"a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
"current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;;
"full screen") maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;;
"a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
"current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
"full screen (copy)") maim | xclip -selection clipboard -t image/png ;;
"a selected area") maim -s -u pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
"current window") maim -i "$(xdotool getactivewindow)" -u pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;;
"full screen") maim -u pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;;
"a selected area (copy)") maim -s -u | xclip -selection clipboard -t image/png ;;
"current window (copy)") maim -u -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
"full screen (copy)") maim -u | xclip -selection clipboard -t image/png ;;
esac

View File

@ -10,7 +10,7 @@ var="$( transmission-remote -l | grep % |
s/.*%.*/M/g" |
sort -h | uniq -c | sed " # Now we replace the standin letters with icons.
s/A/🛑/g;
s/B/⌛/g;
s/B/⌛/g;
s/L/🔼/g;
s/M/🔽/g;
s/N/✅/g;

View File

@ -2,7 +2,7 @@
# Feed this script a link and it will give dmenu
# some choice programs to use to open it.
case "$(printf "mpv\\ncopy url\\nqueue download\\n\\nqueue youtube-dl\\nbrowser\\nrip media\\ncast" | dmenu -i -p "Open link with what program?")" in
case "$(printf "mpv\\ncopy url\\nqueue download\\nqueue youtube-dl\\nbrowser\\nrip media\\ncast" | dmenu -i -p "Open link with what program?")" in
"copy url") echo "$1" | xclip -selection clipboard ;;
mpv) setsid mpv --quiet --ytdl-format='bestvideo[height<=1080]+bestaudio/best[height<=1080]' "$1" & ;;
"mpv (loop)") setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) -quiet --loop "$1" >/dev/null 2>&1 & ;;
@ -16,5 +16,6 @@ case "$(printf "mpv\\ncopy url\\nqueue download\\n\\nqueue youtube-dl\\nbrowser\
#w3m) w3m "$1" >/dev/null 2>&1 ;;
#"mpv (float)") setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) --geometry=+0-0 --autofit=30% --title="mpvfloat" "$1" >/dev/null 2>&1 & ;;
"rip media") dest="$(dmenuinput 'name of folder:')"
lynx --dump --nonumbers --listonly "$1" | grep -E "(*\.webm|*\.mp4|\.gif|\.jpg|\.jpeg|\.png)" | sort -u | xargs wget -P "$HOME/$dest";;
lynx --dump --nonumbers --listonly "$1" | grep -E "(*\.webm|*\.mp4|\.gif|\.jpg|\.jpeg|\.png|\.pdf|\.epub|\.mobi|\.djvu)" | sort -u | xargs wget -P "$HOME/$dest"
notify-send "dmenuhandler" "all media ripped into $dest";;
esac