Merge branch 'stow' of gaw:stonewareslord/sync into stow

This commit is contained in:
Austen Adler 2020-03-17 08:41:16 -04:00
commit 92625e74b2
13 changed files with 250 additions and 200 deletions

9
.gitmodules vendored Normal file
View File

@ -0,0 +1,9 @@
[submodule "kak/.config/kak/plugins/fzf.kak"]
path = kak/.config/kak/plugins/fzf.kak
url = https://github.com/andreyorst/fzf.kak
[submodule "kak/.config/kak/plugins/plug.kak"]
path = kak/.config/kak/plugins/plug.kak
url = https://github.com/andreyorst/plug.kak
[submodule "kak/.config/kak/plugins/smarttab.kak"]
path = kak/.config/kak/plugins/smarttab.kak
url = https://github.com/andreyorst/smarttab.kak

View File

@ -1,6 +1,7 @@
!URxvt.boldFont: -misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1 !URxvt.boldFont: -misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
URxvt.font: xft:Less Perfect DOS VGA
!URxvt.font: -*-*-*-*-*-*-*-*-*-*-*-*-*-* !URxvt.font: -*-*-*-*-*-*-*-*-*-*-*-*-*-*
URxvt.font: xft:Misc Fixed:size=14 !URxvt.font: xft:Misc Fixed:size=14
!URxvt.boldFont: -*-*-*-*-*-*-*-*-*-*-*-*-*-* !URxvt.boldFont: -*-*-*-*-*-*-*-*-*-*-*-*-*-*
!URxvt.font: xft:Fixed:style=SemiCondensed:size=10 !URxvt.font: xft:Fixed:style=SemiCondensed:size=10
!URxvt.font: xft:Inconsolata:size=12 !URxvt.font: xft:Inconsolata:size=12

View File

