Various changes

modified:   .config/coc/extensions/db.json
	modified:   .config/qutebrowser/bookmarks/urls
	modified:   .config/qutebrowser/qsettings/QtProject.conf
	modified:   .config/xprofile
	modified:   .local/bin/bt
	modified:   .local/bin/displayselect
	modified:   .local/bin/tools/dmenuhandler
	modified:   .local/bin/tools/dmenupass
	modified:   .local/bin/tools/passmenu2
	modified:   .local/bin/tools/watchit
	modified:   .local/bin/tools/wv
This commit is contained in:
Alexander Bocken 2020-08-12 14:19:35 +02:00
parent 42f3a6052d
commit 64a045064e
17 changed files with 40 additions and 20 deletions

View File

@ -1,3 +1,3 @@
{ {
"lastUpdate": 1595485823082 "lastUpdate": 1597156787186
} }

View File

@ -2,3 +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://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://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://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

View File

@ -1,5 +1,5 @@
[FileDialog] [FileDialog]
history=file:///home/alex history=file:///home/alex, file:///home/alex/eth/thermo2, file:///home/alex/eth/wuf2, file:///home/alex/eth/innoproz
lastVisited=file:///home/alex lastVisited=file:///home/alex
qtVersion=5.15.0 qtVersion=5.15.0
shortcuts=file:, file:///home/alex shortcuts=file:, file:///home/alex

Binary file not shown.

View File

@ -1,7 +1,7 @@
{ {
"downloaded-bytes": 49144363857, "downloaded-bytes": 142171362897,
"files-added": 42, "files-added": 2287,
"seconds-active": 60346, "seconds-active": 848419,
"session-count": 4, "session-count": 21,
"uploaded-bytes": 9233520240 "uploaded-bytes": 54280909148
} }

View File

@ -16,13 +16,13 @@ remaps & # run the remaps script, switching caps/esc and more; check it for mor
setbg & # set the background with the `setbg` script setbg & # set the background with the `setbg` script
xrdb -merge ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources # Uncomment to use Xresources colors/settings on startup xrdb -merge ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources # Uncomment to use Xresources colors/settings on startup
#wal -i ${XDG_CONFIG_HOME:-$HOME/.config}/wall.png -b '#000000' #wal -i ${XDG_CONFIG_HOME:-$HOME/.config}/wall.png -b '#000000'
xcompmgr & # xcompmgr for transparency xcompmgr & # xcompmgr for transparency (and apparently to reduce tearing)
dunst & # dunst for notifications dunst & # dunst for notifications
dwmblocks & dwmblocks &
xset r rate 300 50 & # Speed xrate up xset r rate 300 50 & # Speed xrate up
unclutter --timeout 2 --ignore-scrolling & # Remove mouse when idle unclutter --timeout 2 --ignore-scrolling & # Remove mouse when idle
insync start & #insync start &
element-desktop --hidden & #element-desktop --hidden &
transmission-daemon & transmission-daemon &
echo "$HOME/.config/mpd/state" | entr -np pkill -RTMIN+11 dwmblocks & echo "$HOME/.config/mpd/state" | entr -np pkill -RTMIN+11 dwmblocks &
xrandr --listactivemonitors | grep -q '1920.*x1080.*HDMI-1$' && ( xrandr --output HDMI-1 --scale 1.5 && setbg ) # set scale for 2nd monitor if connected xrandr --listactivemonitors | grep -q '1920.*x1080.*HDMI-1$' && ( xrandr --output HDMI-1 --scale 1.5 && setbg ) # set scale for 2nd monitor if connected

View File

