diff --git a/.config/Xresources b/.config/Xresources index eb04411..915d135 100644 --- a/.config/Xresources +++ b/.config/Xresources @@ -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 diff --git a/.config/coc/history.json b/.config/coc/history.json index ccf6cbc..3dba460 100644 --- a/.config/coc/history.json +++ b/.config/coc/history.json @@ -6,6 +6,9 @@ ], "local%2Fsrc%2Fbthandler": [ " " + ], + "local%2Fsrc%2Fbibel": [ + " " ] }, "%2Fhome%2Falex": [ diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls index ad68f33..4c86a49 100644 --- a/.config/qutebrowser/bookmarks/urls +++ b/.config/qutebrowser/bookmarks/urls @@ -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) diff --git a/.config/qutebrowser/qsettings/QtProject.conf b/.config/qutebrowser/qsettings/QtProject.conf index 61d2928..3b04c2b 100644 --- a/.config/qutebrowser/qsettings/QtProject.conf +++ b/.config/qutebrowser/qsettings/QtProject.conf @@ -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 diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks index d9debda..5c4b61c 100644 --- a/.config/qutebrowser/quickmarks +++ b/.config/qutebrowser/quickmarks @@ -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 diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index bdf5db2..f5685cd 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -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 "$@" diff --git a/.local/bin/dropdowncalc b/.local/bin/dropdowncalc index a4a1c6b..e68a38a 100755 --- a/.local/bin/dropdowncalc +++ b/.local/bin/dropdowncalc @@ -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='❯'" diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover deleted file mode 100755 index f4bb86b..0000000 --- a/.local/bin/i3cmds/hover +++ /dev/null @@ -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 diff --git a/.local/bin/i3cmds/i3resize b/.local/bin/i3cmds/i3resize deleted file mode 100755 index 0bfb5ea..0000000 --- a/.local/bin/i3cmds/i3resize +++ /dev/null @@ -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 - diff --git a/.local/bin/i3cmds/killrecording b/.local/bin/i3cmds/killrecording deleted file mode 100755 index ec9a698..0000000 --- a/.local/bin/i3cmds/killrecording +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -kill -9 "$(cat ~/.recordingpid)" - -# Update i3bar. -echo "" > ~/.recordingicon -pkill -RTMIN+9 i3blocks diff --git a/.local/bin/i3cmds/maimpick b/.local/bin/i3cmds/maimpick deleted file mode 100755 index 07d032f..0000000 --- a/.local/bin/i3cmds/maimpick +++ /dev/null @@ -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 diff --git a/.local/bin/i3cmds/prompt b/.local/bin/i3cmds/prompt deleted file mode 100755 index 13b21e4..0000000 --- a/.local/bin/i3cmds/prompt +++ /dev/null @@ -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 diff --git a/.local/bin/i3cmds/samedir b/.local/bin/i3cmds/samedir deleted file mode 100755 index 88845fc..0000000 --- a/.local/bin/i3cmds/samedir +++ /dev/null @@ -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" diff --git a/.local/bin/i3cmds/td-toggle b/.local/bin/i3cmds/td-toggle deleted file mode 100755 index dc727b9..0000000 --- a/.local/bin/i3cmds/td-toggle +++ /dev/null @@ -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 diff --git a/.local/bin/i3cmds/tmuxdd b/.local/bin/i3cmds/tmuxdd deleted file mode 100755 index 3997240..0000000 --- a/.local/bin/i3cmds/tmuxdd +++ /dev/null @@ -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 diff --git a/.local/bin/i3cmds/toggle-welcome b/.local/bin/i3cmds/toggle-welcome deleted file mode 100755 index 517c301..0000000 --- a/.local/bin/i3cmds/toggle-welcome +++ /dev/null @@ -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." ) diff --git a/.local/bin/i3cmds/toggletouchpad b/.local/bin/i3cmds/toggletouchpad deleted file mode 100755 index 6d8c9c8..0000000 --- a/.local/bin/i3cmds/toggletouchpad +++ /dev/null @@ -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." diff --git a/.local/bin/i3cmds/torwrap b/.local/bin/i3cmds/torwrap deleted file mode 100755 index 04e7a51..0000000 --- a/.local/bin/i3cmds/torwrap +++ /dev/null @@ -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 diff --git a/.local/bin/i3cmds/winresize b/.local/bin/i3cmds/winresize deleted file mode 100755 index 090bbf3..0000000 --- a/.local/bin/i3cmds/winresize +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -echo "📐" | dmenu -p "Give width and height:" | xargs xdotool windowsize "$(xdotool getwindowfocus)" diff --git a/.local/bin/maimpick b/.local/bin/maimpick index 7125e61..3619dbb 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -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 diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent index 0e3d02d..811ccd3 100755 --- a/.local/bin/statusbar/torrent +++ b/.local/bin/statusbar/torrent @@ -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; diff --git a/.local/bin/tools/dmenuhandler b/.local/bin/tools/dmenuhandler index 826fc9a..a1b4ab6 100755 --- a/.local/bin/tools/dmenuhandler +++ b/.local/bin/tools/dmenuhandler @@ -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