diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..6d42a61 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,17 @@ +# Always allow seeking, e.g. allow seeking within a local cache of HTTP stream +force-seekable=yes +# Always open a video window even with no video +force-window=yes +# Don't exit when the end of playlist is reached +keep-open=yes +# Always save the current playback position on exit +save-position-on-quit=yes + +# Create 'high-quality' profile +[high-quality] +# Describe this profile +profile-desc="High quality rendering" +# Include all settings from the default 'opengl-hq' profile +profile=opengl-hq +# Disable debanding for better performance +deband=no diff --git a/.local/bin/Logs-emerge b/.local/bin/Logs-emerge deleted file mode 100755 index 0f3575b..0000000 --- a/.local/bin/Logs-emerge +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -LOGS=( $(sudo find /var/tmp/portage/ -mindepth 3 -name "build.log") ) -LEN=${#LOGS[@]} - -for (( i=0; i<$LEN; i++ )); -do - echo "$i - ${LOGS[$i]}" -done - -echo -read -p 'Select number to show logs: ' NUMBER - -sudo tail -f ${LOGS[$NUMBER]} diff --git a/.local/bin/gentoo-test b/.local/bin/gentoo-test index 6d8563e..785d64d 100755 --- a/.local/bin/gentoo-test +++ b/.local/bin/gentoo-test @@ -11,15 +11,15 @@ then sudo mkdir -p /mnt/gentoo/dev sudo mkdir -p /mnt/gentoo/sys sudo mkdir -p /mnt/gentoo/mnt/backup/ccache - sudo cp -r /mnt/backup/ccache/ccache.conf /mnt/gentoo/mnt/backup/ccache - sudo rsync --progress -az -H /etc/portage/ /mnt/gentoo/gentoo/etc/portage/ - sudo rsync --progress -az -H /usr/portage/ /mnt/gentoo/gentoo/usr/portage/ - sudo rsync --progress -az -H /usr/repos/ /mnt/gentoo/gentoo/usr/repos/ + sudo cp -r $CCACHE_DIR/ccache.conf /mnt/gentoo/mnt/backup/ccache + sudo rsync -az -H /etc/portage/ /mnt/gentoo/gentoo/etc/portage/ + #sudo rsync -az -H /usr/portage/ /mnt/gentoo/gentoo/usr/portage/ + #sudo rsync -az -H /usr/repos/ /mnt/gentoo/gentoo/usr/repos/ sudo mount --types proc /proc /mnt/gentoo/gentoo/proc sudo mount --rbind /sys /mnt/gentoo/gentoo/sys sudo mount --make-rslave /mnt/gentoo/gentoo/sys - #sudo mount --rbind /dev /mnt/gentoo/gentoo/dev - #sudo mount --make-rslave /mnt/gentoo/gentoo/dev + sudo mount --rbind /dev /mnt/gentoo/gentoo/dev + sudo mount --make-rslave /mnt/gentoo/gentoo/dev sleep 5 sudo chroot /mnt/gentoo/gentoo /bin/bash # echo "Europe/Warsaw" > /etc/timezone diff --git a/.local/bin/screen-switcher b/.local/bin/screen-switcher index 616eaf0..d4b7596 100755 --- a/.local/bin/screen-switcher +++ b/.local/bin/screen-switcher @@ -1,5 +1,5 @@ #!/bin/bash -choices="Left\nRight\nDuplicated\nHDMI\nMonitor\n" +choices="Left\nRight\nDuplicated\nHDMI\nMonitor\nTV\n" chosen=$(echo -e "$choices" | dmenu -i) @@ -8,5 +8,6 @@ case "$chosen" in Duplicated) mons -d ;; Left) mons -e left ;; Right) mons -e right ;; - HDMI) mons -s + HDMI) mons -s ;; + TV) xrandr --output HDMI-1 --left-of eDP-1 --mode 1366x768 --rate 60 esac diff --git a/.local/bin/screenshot b/.local/bin/screenshot index 4b86b31..ca085ef 100755 --- a/.local/bin/screenshot +++ b/.local/bin/screenshot @@ -2,6 +2,6 @@ FILE="/tmp/`date +%Y%m%d-%H.%M.%S.png`" NAME=$(date +%s | sha256sum | base64 | head -c 20 ; echo) gnome-screenshot -f "$FILE" -rsync -avz --delete $FILE -e "ssh -p 2223" root@209.250.255.224:/var/www/yorune.pl/u/$NAME.png && +rsync -avz --delete $FILE -e "ssh -p 22" root@209.250.255.224:/var/www/yorune.pl/u/$NAME.png && echo -e "https://yorune.pl/u/$NAME.png" | xclip -selection clipboard && notify-send "Screenshot has been updated" diff --git a/.tmux.conf b/.tmux.conf index 9216516..c001400 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -18,8 +18,6 @@ set -g set-titles on # set terminal title set -g display-panes-time 800 # slightly longer pane indicators display time set -g display-time 1000 # slightly longer status messages display time set -g status-interval 10 # redraw status line every 10 seconds -#set -g status-style bg=blue -#set -g status-style fg=white set -g monitor-activity on set -g visual-activity off bind C-c new-session diff --git a/.zshrc b/.zshrc index cef117c..2b7ef93 100644 --- a/.zshrc +++ b/.zshrc @@ -92,6 +92,7 @@ alias vim="vim -p" alias denpl="trans en:pl" alias dplen="trans pl:en" alias notes="vim $HOME/git/notes/index.md" +alias mpv="mpv --ytdl-format='bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]'" # Cleaning-up export PATH=$HOME/.local/bin:$PATH