@ -18,7 +18,7 @@ bindsym $mod+shift+apostrophe bar mode dock
# Rename a workspace # Rename a workspace
bindsym $mod+shift+d exec i3-input -F 'rename workspace to "%s"' -P 'Rename to: ' bindsym $mod+shift+d exec i3-input -F 'rename workspace to "%s"' -P 'Rename to: '
# Rofi shortcuts # Rofi shortcuts
bindsym $mod+p exec "~/.config/i3/run.sh run" bindsym $mod+d exec "~/.config/i3/run.sh run"
# Clipboard manager # Clipboard manager
#bindsym ctrl+Mod1+v exec "~/.config/i3/run.sh clip" #bindsym ctrl+Mod1+v exec "~/.config/i3/run.sh clip"
# Pass shortcut # Pass shortcut
@ -26,7 +26,7 @@ bindsym $mod+p exec "~/.config/i3/run.sh run"
#bindsym $mod+shift+p exec "rofi-pass --last-used" #bindsym $mod+shift+p exec "rofi-pass --last-used"
# Misc shortcuts # Misc shortcuts
bindsym --release Num_Lock exec "xdotool key --clearmodifiers Shift+Insert;numlockx on" bindsym --release Num_Lock exec "xdotool key --clearmodifiers Shift+Insert;numlockx on"
bindsym Print exec "~/.config/i3/run.sh screenshot" bindsym $mod+p exec "~/.config/i3/run.sh screenshot"
# Split in vertical orientation # Split in vertical orientation
bindsym $mod+v split h bindsym $mod+v split h
# Split in horizontal orientation # Split in horizontal orientation
@ -110,7 +110,6 @@ bindsym $mod+shift+7 move container to workspace 7
bindsym $mod+shift+8 move container to workspace 8 bindsym $mod+shift+8 move container to workspace 8
bindsym $mod+shift+9 move container to workspace 9 bindsym $mod+shift+9 move container to workspace 9
bindsym $mod+shift+0 move container to workspace 10 bindsym $mod+shift+0 move container to workspace 10
bindsym $mod+d exec "~/.config/i3/run.sh copy"
bindsym $mod+grave exec "~/.config/i3/run.sh screen-lock" bindsym $mod+grave exec "~/.config/i3/run.sh screen-lock"
bindsym $mod+shift+grave exec "~/.config/i3/run.sh screen-lock" bindsym $mod+shift+grave exec "~/.config/i3/run.sh screen-lock"
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
@ -208,6 +207,7 @@ exec --no-startup-id amixer set Master 0% mute
exec --no-startup-id "~/.config/i3/run.sh wall" exec --no-startup-id "~/.config/i3/run.sh wall"
# Keyboard # Keyboard
exec --no-startup-id xmodmap ~/.xmodmap exec --no-startup-id xmodmap ~/.xmodmap
exec --no-startup-id xrdb ~/.Xresources
#exec --no-startup-id ~/xmodmap.sh #exec --no-startup-id ~/xmodmap.sh
# Misc # Misc
# Compositor # Compositor
@ -223,7 +223,7 @@ exec --no-startup-id /usr/bin/parcellite
# Turn off numlock! # Turn off numlock!
exec --no-startup-id /usr/bin/numlockx exec --no-startup-id /usr/bin/numlockx
# Run firefox/firefox-bin # Run firefox/firefox-bin
exec --no-startup-id firefox -p a || firefox-bin -p a exec --no-startup-id firefox || firefox-bin
# Start syncthing if it hasn't already been started # Start syncthing if it hasn't already been started
exec --no-startup-id /bin/zsh -c 'pidof syncthing||screen -dmS syncthing ~/bin/syncthing' exec --no-startup-id /bin/zsh -c 'pidof syncthing||screen -dmS syncthing ~/bin/syncthing'
#exec --no-startup-id nextcloud #exec --no-startup-id nextcloud
@ -231,4 +231,6 @@ exec --no-startup-id /bin/zsh -c 'pidof syncthing||screen -dmS syncthing ~/bin/s
#exec --no-startup-id "~/bin/indicator-kdeconnect" #exec --no-startup-id "~/bin/indicator-kdeconnect"
# riot # riot
exec --no-startup-id riot-web --hidden exec --no-startup-id riot-web --hidden
# setxkbmap
exec --no-startup-id setxkbmap -option caps:swapescape
# vim: ts=2:sw=2:et # vim: ts=2:sw=2:et

View File

