dotfiles

Dotfiles.
git clone git://git.zepp.club/dotfiles.git
Log | Files | Refs

commit 5b728ed971e54f2e98696a859cfad1bab5f79a8c
Author: Anjeel <xein@zepp.club>
Date:   Fri, 19 Jul 2024 03:00:15 -0300

git: update

Diffstat:
AX11/xenodm/Xresources | 48++++++++++++++++++++++++++++++++++++++++++++++++
AX11/xenodm/Xsession | 49+++++++++++++++++++++++++++++++++++++++++++++++++
AX11/xenodm/Xsetup_0 | 11+++++++++++
AX11/xenodm/pixmaps/zeppelin.xpm | 27+++++++++++++++++++++++++++
Amisc/profile | 10++++++++++
Amisc/rc | 7+++++++
Amisc/sxhkdrc | 38++++++++++++++++++++++++++++++++++++++
Amisc/xsession | 16++++++++++++++++
Ampv/input.conf | 117+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ampv/mpv.conf | 11+++++++++++
Avis/visrc.lua | 18++++++++++++++++++
11 files changed, 352 insertions(+), 0 deletions(-)

diff --git a/X11/xenodm/Xresources b/X11/xenodm/Xresources @@ -0,0 +1,48 @@ +xlogin*login.translations: #override \ + <Key>F1: set-session-argument(failsafe) finish-field()\n\ + <Key>Left: move-backward-character()\n\ + <Key>Right: move-forward-character()\n\ + <Key>Home: move-to-begining()\n\ + <Key>End: move-to-end()\n\ + Ctrl<Key>KP_Enter: set-session-argument(failsafe) finish-field()\n\ + <Key>KP_Enter: set-session-argument() finish-field()\n\ + Ctrl<Key>Return: set-session-argument(failsafe) finish-field()\n\ + <Key>Return: set-session-argument() finish-field() + +!xlogin*greeting: CLIENTHOST +xlogin*greeting: +xlogin*namePrompt: \040\040\040\040\040\040\040user: +xlogin*passwdPrompt: \040\040\040\040\040\040\040pass: +xlogin*fail: Fail +xlogin.Login.echoPasswd: true +xlogin*face: Terminus-12 +xlogin*promptFace: Terminus-12 +xlogin*failFace: Terminus-12 +xlogin.Login.width: 510 +xlogin*borderWidth: 2 +xlogin*frameWidth: 2 +xlogin*frameColor: #2f2e2d +xlogin*innerFramesWidth: 1 +xlogin.Login.sepWidth: 0 +xlogin*hiColor: #2f2e2d +xlogin*shdColor: #2f2e2d +xlogin.Login.background: #1c1c1c +xlogin.Login.foreground: #eeeeee +xlogin.Login.failColor: #eeeeee +xlogin.Login.inpColor: #1c1c1c +xlogin.Login.promptColor: #eeeeee +xlogin*logoFileName: /etc/X11/xenodm/pixmaps/zeppelin.xpm +xlogin*useShape: true +xlogin*logoPadding: 10 + +! uncomment to disable logins +! xlogin.Login.allowRootLogin: false + +XConsole*background: #1c1c1c +XConsole*foreground: #dddddd +XConsole*borderWidth: 2 +XConsole*borderColor: grey +XConsole.text.geometry: 480x130 +XConsole.verbose: true +XConsole*iconic: true +XConsole*font: fixed diff --git a/X11/xenodm/Xsession b/X11/xenodm/Xsession @@ -0,0 +1,49 @@ +#!/bin/sh +# +# $OpenBSD: Xsession.in,v 1.2 2022/07/01 20:42:06 naddy Exp $ +prefix="/usr/X11R6" +exec_prefix="${prefix}" + +errfile="/tmp/.xsession-errors" +if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ) +then + exec > "$errfile" 2>&1 +else + for errfile in "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER" + do + if ef="$( umask 077 && mktemp "$errfile.XXXXXX" 2> /dev/null)" + then + exec > "$ef" 2>&1 + mv "$ef" "$errfile" 2> /dev/null + break + fi + done +fi + +startup=$HOME/rules/xsession +resources=$HOME/rules/Xresources +id=$HOME/.ssh/id_ed25519 + +if [ -z "$SSH_AGENT_PID" ]; +then + if [ -x /usr/bin/ssh-agent ] && [ -f $id ]; + then + eval `ssh-agent -s` + ssh-add < /dev/null + fi +fi + +if [ -s "$startup" ]; then + if [ -x "$startup" ]; then + "$startup" + else + /bin/sh "$startup" + fi +else + if [ -f "$resources" ]; then + /usr/X11R6/bin/xrdb -load "$resources" + fi + ${exec_prefix}/bin/xterm & + ${exec_prefix}/bin/fvwm +fi +do_exit diff --git a/X11/xenodm/Xsetup_0 b/X11/xenodm/Xsetup_0 @@ -0,0 +1,11 @@ +#!/bin/sh +# $OpenBSD: Xsetup_0.in,v 1.1 2021/08/30 15:38:27 matthieu Exp $ + +prefix="/usr/X11R6" +exec_prefix="${prefix}" +xsetroot -solid "#1c1c1c" + +xset b off +xset s off + +# sxpm OpenBSD.xpm & diff --git a/X11/xenodm/pixmaps/zeppelin.xpm b/X11/xenodm/pixmaps/zeppelin.xpm @@ -0,0 +1,27 @@ +/* XPM */ +static const char *zeppelin[] = { +/* columns rows colors chars-per-pixel */ +"16 16 5 1 ", +" c black", +". c #FF4800", +"X c gray60", +"o c white", +"O c None", +/* pixels */ +"X......OXXXXoXoo", +"X......OOXXooXoo", +"XX XXOXXoXX ", +"X oo XXXXXX ", +"X ooo XXXo ", +"XX oooo oo ", +"XO oooo o ", +"OOO ooo ", +"OOOO oo ", +"OOOOOO ", +"OOOOOOOO ", +"OOOOOOOOOO ", +"OOOOOOOOOOOX ", +"OOOOOOOOOOOXX ", +"O OOOOXOOOOX... ", +"O O OX XOOXX... " +}; diff --git a/misc/profile b/misc/profile @@ -0,0 +1,10 @@ +export PATH=$PATH:$HOME/git/bin/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin +export HOME TERM +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 +export MOZ_ACCELERATED=1 +export MOZ_WEBRENDER=1 +export DBUS_SESSION_BUS_ADDRESS=no +export HISTSIZE=10000 +export ENV=$HOME/rules/rc +export HISTFILE=$HOME/rules/history diff --git a/misc/rc b/misc/rc @@ -0,0 +1,7 @@ +export PS1="\w \$ " +set -o emacs +stty dsusp undef +alias vim="vise" +alias vis="vise" +alias ls="ls -F" +alias poweroff="doas shutdown -p now" diff --git a/misc/sxhkdrc b/misc/sxhkdrc @@ -0,0 +1,38 @@ +super + Return + st + +super + d + st -G 322x114+20+289 -e smenu + +super + q + wctrl -q $(pfw) + +super + c + wctrl -c + +super + f + wctrl -f $(pfw) + +super + l + xlock -foreground "#dddddd" -background "#1c1c1c" + +super + p + scr + +super {, + shift} + p + scr -s + +super {, + shift} + q + pkill glazier + +alt + Tab + wctrl -cy next + +alt {, + shift} + Tab + wctrl -cy prev + +super + {1,2,3} + wmspc -g {1,2,3} + +super {, + shift} + {1,2,3} + wmspc -m {1,2,3} diff --git a/misc/xsession b/misc/xsession @@ -0,0 +1,16 @@ +. ~/.profile + +bud -s & +xset b off & +xset r rate 200 40 & +xset s off & +ulimit -Sc 0 +sxhkd & +mkdir -p /tmp/workspaces +cat "/dev/null" > /tmp/workspaces/ws1 +cat "/dev/null" > /tmp/workspaces/ws2 +cat "/dev/null" > /tmp/workspaces/ws3 +echo "1" > /tmp/workspaces/curr +setxkbmap -layout us -variant intl & +sbar & +exec glazier diff --git a/mpv/input.conf b/mpv/input.conf @@ -0,0 +1,117 @@ +ctrl+m cycle-values audio-channels "mono" ; show-text "${?=audio-channels==mono:Audio channel is in mono mode}" + +WHEEL_UP add volume 2 +WHEEL_DOWN add volume -2 +WHEEL_LEFT seek -10 # seek 10 seconds backward +WHEEL_RIGHT seek 10 # seek 10 seconds forward + +RIGHT seek 5 # seek 5 seconds forward +LEFT seek -5 # seek 5 seconds backward +UP seek 60 # seek 1 minute forward +DOWN seek -60 # seek 1 minute backward +Alt+left add video-pan-x 0.1 # move the video right +Alt+right add video-pan-x -0.1 # move the video left +Alt+up add video-pan-y 0.1 # move the video down +Alt+down add video-pan-y -0.1 # move the video up +Alt++ add video-zoom 0.1 # zoom in +Alt+- add video-zoom -0.1 # zoom out +ZOOMOUT add video-zoom -0.1 # zoom out +Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 # reset zoom and pan settings +PGUP add chapter 1 # seek to the next chapter +PGDWN add chapter -1 # seek to the previous chapter +Shift+PGUP seek 600 # seek 10 minutes forward +Shift+PGDWN seek -600 # seek 10 minutes backward +[ multiply speed 1/1.1 # decrease the playback speed +] multiply speed 1.1 # increase the playback speed +{ multiply speed 0.5 # halve the playback speed +} multiply speed 2.0 # double the playback speed +BS set speed 1.0 # reset the speed to normal +Shift+BS revert-seek # undo the previous (or marked) seek +Shift+Ctrl+BS revert-seek mark # mark the position for revert-seek +q quit +Q quit-watch-later # exit and remember the playback position +q {encode} quit 4 +ESC set fullscreen no # leave fullscreen +ESC {encode} quit 4 +p cycle pause # toggle pause/playback mode +. frame-step # advance one frame and pause +, frame-back-step # go back by one frame and pause +SPACE cycle pause # toggle pause/playback mode +> playlist-next # skip to the next file +ENTER playlist-next # skip to the next file +< playlist-prev # skip to the previous file +O no-osd cycle-values osd-level 3 1 # toggle displaying the OSD on user interaction or always +o show-progress # show playback progress +P show-progress # show playback progress +i script-binding stats/display-stats # display information and statistics +I script-binding stats/display-stats-toggle # toggle displaying information and statistics +` script-binding console/enable # open the console +z add sub-delay -0.1 # shift subtitles 100 ms earlier +Z add sub-delay +0.1 # delay subtitles by 100 ms +x add sub-delay +0.1 # delay subtitles by 100 ms +ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio +ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier +Shift+g add sub-scale +0.1 # increase the subtitle font size +Shift+f add sub-scale -0.1 # decrease the subtitle font size +9 add volume -2 +/ add volume -2 +0 add volume 2 +* add volume 2 +m cycle mute # toggle mute +1 add contrast -1 +2 add contrast 1 +3 add brightness -1 +4 add brightness 1 +5 add gamma -1 +6 add gamma 1 +7 add saturation -1 +8 add saturation 1 +Alt+0 set current-window-scale 0.5 # halve the window size +Alt+1 set current-window-scale 1.0 # reset the window size +Alt+2 set current-window-scale 2.0 # double the window size +d cycle deinterlace # toggle the deinterlacing filter +r add sub-pos -1 # move subtitles up +R add sub-pos +1 # move subtitles down +t add sub-pos +1 # move subtitles down +v cycle sub-visibility # hide or show the subtitles +Alt+v cycle secondary-sub-visibility # hide or show the secondary subtitles +V cycle sub-ass-vsfilter-aspect-compat # toggle stretching SSA/ASS subtitles with anamorphic videos to match the historical renderer +u cycle-values sub-ass-override "force" "yes" # toggle overriding SSA/ASS subtitle styles with the normal styles +j cycle sub # switch subtitle track +SHARP cycle audio # switch audio track +_ cycle video # switch video track +T cycle ontop # toggle placing the video on top of other windows +f cycle fullscreen # toggle fullscreen +s screenshot # take a screenshot of the video in its original resolution with subtitles +S screenshot video # take a screenshot of the video in its original resolution without subtitles +Ctrl+s screenshot window # take a screenshot of the window with OSD and subtitles +Alt+s screenshot each-frame # automatically screenshot every frame; issue this command again to stop taking screenshots +w add panscan -0.1 # decrease panscan +W add panscan +0.1 # shrink black bars by cropping the video +e add panscan +0.1 # shrink black bars by cropping the video +A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect) +PLAY cycle pause # toggle pause/playback mode +PAUSE cycle pause # toggle pause/playback mode +PLAYPAUSE cycle pause # toggle pause/playback mode +PLAYONLY set pause no # unpause +PAUSEONLY set pause yes # pause +STOP quit +FORWARD seek 60 # seek 1 minute forward +REWIND seek -60 # seek 1 minute backward +NEXT playlist-next # skip to the next file +PREV playlist-prev # skip to the previous file +VOLUME_UP add volume 2 +VOLUME_DOWN add volume -2 +MUTE cycle mute # toggle mute +CLOSE_WIN quit +CLOSE_WIN {encode} quit 4 +ctrl+w quit +E cycle edition # switch edition +l ab-loop # set/clear A-B loop points +L cycle-values loop-file "inf" "no" # toggle infinite looping +ctrl+c quit 4 +DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always +ctrl+h cycle-values hwdec "auto-safe" "no" # toggle hardware decoding +F8 show-text ${playlist} # show the playlist +F9 show-text ${track-list} # show the list of video, audio and sub tracks + diff --git a/mpv/mpv.conf b/mpv/mpv.conf @@ -0,0 +1,11 @@ +ontop=yes +osc=no +vo=gpu +gpu-api=vulkan +hwdec=vaapi +geometry=40% +loop-playlist=inf +image-display-duration=inf + +[extension.jpg] +geometry=40% diff --git a/vis/visrc.lua b/vis/visrc.lua @@ -0,0 +1,18 @@ +-- load standard vis module, providing parts of the Lua API +require('vis') +vis.events.subscribe(vis.events.INIT, function() + -- Your global configuration options + vis:command('set theme cosmic') + vis:command('set autoindent on') + vis:command('set ic on') + end) + +vis:map(vis.modes.NORMAL, '<C-p>', '"+p') +vis:map(vis.modes.INSERT, '<C-p>', '<Escape>"+pa') +vis:map(vis.modes.VISUAL_LINE, '<C-y>', function() vis:feedkeys(':>vis-clipboard --copy<Enter>') end) +vis:map(vis.modes.VISUAL, '<C-y>', function() vis:feedkeys(':>vis-clipboard --copy<Enter>') end) + +vis.events.subscribe(vis.events.WIN_OPEN, function(win) + -- Your per window configuration options e.g. + vis:command('set show-eof off') +end)