diff options
-rw-r--r-- | .Xresources | 2 | ||||
-rw-r--r-- | .newsboat/config | 65 | ||||
-rw-r--r-- | .tmux.conf | 4 | ||||
-rw-r--r-- | .zshrc | 3 | ||||
-rwxr-xr-x | bin/run_with_dmenu.sh | 8 | ||||
-rwxr-xr-x | chroot/make_devices.sh | 1 | ||||
-rwxr-xr-x | chroot/ubuntu2204.sh | 9 | ||||
-rwxr-xr-x | docker/mysql.sh | 4 | ||||
-rw-r--r-- | postit | 2 |
9 files changed, 58 insertions, 40 deletions
diff --git a/.Xresources b/.Xresources index 55028c2..8400303 100644 --- a/.Xresources +++ b/.Xresources @@ -11,7 +11,7 @@ Xft.embeddedbitmap: 1 xterm*dpi: 96 gnome-terminal*dpi: 96 *.alpha: 1.0 -*.font: DejaVuSansMono Nerd Font Mono:pixelsize=11.3:antialias=true:autohint=true; +*.font: DejaVuSansMono Nerd Font Mono:pixelsize=14;antialias=true;autohint=true xterm*scaleHeight: 1.01 #define base00 #000000 diff --git a/.newsboat/config b/.newsboat/config index c0a18b1..6fdd931 100644 --- a/.newsboat/config +++ b/.newsboat/config @@ -1,21 +1,33 @@ -# colors -#color background color255 color0 -#color listnormal color255 color0 -#color listfocus color255 color88 bold -#color listnormal_unread color255 color0 bold -#color listfocus_unread color255 color88 bold -#color info color255 color31 -#color article color255 color0 -color listfocus green black bold -color listnormal_unread green black -color listfocus_unread green black bold -color info green black bold -color article white black +# configs +# +show-read-feeds yes +history-limit 100 +display-article-progress yes +# keybindings +# +bind-key j next +bind-key k prev +bind-key j down article +bind-key k up article +bind-key G end +bind-key g home +bind-key ^F pagedown +bind-key ^B pageup + +# colors +# +color background color255 color0 +# color article white black +color article color23 black +color listnormal color24 color0 +color listfocus black green bold +color listnormal_unread green black bold +color listfocus_unread black green +color info green black bold # highlights -#highlight article "^(Feed|Title|Link|Date|Author):.*$" color31 color0 -#highlight article "https?://[^ ]+" color9 color0 protect +highlight article "https?://[^ ]+" color25 color0 protect underline bold highlight article "^Feed:.*" color174 black highlight article "^Title:.*" color223 black bold highlight article "^Author:.*" color114 black @@ -24,21 +36,8 @@ highlight article "^Date:.*" color223 black highlight article "\\[[0-9][0-9]*\\]" color66 black bold highlight article "\\[image [0-9][0-9]*\\]" color109 black bold highlight article "\\[embedded flash: [0-9][0-9]*\\]" color66 black bold - -bind-key j next -bind-key k prev -bind-key j down article -bind-key k up article -bind-key ^F pagedown -bind-key ^B pageup - -highlight article "(^Feed:.*|^Title:.*|^Author:.*)" color75 default -highlight article "(^Link:.*|^Date:.*)" color75 default -highlight article "^Podcast Download URL:.*" color71 default -highlight article "^Links:" white color240 underline -highlight article "\\[[0-9][0-9]*\\]" color72 default bold -highlight article "\\[image [0-9][0-9]*\\]" color72 default bold -highlight article "\\[embedded flash: [0-9][0-9]*\\]" color72 default bold -highlight article ":.*\\(link\\)$" color74 default -highlight article ":.*\\(image\\)$" color74 default -highlight article ":.*\\(embedded flash\\)$" color74 default +highlight article "^Podcast Download URL:.*" color72 default +highlight article "\\[image [0-9][0-9]*\\]" color72 default bold +highlight article "\\[embedded flash: [0-9][0-9]*\\]" color72 default bold +highlight article ":.*\\(embedded flash\\)$" color74 default +highlight article ":.*\\(image\\)$" color74 default @@ -12,8 +12,6 @@ set -g @plugin 'tmux-plugins/tmux-continuum' set -g @continuum-restore 'on' set -g @continuum-save-interval '15' -set -g @keyboard_layout:length 2 -# set -g @keyboard_layout:option_scope '-' # set -g @plugin 'tmux-plugins/tmux-sidebar' # set -g @resurrect-processes `ranger ssh w3mlastsession k9s top cointop newsboat irssi neomutt` @@ -155,7 +153,7 @@ set-option -g status-justify "centre" set-option -g status-left-length 120 set-option -g status-right-length 170 -continuumStatus="#[fg=colour16 bg=colour70]#{continuum_status}#{?#{pane_ssh_connected},#[fg=colour70 bg=colour31],#[fg=colour70 bg=colour24]}" +continuumStatus="#[fg=colour16 bg=colour70 bold]#(xkb-switch -p)#[nobold]#{?#{pane_ssh_connected},#[fg=colour70 bg=colour31],#[fg=colour70 bg=colour24]}" sshStatus="#{?#{pane_ssh_connected},#[fg=colour15 bold],#[fg=colour15 nobold]}#U@#H#{?#{pane_ssh_connected},:#{pane_ssh_port}#[fg=colour31 bg=colour26],#[fg=colour24 bg=colour26]}" set-option -g status-left "#{prefix_highlight}$wg_is_keys_off$continuumStatus$sshStatus#[nobold]#(/home/devi/scripts/tmux/vcs_info.sh)" set-option -g status-right "#(/home/devi/scripts/tmux/date.sh)#{online_status}" @@ -211,7 +211,7 @@ alias vm_disposable="cp ~/scripts/vagrant/disposable/Vagrantfile ." alias vm_disposable_alpine="cp ~/scripts/vagrant/disposable-alpine/Vagrantfile ." alias checktor="curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s https://check.torproject.org/api/ip" alias ip="ip --color=auto" -alias zathura="tabbed -c zathura -e" +alias zathura="tabbed -c -r 2 zathura -e id" alias ytfzf="proxychains4 -q -f ~/proxies/ice/proxychains.conf ytfzf" alias newsboat="proxychains4 -q -f ~/proxies/ice/proxychains.conf newsboat" alias dud="du -hcD --max-depth=1 | sort -hr | colcol | column -t" @@ -220,6 +220,7 @@ alias gitconfigrc="vim ~/scripts/.gitconfig" alias fixgitconfigrc="cp ~/scripts/.gitconfig ~/.gitconfig" alias nviminit="vim ~/scripts/init.vim" alias fixnviminit="cp ~/scripts/init.vim ~/.config/nvim/init.vim" +alias mysql='mysql --safe-updates --prompt="\u@\h [\d]>"' #autosuggest ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#5f5fff,bg=#000000,bold,underline" diff --git a/bin/run_with_dmenu.sh b/bin/run_with_dmenu.sh index a0dc7cf..bce0c00 100755 --- a/bin/run_with_dmenu.sh +++ b/bin/run_with_dmenu.sh @@ -1,6 +1,10 @@ #!/usr/bin/env zsh . ~/scripts/zshrc_stripped.sh -COMMAND=$(echo "" | dmenu -i -l 20 -p "Quick Term:") +COMMAND=$(echo "" | dmenu -l 20 -p "Quick Term:") RESULT=$(eval "$COMMAND") -echo $RESULT | dmenu -i -l 20 -p "Quick Term Out:" | xsel -ib +if [ "$COMMAND" = "getmangas" ]; then + echo "$RESULT" | sort | dmenu -D ">" -l 20 -p "Quick Term Out:" | xsel -ib +else + echo "$RESULT" | dmenu -l 20 -p "Quick Term Out:" | xsel -ib +fi diff --git a/chroot/make_devices.sh b/chroot/make_devices.sh index 311ded5..0dc4da9 100755 --- a/chroot/make_devices.sh +++ b/chroot/make_devices.sh @@ -21,4 +21,5 @@ make_devices() { } make_devices /home/devi/chroots/voidmusl make_devices /home/devi/chroots/voidglibc +make_devices /home/devi/chroots/ubuntu2204 # debootstrap stable /home/devi/chroots/debian11 http://deb.debian.org/debian diff --git a/chroot/ubuntu2204.sh b/chroot/ubuntu2204.sh new file mode 100755 index 0000000..792270b --- /dev/null +++ b/chroot/ubuntu2204.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +CHROOT_DIR=/home/devi/chroots/ubuntu2204 +sudo mount -t proc proc $CHROOT_DIR/proc/ +sudo mount -t sysfs sys $CHROOT_DIR/sys/ +# sudo mount -o bind /tmp $CHROOT_DIR/tmp/ +# sudo mount -o bind /dev $CHROOT_DIR/dev/ +sudo mount -t devpts none "$CHROOT_DIR/dev/pts" -o ptmxmode=0666,newinstance +sudo chroot $CHROOT_DIR diff --git a/docker/mysql.sh b/docker/mysql.sh new file mode 100755 index 0000000..6216b48 --- /dev/null +++ b/docker/mysql.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +docker run -d -p 3306:3306 -v mysql-data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password mysql:8-debian +#docker run -it --network some-network --rm mysql mysql -hsome-mysql -uexample-user -p @@ -37,3 +37,5 @@ https://smallpdf.com/jpg-to-pdf cat /home/devi/.clip_history | dmenu -l 10 | xsel -ib git worktree add -b hotfix ~/code/hotfix trunk sudo mount -t cifs -o user=pi4,vers=2.0,domain=MSHOME //192.168.1.200/disk1 /home/devi/sambashare +account add telegram +XXXXXXXXXXX +account add skypeweb thabogre@gmail.com XXXXXXXX |