@ -2,6 +2,7 @@
SCAN_PERIOD=5 SCAN_PERIOD=5
AUTOTRUST=false #trust every newly paired device AUTOTRUST=false #trust every newly paired device
AUTOSCAN=false #immediately start scanning when started to speed up pairing process AUTOSCAN=false #immediately start scanning when started to speed up pairing process
#locations of blacklist and hard coded list of paired devices (watch out, need to modify Makefile as well if you want to change these values and still use make install) #locations of blacklist and hard coded list of paired devices (watch out, need to modify Makefile as well if you want to change these values and still use make install)
BLACKLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/blacklist BLACKLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/blacklist
PAIRLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/paired PAIRLIST=${XDG_DATA_HOME:-$HOME/.local/share}/bt/paired
@ -75,8 +76,9 @@ startup(){
startup & startup &
update_pair_list & update_pair_list &
# include head command here to speed up launch if too many devices are listed (long uptime and long scanning will lead to this depending on your surroundings)
# shellcheck disable=SC1091 # shellcheck disable=SC1091
if bluetoothctl devices | awk '{print "bluetoothctl info "$2}' | . /dev/stdin | grep -q "Connected: yes" if bluetoothctl devices | head | awk '{print "bluetoothctl info "$2}' | . /dev/stdin | grep -q "Connected: yes"
then then
actions="$(printf "disconnect\n%s" "$actions")" actions="$(printf "disconnect\n%s" "$actions")"
fi fi
@ -146,7 +148,7 @@ pair(){
bluetoothctl trust "$dev_id" bluetoothctl trust "$dev_id"
fi fi
#if device is not already hard coded as paired, add to paired devices list #if device is not already hard coded as paired, add to paired devices list
if [ "$( grep "$dev_id" "$PAIRLIST")" = "" ] || [ "$(wc -l "$PAIRLIST")" -eq 0 ] && $pair_succesful if $pair_succesful && [ "$( grep "$dev_id" "$PAIRLIST")" = "" ] || [ "$(wc -l "$PAIRLIST")" -eq 0 ]
then then
echo to be added to "$PAIRLIST": echo to be added to "$PAIRLIST":
echo Device "$dev_id" "$choice" echo Device "$dev_id" "$choice"
@ -221,8 +223,13 @@ case $choice in
[ "$dev_no" != "" ] && dev_id=$( echo "$bt_IDS" | nl | grep -P "^.*$dev_no\t" | awk '{print $2}') [ "$dev_no" != "" ] && dev_id=$( echo "$bt_IDS" | nl | grep -P "^.*$dev_no\t" | awk '{print $2}')
if [ -n "$dev_id" ]; then if [ -n "$dev_id" ]; then
power on power on
if bluetoothctl info "$dev_id" | grep -q "Connected: yes"
then
bluetoothctl disconnect "$dev_id"
else
bluetoothctl devices | grep -q "$dev_id" || bluetoothctl pair "$dev_id" bluetoothctl devices | grep -q "$dev_id" || bluetoothctl pair "$dev_id"
bluetoothctl connect "$dev_id" bluetoothctl connect "$dev_id"
fi
fi;; fi;;
esac esac

View File

@ -4,6 +4,9 @@
# displays and lets user select one to use. User may also select "manual # displays and lets user select one to use. User may also select "manual
# selection" which opens arandr. # selection" which opens arandr.
#automatically scale HD screens to better work with hidpi
scale_factor_HD=1.6
twoscreen() { # If multi-monitor is selected and there are two screens. twoscreen() { # If multi-monitor is selected and there are two screens.
mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays?") mirror=$(printf "no\\nyes" | dmenu -i -p "Mirror displays?")
@ -34,8 +37,14 @@ twoscreen() { # If multi-monitor is selected and there are two screens.
primary=$(echo "$screens" | dmenu -i -p "Select primary display:") primary=$(echo "$screens" | dmenu -i -p "Select primary display:")
secondary=$(echo "$screens" | grep -v "$primary") secondary=$(echo "$screens" | grep -v "$primary")
direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?") direction=$(printf "left\\nright" | dmenu -i -p "What side of $primary should $secondary be on?")
if [ "$primary" = "HDMI-1" ]; then
xrandr --output "$primary" --auto --scale $scale_factor_HD --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
elif [ "$secondary" = "HDMI-1" ]; then
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale $scale_factor_HD
else
xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0 xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction"-of "$primary" --auto --scale 1.0x1.0
fi fi
fi
} }
morescreen() { # If multi-monitor is selected and there are more than two screens. morescreen() { # If multi-monitor is selected and there are more than two screens.

View File

@ -16,5 +16,5 @@ case "$(printf "mpv\\ncopy url\\nqueue download\\n\\nqueue youtube-dl\\nbrowser\
#w3m) w3m "$1" >/dev/null 2>&1 ;; #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 & ;; #"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:')" "rip media") dest="$(dmenuinput 'name of folder:')"
[ "$dest" != "" ] && ( lynx --dump --nonumbers --listonly $1 | grep -E "(*\.webm|*\.mp4|\.gif|\.jpg|\.jpeg|\.png)" | sort -u | xargs wget -P /home/alex/$dest ) || ( lynx --dump --nonumbers --listonly $1 | grep -E "(*\.webm|*\.mp4|\.gif|\.jpg|\.jpeg|\.png)" | sort -u | xargs wget -P /home/alex/ );; lynx --dump --nonumbers --listonly "$1" | grep -E "(*\.webm|*\.mp4|\.gif|\.jpg|\.jpeg|\.png)" | sort -u | xargs wget -P "$HOME/$dest";;
esac esac

View File

@ -1,2 +1,2 @@
!/bin/sh #!/bin/sh
dmenu -fn Monospace-13 -sb "#d79921" -sf "#1d2021" -nf "#000000" -nb "#000000" -p "$1" <&- && echo dmenu -fn Monospace-13 -sb "#d79921" -sf "#1d2021" -nf "#000000" -nb "#000000" -p "$1" <&- && echo

View File

@ -47,8 +47,10 @@ while [ "$DONE" -eq 0 ] ; do
pass show -c "$SELECTION" > $HOME/.cache/passstring pass show -c "$SELECTION" > $HOME/.cache/passstring
sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000 sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000
sleep 45 sleep 45
[ -f $HOME/.cache/passstring ] && notify-send "Password" "password cleared from clipboard" -t 4000 if [ -f $HOME/.cache/passstring ]; then
notify-send "Password" "password cleared from clipboard" -t 4000
rm $HOME/.cache/passstring rm $HOME/.cache/passstring
fi
else else
xdotool - <<<"type --clearmodifiers -- $(pass show "$SELECTION" | head -n 1)" xdotool - <<<"type --clearmodifiers -- $(pass show "$SELECTION" | head -n 1)"

View File

@ -12,4 +12,5 @@ do
printf '%-*.*s%s\n' $COLS $COLS "$LINE" "$EL" printf '%-*.*s%s\n' $COLS $COLS "$LINE" "$EL"
done done
printf '%s%s' "$ED" "$HOME" printf '%s%s' "$ED" "$HOME"
sleep 0.2
done done

View File

@ -6,6 +6,6 @@ touch $videos
while read line; do while read line; do
[ -f "$line" ] && echo $line >> $videos [ -f "$line" ] && echo $line >> $videos
done <$alldata done <$alldata
cat $videos | dmenu -i -l 30 -p "Choose a video to watch:" | sed 's/^/\"/' | sed 's/$/\"/' | xargs -r xdg-open cat $videos | sort -u | dmenu -i -l 30 -p "Choose a video to watch:" | sed 's/^/\"/' | sed 's/$/\"/' | xargs -r xdg-open
rm "$alldata" rm "$alldata"
rm "$videos" rm "$videos"