various changes
This commit is contained in:
parent
3a78b16b79
commit
5ed3bbe122
@ -188,6 +188,8 @@ Sxiv.txtcolor: nord6
|
||||
Sxiv.background: bblack
|
||||
Sxiv.foreground: nord6
|
||||
|
||||
xterm*saveLines: 2000
|
||||
|
||||
*.color0: nord1
|
||||
*.color1: nord11
|
||||
*.color2: nord14
|
||||
|
@ -43,8 +43,7 @@ alias \
|
||||
glog="git log --all --graph --decorate"\
|
||||
clog="config log --all --graph --decorate"\
|
||||
cam="mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0"\
|
||||
createvocabhtml="awk -F '\t' '{print \"<div class='word'><b>\"$2\"</b></div><div class='part_of_speech'>\"$4\"</div>\t <div class='meaning'><b>\"$3\"</b></div><div class='explanation'>\"$5\"</div><div class='example'>\"$6\"</div><div class='bottom'>no. \"$1\", \"$7\", \"$8\"</div>\"}'"
|
||||
|
||||
pa="paru"
|
||||
|
||||
# Some other stuff
|
||||
alias \
|
||||
@ -54,14 +53,6 @@ alias \
|
||||
tmux="tmux -f ${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf"\
|
||||
cast="mkchromecast --video --control -i"\
|
||||
castaudio="mkchromecast --control --screencast --b 320"\
|
||||
rest="clear && sleep 90 && echo ###########START############"
|
||||
#gpg="gpg --homedir=$GNUPGHOME"
|
||||
mlterm="matlab -nosplash -nodesktop -noopengl"
|
||||
|
||||
# Some useful functions
|
||||
vf() { fzf | xargs -r -I % $EDITOR % ;}
|
||||
# [ -z $video ] || ( mpv "$video" & disown ) ;}
|
||||
vpdf() { pdf="$( ls -t $HOME/.cache/luakit/viewpdf/ | fzf -e )"
|
||||
[ -z $pdf ] || ( $READER "$HOME/.cache/luakit/viewpdf/$pdf" & disown ) ;}
|
||||
epdf() { pdf="$(du -a --time ETH/ | awk '!($1="")' | sort -r | grep '\.pdf' | awk '!($1="")' | awk '!($1="")' | sed 's/^ //' | fzf -e )"
|
||||
[ -z $pdf ] || ( $READER "$pdf" & ) ;}
|
||||
alias config='/usr/bin/git --git-dir=/home/alex/.local/share/git_dotfiles --work-tree=/home/alex'
|
||||
|
@ -1,11 +0,0 @@
|
||||
[Filechooser Settings]
|
||||
LocationMode=path-bar
|
||||
ShowHidden=false
|
||||
ShowSizeColumn=true
|
||||
GeometryX=0
|
||||
GeometryY=0
|
||||
GeometryWidth=990
|
||||
GeometryHeight=800
|
||||
SortColumn=modified
|
||||
SortOrder=ascending
|
||||
StartupMode=recent
|
@ -322,11 +322,11 @@ def_key ">"
|
||||
#def_key "backspace"
|
||||
# replay_song
|
||||
#
|
||||
#def_key "f"
|
||||
# seek_forward
|
||||
def_key "f"
|
||||
seek_forward
|
||||
#
|
||||
#def_key "b"
|
||||
# seek_backward
|
||||
def_key "b"
|
||||
seek_backward
|
||||
#
|
||||
def_key "r"
|
||||
toggle_repeat
|
||||
|
@ -30,7 +30,7 @@ lyrics_directory = ~/.config/lyrics
|
||||
#
|
||||
## Needed for tag editor and file operations to work.
|
||||
##
|
||||
mpd_music_dir = "~/drv/Music"
|
||||
mpd_music_dir = "~/msc"
|
||||
#
|
||||
#mpd_crossfade_time = 5
|
||||
#
|
||||
@ -82,7 +82,7 @@ mpd_music_dir = "~/drv/Music"
|
||||
##
|
||||
visualizer_type = spectrum
|
||||
#
|
||||
#visualizer_look = ●卐
|
||||
visualizer_look = ●卐
|
||||
#visualizer_look = 卐
|
||||
#
|
||||
#visualizer_color = blue, cyan, green, yellow, magenta, red
|
||||
|
@ -5,6 +5,7 @@ cipher AES-256-CBC
|
||||
remote-cert-tls server
|
||||
remote ch1.safervpn.net 1194 # - Your server IP and OpenVPN Port
|
||||
resolv-retry infinite
|
||||
keepalive 10 120
|
||||
nobind
|
||||
tun-mtu 1500
|
||||
tun-mtu-extra 32
|
||||
|
@ -48,7 +48,7 @@ shadow-exclude = [
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Cairo-clock'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
];
|
||||
|
||||
# Specify a X geometry that describes the region in which shadow should not
|
||||
|
@ -31,6 +31,8 @@ settings:
|
||||
""
|
||||
',v': hint links spawn -d startmpv {hint-url}
|
||||
',x': hint links spawn -d dmenuhandler {hint-url}
|
||||
content.blocking.method:
|
||||
global: both
|
||||
content.desktop_capture:
|
||||
global: ask
|
||||
content.headers.user_agent:
|
||||
@ -108,7 +110,7 @@ settings:
|
||||
gg: https://linggle.com/?q={}
|
||||
ling: https://www.linguee.com/english-german/search?source=auto&query={}
|
||||
oz: http://www.ozdic.com/collocation-dictionary/{}
|
||||
sx: https://searx.bocken.org/?q={}&categories=general&language=en-US
|
||||
sx: https://searx.lukesmith.xyz/?q={}&categories=general&language=en-US
|
||||
yt: https://www.youtube.com/results?search_query={}
|
||||
url.start_pages:
|
||||
global: https://searx.lukesmith.xyz/
|
||||
|
@ -1,8 +0,0 @@
|
||||
[FileDialog]
|
||||
history=file:///home/alex/dox/encyclicals/piousXI/1937-sorge, file:///home/alex/eth/dynamics, file:///home/alex, file:///home/alex/dl, file:///home/alex/src/kanji
|
||||
lastVisited=file:///home/alex
|
||||
qtVersion=5.15.2
|
||||
shortcuts=file:, file:///home/alex
|
||||
sidebarWidth=82
|
||||
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xd9\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xe5\0\0\0\x1\0\0\0\0\0\0\0O\0\0\0\x1\0\0\0\0\0\0\0O\0\0\0\x1\0\0\0\0\0\0\0V\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)
|
||||
viewMode=Detail
|
@ -9,3 +9,5 @@ mystudies https://www.lehrbetrieb.ethz.ch/myStudies/studWillkommen.view
|
||||
live https://video.ethz.ch/live/lectures.html
|
||||
dynamics https://video.ethz.ch/live/lectures/zentrum/ml/ml-d-28/blackboard.html
|
||||
dim1 https://video.ethz.ch/live/lectures/zentrum/hg/hg-f-7.html
|
||||
wuf2 https://video.ethz.ch/live/lectures/zentrum/eta/eta-f-5.html
|
||||
rt2 https://moodle-app2.let.ethz.ch/course/view.php?id=14186
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -26,10 +26,10 @@
|
||||
"incomplete-dir-enabled": false,
|
||||
"inhibit-desktop-hibernation": false,
|
||||
"lpd-enabled": false,
|
||||
"main-window-height": 1747,
|
||||
"main-window-height": 1569,
|
||||
"main-window-is-maximized": 0,
|
||||
"main-window-width": 3194,
|
||||
"main-window-x": 0,
|
||||
"main-window-width": 1580,
|
||||
"main-window-x": 3848,
|
||||
"main-window-y": 47,
|
||||
"message-level": 2,
|
||||
"open-dialog-dir": "/home/alex",
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -16,7 +16,7 @@ remaps & # run the remaps script, switching caps/esc and more; check it for mor
|
||||
setbg & # set the background with the `setbg` script
|
||||
#wal -i ${XDG_CONFIG_HOME:-$HOME/.config}/wall.png -b '#000000'
|
||||
#xcompmgr & # xcompmgr for transparency (and apparently to reduce tearing)
|
||||
picom --experimental-backends &
|
||||
picom --experimental-backends & #ME NEED BLUR
|
||||
dunst & # dunst for notifications
|
||||
dwmblocks 2> /dev/null &
|
||||
xset r rate 300 50 & # Speed xrate up
|
||||
|
@ -1,5 +1,7 @@
|
||||
# Luke's config for the Zoomer Shell
|
||||
|
||||
#tmux set-option status off
|
||||
|
||||
# Enable colors and change prompt:
|
||||
autoload -U colors && colors # Load colors
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
|
@ -72,6 +72,8 @@ postrun() { # Stuff to run to clean up.
|
||||
setbg # Fix background if screen size/arangement has changed.
|
||||
remaps # Re-remap keys if keyboard added (for laptop bases)
|
||||
{ killall dunst ; setsid dunst & } >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
|
||||
xrandr --screen 0 | grep ' connected' | grep -v '^\s*$' | sed 's/ primary//' | cut -d ' ' -f3 > '/tmp/dims'
|
||||
|
||||
}
|
||||
|
||||
# Get all possible displays
|
||||
|
@ -20,7 +20,6 @@ do
|
||||
[ -n "$capacity" ] && [ "$capacity" -gt 100 ] && continue #do not print misreads
|
||||
[ -z "$capacity" ] && continue #if battery fails during reading, quit
|
||||
status=$(sed "s/Discharging/🔋/;s/Not charging/🛑/;s/Charging/🔌/;s/Unknown/🔋/;s/Full/⚡/" "$battery"/status)
|
||||
|
||||
# If it is discharging and 25% or less, we will add a ❗ as a warning.
|
||||
[ "$capacity" -le 25 ] && [ "$status" = "🔋" ] && warn="❗"
|
||||
printf "%s%s%s%%\n" "$status" "$warn" "$capacity"
|
||||
|
@ -1,6 +1,5 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
if pactl list sinks | grep -qE 'device.icon_name = \"audio-(headset|headphones)-bluetooth\"'; then
|
||||
echo 🎧
|
||||
else
|
||||
echo ""
|
||||
printf '🎧'
|
||||
fi
|
||||
printf '\n'
|
||||
|
@ -4,7 +4,7 @@
|
||||
current=$(xdotool getwindowfocus)
|
||||
|
||||
# xrandr is quite slow in execution. displayselect will generate a new one in postrun.
|
||||
# Otherwise if none exist this script will run xrandr once
|
||||
# Otherwise if none exist this script will run xrandr once. Changing display setups will not be detected.
|
||||
if [ -f /tmp/dims ]; then
|
||||
dims="$(cat /tmp/dims)"
|
||||
else
|
||||
@ -23,17 +23,22 @@ screenwidth="$( echo "$dim" | grep -Eo '^[0-9]{1,5}x' | tr -d 'x')"
|
||||
screenheight="$( echo "$dim" | grep -Eo 'x[0-9]{1,5}+' | tr -d 'x+')"
|
||||
|
||||
# Adjust here for larger/smaller windows
|
||||
newwidth=$(( 2 * screenwidth / 5))
|
||||
newheight=$(( 2 * screenheight / 5 ))
|
||||
newwidth=$(( 2 * screenwidth / 5 ))
|
||||
# fit your borderwidth setup of your WM or windows could bleed over to other display
|
||||
borderwidth=2
|
||||
|
||||
# see https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html for gravity specs
|
||||
case "$1" in
|
||||
left) horizontal=$(( borderwidth ))
|
||||
vertical=$(( screenheight - newheight - 2 * borderwidth )) ;;
|
||||
vertical=$(( screenheight - newheight - 2 * borderwidth ))
|
||||
gravity=7 #gravity of southwest
|
||||
;;
|
||||
right) horizontal=$(( screenwidth - newwidth - 2 * borderwidth ))
|
||||
vertical=$(( screenheight - newheight - 2 * borderwidth )) ;;
|
||||
vertical=$(( screenheight - newheight - 2 * borderwidth ))
|
||||
gravity=9 #gravity of southeast
|
||||
;;
|
||||
esac
|
||||
|
||||
xdotool windowsize "$current" $newwidth $newheight
|
||||
xdotool windowmove "$current" $horizontal $vertical
|
||||
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz
|
||||
wmctrl -r :ACTIVE: -e $gravity,$horizontal,$vertical,$newwidth,$newheight
|
||||
|
@ -14,6 +14,7 @@ export PATH="$PATH:$(du "$HOME/.local/share/cargo/bin" | cut -f2 | tr '\n' ':' |
|
||||
|
||||
# Default programs:
|
||||
export EDITOR="nvim"
|
||||
export PAGER="less"
|
||||
export TERMINAL="st"
|
||||
export BROWSER="qutebrowser"
|
||||
export READER="zathura"
|
||||
@ -51,7 +52,7 @@ export PASSWORD_STORE_GPG_OPTS='--homedir=/home/alex/.local/share/gnupg'
|
||||
# XDG USER DIRECOTRIES
|
||||
export XDG_DESKTOP_DIR="$HOME"
|
||||
export XDG_DOCUMENTS_DIR="$HOME/dox"
|
||||
export XDG_DOWNLOAD_DIR="$HOME/dl"
|
||||
export XDG_DOWNLOAD_DIR="$HOME/dls"
|
||||
export XDG_MUSIC_DIR="$HOME/msc"
|
||||
export XDG_PICTURES_DIR="$HOME/pics"
|
||||
export XDG_VIDEOS_DIR="$HOME/vids"
|
||||
|
Loading…
Reference in New Issue
Block a user