@ -13,25 +13,19 @@ general {
order += "disk /" order += "disk /"
order += "cpu_usage" order += "cpu_usage"
order += "ethernet tun0" order += "ethernet tun0"
order += "wireless wlp2s0" order += "wireless wlo1"
order += "ethernet enp1s0"
order += "volume master" order += "volume master"
order += "battery 1" order += "battery 0"
order += "tztime local" order += "tztime local"
ethernet tun0 { ethernet tun0 {
# if you use %speed, i3status requires root privileges # if you use %speed, i3status requires root privileges
format_up = "%ip" format_up = "%ip"
format_down = "!T" format_down = "!T"
} }
wireless wlp2s0 { wireless wlo1 {
format_up = "%essid : %ip @ %quality" format_up = "%essid : %ip @ %quality"
format_down = "!W" format_down = "!W"
} }
ethernet enp1s0 {
# if you use %speed, i3status requires root privileges
format_up = "%ip (%speed)"
format_down = "!E"
}
tztime local { tztime local {
#format = "%a %b%e %r" #format = "%a %b%e %r"
format = "%a %e %b %F %r" format = "%a %e %b %F %r"
@ -47,10 +41,10 @@ volume master {
mixer = "Master" mixer = "Master"
mixer_idx = 0 mixer_idx = 0
} }
battery 1 { battery 0 {
#format = "%status %remaining %emptytime" #format = "%status %remaining %emptytime"
format = "%status %percentage" format = "%status %percentage"
path = "/sys/class/power_supply/BAT1/uevent" path = "/sys/class/power_supply/BAT0/uevent"
low_threshold = 20 low_threshold = 20
} }
disk "/" { disk "/" {

View File

@ -1,180 +1,163 @@
#!/usr/bin/env zsh #!/usr/bin/env bash
ARG="$1" ARG="$1"
shift shift
if [ "$ARG" = "move" ]; then case "${ARG}" in
shift move)
eval "$(xdotool getwindowfocus getwindowgeometry | grep Geometry: | perl -pe 's/^\s*Geometry: /WinH=/;s/x/\nWinW=/g')" eval "$(xdotool getwindowfocus getwindowgeometry | grep Geometry: | perl -pe 's/^\s*Geometry: /WinH=/;s/x/\nWinW=/g')"
eval "$(xdotool getwindowfocus getwindowgeometry | grep Position: | perl -pe 's/^\s*Position: /WinY=/;s/,/\nWinX=/g;s/\s\(.+//')" eval "$(xdotool getwindowfocus getwindowgeometry | grep Position: | perl -pe 's/^\s*Position: /WinY=/;s/,/\nWinX=/g;s/\s\(.+//')"
eval "$(xrandr | grep -w connected | perl -pe 's/.+?(\d+x\d+)\+\d+\+\d+.*/\1/g;s/^/MonH=/;s/x/\nMonW=/;' | head -n2)" eval "$(xrandr | grep -w connected | perl -pe 's/.+?(\d+x\d+)\+\d+\+\d+.*/\1/g;s/^/MonH=/;s/x/\nMonW=/;' | head -n2)"
if [ "$ARG" = "top" ]; then if [[ "$ARG" = "top" ]]; then
echo $((WinY)) echo $((WinY))
xdotool getwindowfocus windowmove $((WinY - 1)) 0 xdotool getwindowfocus windowmove $((WinY - 1)) 0
elif [ "$ARG" = "right" ]; then elif [[ "$ARG" = "right" ]]; then
xdotool getwindowfocus windowmove $((MonH - WinH)) $((WinX - 1)) xdotool getwindowfocus windowmove $((MonH - WinH)) $((WinX - 1))
elif [ "$ARG" = "left" ]; then elif [[ "$ARG" = "left" ]]; then
xdotool getwindowfocus windowmove 0 $((WinX - 1)) xdotool getwindowfocus windowmove 0 $((WinX - 1))
elif [ "$ARG" = "bottom" ]; then elif [[ "$ARG" = "bottom" ]]; then
xdotool getwindowfocus windowmove $((WinY - 1)) $((MonW - WinW)) xdotool getwindowfocus windowmove $((WinY - 1)) $((MonW - WinW))
fi fi
elif [ "$ARG" = "lock" ];then ;;
#!/bin/bash lock)
declare -i ID
declare -i ID ID=`xinput list | grep -Eo 'TouchPad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
ID=`xinput list | grep -Eo 'TouchPad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'` declare -i STATE
declare -i STATE STATE=`xinput list-props "${ID}"|grep 'Device Enabled'|awk '{print $4}'`
STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'` if [[ $STATE -eq 1 ]];then
if [ $STATE -eq 1 ];then xinput disable "${ID}"
xinput disable $ID echo "Touchpad disabled."
echo "Touchpad disabled." else
else xinput enable "${ID}"
xinput enable $ID echo "Touchpad enabled."
echo "Touchpad enabled." fi
fi ;;
fi pass)
if [ "$ARG" = "pass" ];then pass -c "$(ls ~/.password-store/*/*|cut -b-37 --complement|rofi -dmenu|sed -e 's/\.gpg//')"
pass -c $(ls ~/.password-store/*/*|cut -b-37 --complement|rofi -dmenu|sed -e 's/\.gpg//') ;;
fi screensaver)
if [ "$ARG" = "screensaver" ];then cat /tmp/noss||i3lock -di `shuf -n1 -e ~/.i3/wall/*`
cat /tmp/noss||i3lock -di `shuf -n1 -e ~/.i3/wall/*` ;;
fi wall)
if [ "$ARG" = "wall" ];then #if [[ -d ~/.i3/wallOM ]];then feh --bg-scale "`shuf -n1 -e ~/.i3/wallOM/*`";else feh --bg-scale "`shuf -n1 -e ~/.i3/wall/*`";fi;
#if [[ -d ~/.i3/wallOM ]];then feh --bg-scale "`shuf -n1 -e ~/.i3/wallOM/*`";else feh --bg-scale "`shuf -n1 -e ~/.i3/wall/*`";fi; #feh --bg-scale "$(shuf -n1 -e ~/.i3/wallOM/*)"
#feh --bg-scale "$(shuf -n1 -e ~/.i3/wallOM/*)" #feh --bg-scale ~/.i3/image.png
#feh --bg-scale ~/.i3/image.png feh --bg-scale "$(shuf -n1 <(realpath /home/stonewareslord/sync/wallpaper/"$(hostname)"/*))"
feh --bg-scale "$(shuf -n1 <(realpath /home/stonewareslord/sync/wallpaper/"$(hostname)"/*))" ;;
fi swap)
if [ "$ARG" = "swap" ];then python <<-EOF
python << EOF import i3
import i3 swap = [output for output in i3.get_outputs() if output['active']]
swap = [output for output in i3.get_outputs() if output['active']] if len(swap) == 2:
if len(swap) == 2: for output in swap:
for output in swap: i3.workspace(output['current_workspace'])
i3.workspace(output['current_workspace']) i3.command('move', 'workspace to output right')
i3.command('move', 'workspace to output right') EOF
EOF ;;
fi boot)
if [ "$ARG" = "boot" ];then test -f ~/.screenlayout/default.sh && ~/.screenlayout/default.sh
test -f ~/.screenlayout/default.sh && ~/.screenlayout/default.sh /usr/bin/xset -b
/usr/bin/xset -b /usr/bin/xset +fp /usr/share/fonts/X11/misc
/usr/bin/xset +fp /usr/share/fonts/X11/misc /usr/bin/xset +fp /usr/share/fonts/X11/Type1
/usr/bin/xset +fp /usr/share/fonts/X11/Type1 /usr/bin/xset +fp built-ins
/usr/bin/xset +fp built-ins /usr/bin/xset s off
/usr/bin/xset s off /usr/bin/xset -dpms
/usr/bin/xset -dpms # This will segfault and ruin your day
# This will segfault and ruin your day #/usr/bin/urxvtd -q -f -o
#/usr/bin/urxvtd -q -f -o #if [[ "$(hostname)" = "MMLin" ]]; then
#if [ "$(hostname)" = "MMLin" ]; then # xrandr --output HDMI1 --primary
# xrandr --output HDMI1 --primary # xmodmap <(echo pointer = 3 2 1)
# xmodmap <(echo pointer = 3 2 1) #elif [[ "$(hostname)" = "G2" ]]; then
#elif [ "$(hostname)" = "G2" ]; then # #TODO: Figure out what the display is called
# #TODO: Figure out what the display is called # xrandr --output eDP1 --primary
# xrandr --output eDP1 --primary # xmodmap <(echo pointer = 1 2 3)
# xmodmap <(echo pointer = 1 2 3) #fi
#fi #feh --bg-scale "$(shuf -n1 <(realpath /home/stonewareslord/owncloud/wallpaper/$(hostname)))"
#feh --bg-scale "$(shuf -n1 <(realpath /home/stonewareslord/owncloud/wallpaper/$(hostname)))" #xinput --set-prop 'Logitech USB Optical Mouse' 'Device Accel Constant Deceleration' 3
#xinput --set-prop 'Logitech USB Optical Mouse' 'Device Accel Constant Deceleration' 3 if command -v ck-launch-session >/dev/null; then
if command -v ck-launch-session >/dev/null; then ck-launch-session i3
ck-launch-session i3 else
else i3
i3 fi
fi ;;
fi screen-lock)
if [ "$ARG" = "screen-lock" ];then revert(){
revert(){ xset dpms 0 0 0
xset dpms 0 0 0 }
} trap revert SIGHUP SIGINT SIGTERM
trap revert SIGHUP SIGINT SIGTERM xset +dpms dpms 5 5 5
xset +dpms dpms 5 5 5 slock
slock revert
revert ;;
fi paste)
if [ "$ARG" = "paste" ]; then sleep 2
sleep 2 DISPLAY=:0.0 xdotool type --clearmodifiers --file <(xsel)
DISPLAY=:0.0 xdotool type --clearmodifiers --file <(xsel) ;;
fi ping)
if [ "$ARG" = "ping" ]; then # Return code
shift RET=0
# Return code # nc has some intense divergence. netcat6 has no -z, but netcat has no -x
local RET=0 # -w3: 3 second timeout
# nc has some intense divergence. netcat6 has no -z, but netcat has no -x # -4 : ipv4 only
# -w3: 3 second timeout # check if nc has -z
# -4 : ipv4 only if nc -h |& grep -q -- -z; then
# check if nc has -z nc -w 1 -z4 "$ARG" "$1" >& /dev/null && RET=1
if nc -h |& grep -q -- -z; then # check if nc has --transfer (-x)
nc -w 1 -z4 "$ARG" "$1" >& /dev/null && RET=1 elif nc -h |& grep -q -- --transfer; then
# check if nc has --transfer (-x) nc -w 1 -4 "$ARG" "$1" -x </dev/null >& /dev/null && RET=1
elif nc -h |& grep -q -- --transfer; then fi
nc -w 1 -4 "$ARG" "$1" -x </dev/null >& /dev/null && RET=1 echo $RET
fi ;;
echo $RET screenshot)
fi #\rm -f ~/last-photo/*(N)
if [ "$ARG" = "ip" ]; then find ~/last-photo/ -type f -delete
shift #DISPLAY=:0.0 xfce4-screenshooter -r -s ~/last-photo
local RET=0 FNAME="$HOME/last-photo/$(date +'%Y-%m-%d_%T').png"
if [ "$(hostname)" = "MMLin" ]; then DISPLAY=:0.0 import "${FNAME}"
if grep -q "$ARG" < <(ifconfig enp2s0f0); then DISPLAY=:0.0 xclip -selection clipboard -t image/png -i "${FNAME}"
RET=1 #DISPLAY=:0.0 scrot -s "$HOME/last-photo/$(date +'%Y-%m-%d_%T').png"
fi \cp ~/last-photo/* ~/Pictures
elif [ "$(hostname)" = "G2" ]; then ;;
if grep -q "$ARG" < <(ifconfig enp1s0;ifconfig wlp2s0); then shutdownprompt)
RET=1 RESP=$(printf 'Sleep\nNMRestart\nShutdown\nRestart\nLogout\n' | rofi -i -dmenu 2>/dev/null)
fi if [[ ! -z "$RESP" ]]; then
elif [ "$(hostname)" = "SGen" ]; then case "$RESP" in
if grep -q "$ARG" < <(ifconfig enp0s25); then NMRestart)
RET=1 nmcli radio wifi off;sleep 1;nmcli radio wifi on
fi ;;
fi Restart)
echo $RET sudo /sbin/shutdown -r now
fi ;;
if [ "$ARG" = "copy" ]; then Shutdown)
(printf '-chegg ';xsel | perl -pe 's/[^a-zA-Z ]//g;chomp()') | xsel && notify-send "Copied" || notify-send "Error" sudo /sbin/poweroff
fi ;;
if [ "$ARG" = "screenshot" ]; then Logout)
\rm -f ~/last-photo/*(N) i3-msg exit
sleep .2 ;;
#DISPLAY=:0.0 xfce4-screenshooter -r -s ~/last-photo Sleep)
local FNAME="$HOME/last-photo/$(date +'%Y-%m-%d_%T').png" amixer set Master 0% mute
DISPLAY=:0.0 import "${FNAME}" slock &
DISPLAY=:0.0 xclip -selection clipboard -t image/png -i "${FNAME}" until sudo tee /sys/power/state <<<"mem" >/dev/null; do
#DISPLAY=:0.0 scrot -s "$HOME/last-photo/$(date +'%Y-%m-%d_%T').png" sleep 1
\cp ~/last-photo/* ~/Pictures done
fi sleep 4
if [ "$ARG" = "shutdownprompt" ]; then nmcli radio wifi off
RESP=$(printf 'Sleep\nNMRestart\nShutdown\nRestart\nLogout\n' | rofi -i -dmenu 2>/dev/null) sleep 3
if [[ ! -z "$RESP" ]]; then nmcli radio wifi on
case "$RESP" in ;;
NMRestart) nmcli radio wifi off;sleep 1;nmcli radio wifi on;; esac
Restart) fi
sudo /sbin/shutdown -r now ;;
;; run)
Shutdown) PATH="$HOME/bin:/usr/games/bin:$PATH" rofi -show run
sudo /sbin/poweroff ;;
;; window)
Logout) rofi -show window
i3-msg exit ;;
;; clip)
Sleep) # Get the rofi-selected index of what to paste
amixer set Master 0% mute INDEX="$(gpaste-client --oneline | colrm 80 | rofi -dmenu | perl -pe 's/:.*//')"
slock&until echo mem|sudo tee /sys/power/state>/dev/null;do sleep 1;done # If they made a selection, select it
sleep 4 if [[ ! -z "$INDEX" ]]; then
nmcli radio wifi off gpaste-client select "$INDEX"
sleep 3 fi
nmcli radio wifi on ;;
;; esac
esac
fi
fi
if [ "$ARG" = "run" ]; then
PATH="$HOME/bin:/usr/games/bin:$PATH" rofi -show run
fi
if [ "$ARG" = "window" ]; then
rofi -show window
fi
if [ "$ARG" = "clip" ]; then
# Get the rofi-selected index of what to paste
local INDEX="$(gpaste-client --oneline | colrm 80 | rofi -dmenu | perl -pe 's/:.*//')"
# If they made a selection, select it
if [[ ! -z "$INDEX" ]]; then
gpaste-client select "$INDEX"
fi
fi

51
kak/.config/kak/kakrc Normal file
View File

@ -0,0 +1,51 @@
# Disable mouse
set global ui_options ncurses_enable_mouse=false
colorscheme gruvbox
# Word-wrap
add-highlighter global/ wrap
add-highlighter global/ number-lines
# Tab complete and indent
hook global InsertCompletionShow .* %{
try %{
execute-keys -draft 'h<a-K>\h<ret>'
map window insert <tab> <c-n>
map window insert <s-tab> <c-p>
}
}
hook global InsertCompletionHide .* %{
unmap window insert <tab> <c-n>
unmap window insert <s-tab> <c-p>
}
# Editorconfig
hook global BufOpenFile .* %{ editorconfig-load }
hook global BufNewFile .* %{ editorconfig-load }
# Surround
map global user [ i[<esc>a]<esc>H
map global user { i{<esc>a}<esc>H
map global user ( i(<esc>a)<esc>H
map global user <lt> i<lt><esc>a<gt><esc>H
map global user \' i'<esc>a'<esc>H
map global user \" i"<esc>a"<esc>H
# Plug
source "%val{config}/plugins/plug.kak/rc/plug.kak"
# Plugins
plug "andreyorst/smarttab.kak" defer smarttab %{
# when `backspace' is pressed, 4 spaces are deleted at once
set-option global softtabstop 4
} config %{
hook global WinSetOption filetype=(rust|markdown|kak|lisp|scheme|perl|c|cpp|java) expandtab
hook global WinSetOption filetype=(sh|makefile|gas) noexpandtab
}
plug "andreyorst/fzf.kak" config %{
map -docstring 'fzf mode' global normal '<c-p>' ': fzf-mode<ret>'
set-option global fzf_file_command 'rg' # 'ag', 'fd', or 'find'
}

@ -0,0 +1 @@
Subproject commit dc6d0a504ef43511642448c1d7447855b8f17f54

@ -0,0 +1 @@
Subproject commit af0b50a2e080a2f4d81b411f10b0f8b22438a0e4

@ -0,0 +1 @@
Subproject commit 1321c308edac6bd892e2bd2f683432402a04be98

View File

@ -323,10 +323,11 @@ bind editor <Tab> complete-query
bind editor ^T complete bind editor ^T complete
# Writing mail # Writing mail
bind index,pager m mail bind index,pager m mail
bind index,pager r reply bind index,pager r reply
bind index,pager b bounce-message bind index,pager <Esc>r group-reply # Control-r, \Cr
bind index,pager f forward-message bind index,pager b bounce-message
bind index,pager f forward-message
# Archive # Archive
macro index,pager d "<save-message>=Archive<enter><enter>" "Archive" macro index,pager d "<save-message>=Archive<enter><enter>" "Archive"
@ -367,5 +368,4 @@ bind pager H display-toggle-weed
# #
# bind browser <Space> check-new # bind browser <Space> check-new
# bind browser N select-new # bind browser N select-new
# bind index <Esc>r group-reply # Control-r, \Cr
# vim: set ft=neomuttrc # vim: set ft=neomuttrc

View File

@ -13,6 +13,6 @@ cp "$FILE" "$TMP_DIR/input.html"
# docker container run -it --rm -v "$TMP_DIR:/usr/src/app" zenika/alpine-chrome --no-sandbox --screenshot --hide-scrollbars "file:///usr/src/app/input.html" # docker container run -it --rm -v "$TMP_DIR:/usr/src/app" zenika/alpine-chrome --no-sandbox --screenshot --hide-scrollbars "file:///usr/src/app/input.html"
# Works but screenshot is usually too large # Works but screenshot is usually too large
# docker container run -it --net none --rm -v "$TMP_DIR:/usr/src/app" zenika/alpine-chrome --no-sandbox --screenshot --window-size=1280,1696 --hide-scrollbars "file:///usr/src/app/input.html" # docker container run -it --net none --rm -v "$TMP_DIR:/usr/src/app" zenika/alpine-chrome --no-sandbox --screenshot --window-size=1280,1696 --hide-scrollbars "file:///usr/src/app/input.html"
docker container run -it --rm -v "$TMP_DIR:/usr/src/app" zenika/alpine-chrome --no-sandbox --print-to-pdf --hide-scrollbars "file:///usr/src/app/input.html" docker container run -it --net none --rm -v "$TMP_DIR:/usr/src/app" zenika/alpine-chrome --no-sandbox --print-to-pdf --hide-scrollbars "file:///usr/src/app/input.html"
xdg-open "$TMP_DIR/output.pdf" xdg-open "$TMP_DIR/output.pdf"

View File

@ -69,6 +69,11 @@ set wait_key = no
set mailcap_path = ~/.mutt/mailcap set mailcap_path = ~/.mutt/mailcap
# set record="+Sent"
# set postponed="+Drafts"
set copy=yes
# macro index z "!mbsync -a^M" "Update through mbsync" # macro index z "!mbsync -a^M" "Update through mbsync"
# Load account information # Load account information

View File

@ -8,3 +8,5 @@ export PATH="${HOME}/go/bin:${PATH}"
#trap 'export CESIUM_LAST_COMMAND_TIME="$(date +%s)"' DEBUG #trap 'export CESIUM_LAST_COMMAND_TIME="$(date +%s)"' DEBUG
#PROMPT_COMMAND=prompt_cmd #PROMPT_COMMAND=prompt_cmd
export EDITOR=kak export EDITOR=kak
[ -f ~/.fzf.bash ] && source ~/.fzf.bash