desktop dotfiles

This commit is contained in:
Luis 2024-02-16 21:35:15 +01:00
parent 58d079944f
commit dd85f0acd8
51 changed files with 2489 additions and 0 deletions

52
home/desktop/.Xresources Normal file
View File

@ -0,0 +1,52 @@
!--Fonts--
Xft.dpi: 192
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
!--Cursor--
Xcursor.theme: Vimix-white-cursors
Xcursor.size: 48
*.cursorColor: #ffffff
URxvt.cursorBlink: true
URxvt.cursorUnderline: true
!--Nsxiv--
Nsxiv.window.background: #000000
Nsxiv.window.foreground: #ffffff
Nsxiv.font: mononoki
!--URxvt--
URxvt*termName: rxvt-unicode-256color
*.foreground: #ffffff
*.background: #000000
URxvt.font: xft:mononoki:style=Regular:size=10
URxvt.boldFont: xft:mononoki:style=Bold:size=10
URxvt.italicFont: xft:mononoki:style=Italic:size=10
URxvt.boldItalicFont: xft:mononoki:style=Bold Italic:size=10
!URxvt.geometry: 189x55
URxvt.letterSpace: 0
URxvt.saveline: 2048
URxvt.scrollBar: false
URxvt.scrollBar_right: false
URxvt.scrollBar_floating: false
URxvt.scrollstyle: rxvt
!!--Extensions--
URxvt.perl-ext-common: default,selection-to-clipboard,matcher,keyboard-select,font-size
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-launcher: /usr/bin/firefox
URxvt.underlineURLs: True
URxvt.matcher.button: 1
URxvt.keysym.M-Escape: perl:keyboard-select:activate
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
URxvt.clipboard.autocopy: true
URxvt.keysym.C-Up: font-size:increase
URxvt.keysym.C-Down: font-size:decrease
URxvt.keysym.C-S-Up: font-size:incglobal
URxvt.keysym.C-S-Down: font-size:decglobal
URxvt.keysym.C-equal: font-size:reset
URxvt.keysym.C-slash: font-size:show

17
home/desktop/.aliases Normal file
View File

@ -0,0 +1,17 @@
# General
alias alsamixer='alsamixer -g' # Grey
alias neofetch='neofetch --ascii_colors 8 7 --colors 8 7 7 8 7 7' # Grey
alias cp='cp -iv'
alias mv='mv -iv'
alias rm='rm -Iv'
alias mkdir='mkdir -pv'
alias etrash='doas rm -r ~/.local/share/Trash/files/{*,.*} 2>/dev/null ; doas rm -r ~/.local/share/Trash/info/{*,.*} 2>/dev/null'
alias tempcpu="cat /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_input"
# Venom
alias veup='doas scratch sync && doas scratch sysup && doas scratch purge && doas scratch cache && doas scratch missingdep && doas scratch integrity && doas revdep -r'
alias vepi="ls $(pkgadd --print-dbdir) | wc -l"
alias vga1='xrandr --output VGA1 --mode 1920x1080'
alias pullrepos='for i in $(ls) ; do cd $i && git pull && cd .. ; done'
alias rwefivars='doas mount -o rw,remount /sys/firmware/efi/efivars'
alias yt='yt-dlp -f b "$(ytfzf -D -I L "$1")" -o - | ffplay - -autoexit -loglevel quiet'

View File

@ -0,0 +1,13 @@
# General
alias alsamixer='alsamixer -g' # Grey
alias neofetch='neofetch --ascii_colors 8 7 --colors 8 7 7 8 7 7' # Grey
alias cp='cp -iv'
alias mv='mv -iv'
alias rm='rm -Iv'
alias mkdir='mkdir -pv'
alias etrash='doas rm -r ~/.local/share/Trash/files/{*,.*} ; doas rm -r ~/.local/share/Trash/info/{*,.*}'
# Venom
alias veup='scratch sync && scratch sysup && scratch cache && scratch missingdep && scratch integrity && revdep -r'
alias vero='scratch remove $(scratch orphan)'
alias vepi="ls $(pkgadd --print-dbdir) | wc -l"

5
home/desktop/.asoundrc Normal file
View File

@ -0,0 +1,5 @@
pcm.!default {
type asym
playback.pcm "plug:dmix"
capture.pcm "plug:dsnoop"
}

View File

@ -0,0 +1,93 @@
pcm.snd_card { # my usual sound card
type hw
card 0
device 0
}
ctl.!default { # default control; alsamixer and such will use this
type hw
card 0
}
# software mixer for sound card
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666 # allow other users
slave.pcm "snd_card"
slave {
period_time 0
period_size 1024
buffer_size 4096
channels 2 # must match bindings
}
bindings {
0 0
1 1
}
}
# software mixer for loopback device
pcm.dmixerloop {
type dmix
ipc_key 2048
ipc_perm 0666 # allow other users
slave.pcm "hw:Loopback,0,0"
slave {
period_time 0
period_size 1024
buffer_size 4096
channels 2 # must match bindings
}
bindings {
0 0
1 1
}
}
# allows multiple programs to capture simultaneously
pcm.dsnooper {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave.pcm "snd_card"
slave
{
period_time 0
period_size 1024
buffer_size 4096
channels 2
}
bindings {
0 0
1 1
}
}
# Multi, splitting onto usual card and loopback
pcm.out {
type plug
slave.pcm {
type multi
slaves {
a { channels 2 pcm "dmixer" }
b { channels 2 pcm "dmixerloop" }
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ] # left -> a.left, b.left
[ 0 1 0 1 ] # right -> a.right, b.right
]
}
pcm.!default {
type asym
playback.pcm "out"
capture.pcm "dsnooper"
}

View File

@ -0,0 +1,198 @@
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
# app-id=foot
# title=foot
# locked-title=no
font=mononoki:size=11
# font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font>
# font-size-adjustment=0.5
# line-height=<font metrics>
# letter-spacing=0
# horizontal-letter-offset=0
# vertical-letter-offset=0
# underline-offset=<font metrics>
# underline-thickness=<font underline thickness>
# box-drawings-uses-font-glyphs=no
# dpi-aware=auto
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=0x0 # optionally append 'center'
# resize-delay-ms=100
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
# bold-text-in-bright=no
# word-delimiters=,│`|:"'()[]{}<>
selection-target=both
# workers=<number of logical CPUs>
# utempter=/usr/lib/utempter/utempter
[environment]
# name=value
[bell]
# urgent=no
# notify=no
# command=
# command-focused=no
[scrollback]
# lines=1000
# multiplier=3.0
# indicator-position=relative
# indicator-format=""
[url]
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
# protocols=http, https, ftp, ftps, file, gemini, gopher
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
[cursor]
style=underline
# color=<inverse foreground/background>
blink=yes
# beam-thickness=1.5
# underline-thickness=<font underline thickness>
[mouse]
# hide-when-typing=no
# alternate-scroll-mode=yes
[colors]
alpha=0.8
background=000000
foreground=dddddd
# Normal/regular colors (color palette 0-7)
# regular0=073642 # black
# regular1=dc322f # red
# regular2=859900 # green
# regular3=b58900 # yellow
# regular4=268bd2 # blue
# regular5=d33682 # magenta
# regular6=2aa198 # cyan
# regular7=eee8d5 # white
## Bright colors (color palette 8-15)
# bright0=08404f # bright black
# bright1=e35f5c # bright red
# bright2=9fb700 # bright green
# bright3=d9a400 # bright yellow
# bright4=4ba1de # bright blue
# bright5=dc619d # bright magenta
# bright6=32c1b6 # bright cyan
# bright7=ffffff # bright white
## dimmed colors (see foot.ini(5) man page)
# dim0=<not set>
# ...
# dim7=<not-set>
## The remaining 256-color palette
# 16 = <256-color palette #16>
# ...
# 255 = <256-color palette #255>
## Misc colors
# selection-foreground=<inverse foreground/background>
# selection-background=<inverse foreground/background>
# jump-labels=<regular0> <regular3> # black-on-yellow
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
# search-box-no-match=<regular0> <regular1> # black-on-red
# search-box-match=<regular0> <regular3> # black-on-yellow
# urls=<regular3>
[csd]
# preferred=server
# size=26
# font=<primary font>
# color=<foreground color>
# hide-when-typing=no
# border-width=0
# border-color=<csd.color>
# button-width=26
# button-color=<background color>
# button-minimize-color=<regular4>
# button-maximize-color=<regular2>
# button-close-color=<regular1>
[key-bindings]
# scrollback-up-page=Shift+Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down
# scrollback-down-half-page=none
# scrollback-down-line=none
# clipboard-copy=Control+Shift+c XF86Copy
# clipboard-paste=Control+Shift+v XF86Paste
# primary-paste=Shift+Insert
# search-start=Control+Shift+r
# font-increase=Control+plus Control+equal Control+KP_Add
# font-decrease=Control+minus Control+KP_Subtract
# font-reset=Control+0 Control+KP_0
# spawn-terminal=Control+Shift+n
# minimize=none
# maximize=none
# fullscreen=none
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-selected=[xargs -r firefox] none
# show-urls-launch=Control+Shift+u
# show-urls-copy=none
# show-urls-persistent=none
# prompt-prev=Control+Shift+z
# prompt-next=Control+Shift+x
# unicode-input=none
# noop=none
[search-bindings]
# cancel=Control+g Control+c Escape
# commit=Return
# find-prev=Control+r
# find-next=Control+s
# cursor-left=Left Control+b
# cursor-left-word=Control+Left Mod1+b
# cursor-right=Right Control+f
# cursor-right-word=Control+Right Mod1+f
# cursor-home=Home Control+a
# cursor-end=End Control+e
# delete-prev=BackSpace
# delete-prev-word=Mod1+BackSpace Control+BackSpace
# delete-next=Delete
# delete-next-word=Mod1+d Control+Delete
# extend-to-word-boundary=Control+w
# extend-to-next-whitespace=Control+Shift+w
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
# primary-paste=Shift+Insert
# unicode-input=none
[url-bindings]
# cancel=Control+g Control+c Control+d Escape
# toggle-url-visible=t
[text-bindings]
# \x03=Mod4+c # Map Super+c -> Ctrl+c
[mouse-bindings]
# selection-override-modifiers=Shift
# primary-paste=BTN_MIDDLE
# select-begin=BTN_LEFT
# select-begin-block=Control+BTN_LEFT
# select-extend=BTN_RIGHT
# select-extend-character-wise=Control+BTN_RIGHT
# select-word=BTN_LEFT-2
# select-word-whitespace=Control+BTN_LEFT-2
# select-row=BTN_LEFT-3
# vim: ft=dosini

View File

@ -0,0 +1,198 @@
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
# app-id=foot
# title=foot
# locked-title=no
font=mononoki:size=11
# font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font>
# font-size-adjustment=0.5
# line-height=<font metrics>
# letter-spacing=0
# horizontal-letter-offset=0
# vertical-letter-offset=0
# underline-offset=<font metrics>
# underline-thickness=<font underline thickness>
# box-drawings-uses-font-glyphs=no
# dpi-aware=auto
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=0x0 # optionally append 'center'
# resize-delay-ms=100
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
# bold-text-in-bright=no
# word-delimiters=,│`|:"'()[]{}<>
selection-target=both
# workers=<number of logical CPUs>
# utempter=/usr/lib/utempter/utempter
[environment]
# name=value
[bell]
# urgent=no
# notify=no
# command=
# command-focused=no
[scrollback]
# lines=1000
# multiplier=3.0
# indicator-position=relative
# indicator-format=""
[url]
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
# protocols=http, https, ftp, ftps, file, gemini, gopher
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
[cursor]
style=underline
# color=<inverse foreground/background>
blink=yes
# beam-thickness=1.5
# underline-thickness=<font underline thickness>
[mouse]
# hide-when-typing=no
# alternate-scroll-mode=yes
[colors]
alpha=0.8
background=000000
foreground=dddddd
# Normal/regular colors (color palette 0-7)
# regular0=073642 # black
# regular1=dc322f # red
# regular2=859900 # green
# regular3=b58900 # yellow
# regular4=268bd2 # blue
# regular5=d33682 # magenta
# regular6=2aa198 # cyan
# regular7=eee8d5 # white
## Bright colors (color palette 8-15)
# bright0=08404f # bright black
# bright1=e35f5c # bright red
# bright2=9fb700 # bright green
# bright3=d9a400 # bright yellow
# bright4=4ba1de # bright blue
# bright5=dc619d # bright magenta
# bright6=32c1b6 # bright cyan
# bright7=ffffff # bright white
## dimmed colors (see foot.ini(5) man page)
# dim0=<not set>
# ...
# dim7=<not-set>
## The remaining 256-color palette
# 16 = <256-color palette #16>
# ...
# 255 = <256-color palette #255>
## Misc colors
# selection-foreground=<inverse foreground/background>
# selection-background=<inverse foreground/background>
# jump-labels=<regular0> <regular3> # black-on-yellow
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
# search-box-no-match=<regular0> <regular1> # black-on-red
# search-box-match=<regular0> <regular3> # black-on-yellow
# urls=<regular3>
[csd]
# preferred=server
# size=26
# font=<primary font>
# color=<foreground color>
# hide-when-typing=no
# border-width=0
# border-color=<csd.color>
# button-width=26
# button-color=<background color>
# button-minimize-color=<regular4>
# button-maximize-color=<regular2>
# button-close-color=<regular1>
[key-bindings]
# scrollback-up-page=Shift+Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down
# scrollback-down-half-page=none
# scrollback-down-line=none
# clipboard-copy=Control+Shift+c XF86Copy
# clipboard-paste=Control+Shift+v XF86Paste
# primary-paste=Shift+Insert
# search-start=Control+Shift+r
# font-increase=Control+plus Control+equal Control+KP_Add
# font-decrease=Control+minus Control+KP_Subtract
# font-reset=Control+0 Control+KP_0
# spawn-terminal=Control+Shift+n
# minimize=none
# maximize=none
# fullscreen=none
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-selected=[xargs -r firefox] none
# show-urls-launch=Control+Shift+u
# show-urls-copy=none
# show-urls-persistent=none
# prompt-prev=Control+Shift+z
# prompt-next=Control+Shift+x
# unicode-input=none
# noop=none
[search-bindings]
# cancel=Control+g Control+c Escape
# commit=Return
# find-prev=Control+r
# find-next=Control+s
# cursor-left=Left Control+b
# cursor-left-word=Control+Left Mod1+b
# cursor-right=Right Control+f
# cursor-right-word=Control+Right Mod1+f
# cursor-home=Home Control+a
# cursor-end=End Control+e
# delete-prev=BackSpace
# delete-prev-word=Mod1+BackSpace Control+BackSpace
# delete-next=Delete
# delete-next-word=Mod1+d Control+Delete
# extend-to-word-boundary=Control+w
# extend-to-next-whitespace=Control+Shift+w
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
# primary-paste=Shift+Insert
# unicode-input=none
[url-bindings]
# cancel=Control+g Control+c Control+d Escape
# toggle-url-visible=t
[text-bindings]
# \x03=Mod4+c # Map Super+c -> Ctrl+c
[mouse-bindings]
# selection-override-modifiers=Shift
# primary-paste=BTN_MIDDLE
# select-begin=BTN_LEFT
# select-begin-block=Control+BTN_LEFT
# select-extend=BTN_RIGHT
# select-extend-character-wise=Control+BTN_RIGHT
# select-word=BTN_LEFT-2
# select-word-whitespace=Control+BTN_LEFT-2
# select-row=BTN_LEFT-3
# vim: ft=dosini

View File

@ -0,0 +1,17 @@
[Settings]
gtk-application-prefer-dark-theme=true
gtk-icon-theme-name=Adwaita
gtk-theme-name=Adwaita
gtk-font-name=mononoki 10
gtk-cursor-theme-name=Vimix-white-cursors
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=rgb

View File

@ -0,0 +1,23 @@
[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;

View File

@ -0,0 +1,29 @@
# Subtitles
sub-auto=fuzzy # Enable fuzzy searching
sub-bold=yes # Bold the subtitles to increase readability
# 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
background="#000000"
# 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
# HQ profile
vo=gpu
profile=gpu-hq
#scale=ewa_lanczossharp
#cscale=ewa_lanczossharp
#video-sync=display-resample
#interpolation
#tscale=oversample
# Hardware decoding
hwdec=auto-copy
hwdec-codecs=all
ytdl-format=bv*[height=720][codec=h264][fps=30]+ba/b

Binary file not shown.

View File

@ -0,0 +1,31 @@
top's Config File (Linux processes with windows)
Id:k, Mode_altscr=0, Mode_irixps=1, Delay_time=1.500, Curwin=0
Def fieldscur= 75 76 150 81 103 105 119 123 128 111 117 115 106 108 137 140 139 78 82 84
86 88 90 92 94 96 98 100 112 120 124 126 130 132 134 142 144 146 148 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=192956, sortindx=24, maxtasks=0, graph_cpus=0, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=1, msgsclr=1, headclr=3, taskclr=1
Job fieldscur= 75 77 115 111 117 80 103 105 137 119 123 128 120 79 139 82 84 86 88 90
92 94 96 98 100 106 108 112 124 126 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=163252, sortindx=0, maxtasks=0, graph_cpus=2, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem fieldscur= 75 117 119 120 123 125 127 129 131 154 132 156 135 136 102 104 111 139 76 78
80 82 84 86 88 90 92 94 96 98 100 106 108 112 114 140 142 144 146 148
150 152 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=163252, sortindx=21, maxtasks=0, graph_cpus=2, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur= 75 77 79 81 85 97 115 111 117 137 139 82 86 88 90 92 94 98 100 102
104 106 108 112 118 120 122 124 126 128 130 132 134 140 142 144 146 148 150 152
154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192
194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232
234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272
winflags=163252, sortindx=3, maxtasks=0, graph_cpus=2, graph_mems=0, double_up=0, combine_cpus=0, core_types=0
summclr=3, msgsclr=3, headclr=2, taskclr=3
Fixed_widest=0, Summ_mscale=1, Task_mscale=1, Zero_suppress=0, Tics_scaled=0

View File

@ -0,0 +1,295 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Focus window when mouse hovers it
focus_follows_mouse yes
# Borders
default_border pixel 1
default_floating_border pixel 1
hide_edge_borders smart
# Colors
# class border backg text indicator child_border
client.focused #000000 #000000 #dddddd #999999 #666666
client.focused_inactive #222222 #222222 #dddddd #999999 #111111
# client.unfocused #333333 #222222 #888888 #292d2e #333333
# client.urgent #2f343a #900000 #dddddd #900000 #900000
# client.placeholder #000000 #0c0c0c #dddddd #000000 #0c0c0c
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Adwaita'
gsettings set $gnome-schema icon-theme 'Adwaita'
gsettings set $gnome-schema cursor-theme 'Vimix-white-cursors'
gsettings set $gnome-schema font-name 'mononoki 9'
}
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term footclient
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu bemenu-run -H '20' -p 'Run:' --fn 'mononoki 11' \
--tf '#ffffff' \
--fb '#000000' \
--ff '#ffffff' \
--nb '#000000' \
--nf '#ffffff' \
--hb '#dddddd' \
--hf '#000000' \
--sb '#000000' \
--sf '#ffffff' \
--scb '#000000' \
--scf '#ffffff'
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
#exec swaybg -i $HOME/.icons/fondo.png
#output * bg #000000 solid_color
output "*" bg $HOME/.icons/fondo.png fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
# HiDPI, set display scale factor with the output command in your configuration file
# output HDMI-A-1 scale 1.6
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "type:touchpad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
input "type:keyboard" {
xkb_layout "es"
xkb_variant ""
xkb_options "grp:win_space_toggle"
xkb_model "pc105"
}
input * xkb_numlock enable
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Shift+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'Session' -b 'Exit' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
#bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Session
bindsym $mod+x exec session-wl
# Screen capture
bindsym Alt+Print exec grimshot copy active
bindsym Control+Print exec grimshot copy area
bindsym Shift+Print exec grimshot copy window
bindsym Print exec grimshot copy screen
# Audio
bindsym XF86AudioRaiseVolume exec amixer -q sset Master 3%+
bindsym XF86AudioLowerVolume exec amixer -q sset Master 3%-
bindsym XF86AudioMute exec amixer set Master toggle
bindsym XF86AudioMicMute exec amixer set Mic toggle
bindsym $mod+F10 exec amixer -q sset Master 3%+
bindsym $mod+F9 exec amixer -q sset Master 3%-
bindsym $mod+F11 exec amixer set Master toggle
bindsym $mod+F12 exec amixer set Mic toggle
exec amixer -q set Master unmute
exec amixer -q sset Master 100%
# File manager
bindsym $mod+z exec $term nnn
# Screen brigthness
# exec light -S 31
# bindsym XF86MonBrightnessDown exec light -U 3
# bindsym XF86MonBrightnessUp exec light -A 3
# Play
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Foot server
exec foot --server
# Yambar
exec yambar

View File

@ -0,0 +1,295 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Focus window when mouse hovers it
focus_follows_mouse yes
# Borders
default_border pixel 1
default_floating_border pixel 1
hide_edge_borders smart
# Colors
# class border backg text indicator child_border
client.focused #000000 #000000 #dddddd #999999 #666666
client.focused_inactive #222222 #222222 #dddddd #999999 #111111
# client.unfocused #333333 #222222 #888888 #292d2e #333333
# client.urgent #2f343a #900000 #dddddd #900000 #900000
# client.placeholder #000000 #0c0c0c #dddddd #000000 #0c0c0c
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Adwaita'
gsettings set $gnome-schema icon-theme 'Adwaita'
gsettings set $gnome-schema cursor-theme 'Vimix-white-cursors'
gsettings set $gnome-schema font-name 'mononoki 9'
}
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term footclient
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu bemenu-run -H '20' -p 'Run:' --fn 'mononoki 11' \
--tf '#ffffff' \
--fb '#000000' \
--ff '#ffffff' \
--nb '#000000' \
--nf '#ffffff' \
--hb '#dddddd' \
--hf '#000000' \
--sb '#000000' \
--sf '#ffffff' \
--scb '#000000' \
--scf '#ffffff'
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
#exec swaybg -i /home/luis/.icons/fondo.png
output * bg #000000 solid_color
#output "*" bg $HOME/.icons/fondo.png fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
# HiDPI, set display scale factor with the output command in your configuration file
# output HDMI-A-1 scale 1.6
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "type:touchpad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
input "type:keyboard" {
xkb_layout "es"
xkb_variant ""
xkb_options "grp:win_space_toggle"
xkb_model "pc105"
}
input * xkb_numlock enable
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Shift+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'Session' -b 'Exit' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
#bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Session
bindsym $mod+x exec session-wl
# Screen capture
bindsym Alt+Print exec grimshot copy active
bindsym Control+Print exec grimshot copy area
bindsym Shift+Print exec grimshot copy window
bindsym Print exec grimshot copy screen
# Audio
bindsym XF86AudioRaiseVolume exec amixer -q sset Master 3%+
bindsym XF86AudioLowerVolume exec amixer -q sset Master 3%-
bindsym XF86AudioMute exec amixer set Master toggle
bindsym XF86AudioMicMute exec amixer set Mic toggle
bindsym $mod+F10 exec amixer -q sset Master 3%+
bindsym $mod+F9 exec amixer -q sset Master 3%-
bindsym $mod+F11 exec amixer set Master toggle
bindsym $mod+F12 exec amixer set Mic toggle
exec amixer -q set Master unmute
exec amixer -q sset Master 100%
# File manager
bindsym $mod+z exec $term nnn
# Screen brigthness
# exec light -S 31
# bindsym XF86MonBrightnessDown exec light -U 3
# bindsym XF86MonBrightnessUp exec light -A 3
# Play
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Foot server
exec foot --server
# Yambar
exec yambar

View File

@ -0,0 +1,102 @@
# fonts we'll be re-using here and there
awesome: &awesome Font Awesome 6 Free Solid:style=Solid:pixelsize=14
awesome_brands: &awesome_brands Font Awesome 6 Brands Regular:style=Regular:pixelsize=14
std_overline: &std_overline {overline: { size: 1, color: ddddddff}}
# This is THE bar configuration
bar:
height: 20
location: top
spacing: 5
margin: 9
# Default font
font: mononoki:pixelsize=14
foreground: ffffffff
background: 000000cc
left:
- i3:
sort: ascending
anchors: # Not used (directly) by f00bar; used here to avoid duplication
- string: &i3_common {margin: 5, on-click: "swaymsg --quiet workspace {name}"}
- string: &default {<<: *i3_common, text: "{name}"}
- focused: &focused
deco: {stack: [background: {color: 00000000}, <<: *std_overline]}
- invisible: &invisible {foreground: ffffff55}
- urgent: &urgent
foreground: 000000ff
deco: {stack: [background: {color: ffffffff}, <<: *std_overline]}
- map: &i3_mode
default:
- string:
margin: 5
text: "{mode}"
deco: {background: {color: cc421dff}}
- empty: {right-margin: 7}
conditions:
mode == default: {empty: {}}
content:
"":
map:
conditions:
state == focused: {string: {<<: [*default, *focused]}}
state == unfocused: {string: {<<: *default}}
state == invisible: {string: {<<: [*default, *invisible]}}
state == urgent: {string: {<<: [*default, *urgent]}}
- foreign-toplevel:
content:
map:
conditions:
~activated: {empty: {}}
activated:
- string: {text: "{title}"}
center:
- clock:
time-format: "%d %b %H:%M"
content:
- string: {text: "{time}"}
right:
- network:
name: enp3s0
content:
map:
conditions:
~carrier: {empty: {}}
carrier:
map:
default: {string: {text: , font: *awesome, foreground: ffffff66}}
conditions:
state == up && ipv4 != "": {string: {text: , font: *awesome}}
- alsa:
card: hw:Generic_1
mixer: Master
content:
map:
conditions:
~online: {string: {text: , font: *awesome, foreground: ff0000ff}}
online:
map:
on-click: /bin/sh -c "amixer -q sset Headphone unmute && amixer -q sset Master toggle"
conditions:
muted: {string: {text: , font: *awesome, foreground: ffffff66}}
~muted:
ramp:
tag: percent
items:
- string: {text: , font: *awesome}
- string: {text: , font: *awesome}
- string: {text: , font: *awesome}
- label:
content:
string:
on-click: session-wl
text:
font: *awesome

View File

@ -0,0 +1,102 @@
# fonts we'll be re-using here and there
awesome: &awesome Font Awesome 6 Free Solid:style=Solid:pixelsize=14
awesome_brands: &awesome_brands Font Awesome 6 Brands Regular:style=Regular:pixelsize=14
std_overline: &std_overline {overline: { size: 1, color: ddddddff}}
# This is THE bar configuration
bar:
height: 20
location: top
spacing: 5
margin: 9
# Default font
font: mononoki:pixelsize=14
foreground: ffffffff
background: 000000cc
left:
- i3:
sort: ascending
anchors: # Not used (directly) by f00bar; used here to avoid duplication
- string: &i3_common {margin: 5, on-click: "swaymsg --quiet workspace {name}"}
- string: &default {<<: *i3_common, text: "{name}"}
- focused: &focused
deco: {stack: [background: {color: 00000000}, <<: *std_overline]}
- invisible: &invisible {foreground: ffffff55}
- urgent: &urgent
foreground: 000000ff
deco: {stack: [background: {color: ffffffff}, <<: *std_overline]}
- map: &i3_mode
default:
- string:
margin: 5
text: "{mode}"
deco: {background: {color: cc421dff}}
- empty: {right-margin: 7}
conditions:
mode == default: {empty: {}}
content:
"":
map:
conditions:
state == focused: {string: {<<: [*default, *focused]}}
state == unfocused: {string: {<<: *default}}
state == invisible: {string: {<<: [*default, *invisible]}}
state == urgent: {string: {<<: [*default, *urgent]}}
- foreign-toplevel:
content:
map:
conditions:
~activated: {empty: {}}
activated:
- string: {text: "{title}"}
center:
- clock:
time-format: "%d %b %H:%M"
content:
- string: {text: "{time}"}
right:
- network:
name: enp23s0
content:
map:
conditions:
~carrier: {empty: {}}
carrier:
map:
default: {string: {text: , font: *awesome, foreground: ffffff66}}
conditions:
state == up && ipv4 != "": {string: {text: , font: *awesome}}
- alsa:
card: hw:Generic_1
mixer: Master
content:
map:
conditions:
~online: {string: {text: , font: *awesome, foreground: ff0000ff}}
online:
map:
on-click: /bin/sh -c "amixer -q sset Headphone unmute && amixer -q sset Master toggle"
conditions:
muted: {string: {text: , font: *awesome, foreground: ffffff66}}
~muted:
ramp:
tag: percent
items:
- string: {text: , font: *awesome}
- string: {text: , font: *awesome}
- string: {text: , font: *awesome}
- label:
content:
string:
on-click: session-wl
text: 
font: *awesome

View File

@ -0,0 +1 @@
set selection-clipboard clipboard

24
home/desktop/.mkshrc Normal file
View File

@ -0,0 +1,24 @@
[ -r ~/.aliases ] && . ~/.aliases
export HISTFILE=$HOME/.mksh_history
export HISTSIZE=8192
PS1=$'$PWD $(git_branch)\n $(get_uid) '
get_uid(){
if (( USER_ID )) ; then
print \$
else
print \#
fi
}
git_branch() {
BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
if [ ! '${BRANCH}' = '' ]; then
print ${BRANCH}
else
print ''
fi
unset BRANCH
}

View File

@ -0,0 +1,25 @@
# Alias
[ -r ~/.aliases ] && . ~/.aliases
# Historial
export HISTFILE=$HOME/.mksh_history # Ubicación historial shell mksh
export HISTSIZE=4096 # Tamaño historial shell mksh
# Prompt
PS1=$'$PWD $(git_branch)\n (chroot) '
# Directorio de trabajo actual
get_dir() {
pwd | sed "s|^$HOME|~|"
}
# Rama repo git
git_branch() {
BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
if [ ! "${BRANCH}" = "" ]; then
printf ${BRANCH}
else
printf ""
fi
unset BRANCH
}

46
home/desktop/.profile Normal file
View File

@ -0,0 +1,46 @@
#!/bin/sh
# Interactive mode only
case $- in
*i*) ;;
*) return;;
esac
# Export all vars
set -o allexport
# Defaults
#XAUTHORITY="$HOME/.Xauthority"
PATH="$HOME/.local/bin:/sbin:/usr/sbin:$PATH"
LANG="es_ES.UTF-8"
PAGER="less"
EDITOR="vim"
TERM="foot"
VISUAL="$EDITOR"
BROWSER="firefox"
READER="zathura"
IMAGEVIEWER="nsxiv"
FILE="nnn"
#XZ_DEFAULTS="-T0"
#APULSE_CAPTURE_DEVICE="plughw:0,0"
#APULSE_PLAYBACK_DEVICE="plughw:0,0"
#ENV="$HOME/.kshrc"
# NNN env vars
NNN_OPENER="xdg-open"
NNN_FALLBACK_OPENER="xdg-open" # File opener
NNN_OPTS="deU" # NNN options
NNN_BMS="g:~/Git" # Bookmarks
NNN_PLUG="n:nuke;p:preview-tabbed" # Plugins
NNN_USE_EDITOR=1 # Use $EDITOR on open text files
NNN_COLORS="7777" # Colors for tabs
NNN_TRASH=2 # Move files to trash
NNN_READER="zathura" # Documents reader
NNN_FIFO=/tmp/nnn.fifo # Preview pluggin
# XDG_RUNTIME_DIR
unset XDG_RUNTIME_DIR
XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
# Autologin en TTY1
[ "$(tty)" = "/dev/tty1" ] && exec sway

18
home/desktop/.vimrc Normal file
View File

@ -0,0 +1,18 @@
syntax on
filetype plugin indent on
colorscheme monochrome
set number
set history=100
set undolevels=500
set nocompatible
set helplang=es
set incsearch
set hlsearch
set showmode
set wildmenu
set wrap
set cursorline
set laststatus=2
" Status bar
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%A,%x')}

4
home/desktop/.xinitrc Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
[ -f ~/.xprofile ] && . ~/.xprofile
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
exec dwm

6
home/desktop/.xprofile Normal file
View File

@ -0,0 +1,6 @@
# Fondo de escritorio
display -window root ~/.icons/fondo.png &
# Barra de estado
slstatus &
# Rxvt-unicode
urxvtd --quiet --opendisplay --fork

Binary file not shown.

9
home/desktop/bin/alice-chroot Executable file
View File

@ -0,0 +1,9 @@
#! /bin/sh
mount -v --bind /dev /mnt/alice/dev && \
mount -vt devpts devpts /mnt/alice/dev/pts -o gid=5,mode=620 && \
mount -vt proc proc /mnt/alice/proc && \
mount -vt sysfs sysfs /mnt/alice/sys && \
mount -vt tmpfs tmpfs /mnt/alice/run && \
mkdir -pv /mnt/alice/$(readlink /mnt/alice/dev/shm) && \
cp -L /etc/resolv.conf /mnt/alice/etc/ && \
chroot /mnt/alice /bin/sh

2
home/desktop/bin/brave Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
brave-browser-stable --enable-features=UseOzonePlatform --ozone-platform=wayland

42
home/desktop/bin/capture Executable file
View File

@ -0,0 +1,42 @@
#!/bin/sh
# Deps: herbe, imagemagick, xclip
help () {
cat << EOF
Usage:
capture [-APVh]
Options:
-A: Save selected area to clipboard
-S: Save screen to clipboard
-W: Save active window to clipboard
-h: Show this help
EOF
}
case $1 in
-A)
import png:- | xclip -selection clipboard -t image/png
herbe 'Selected area to clipboard'
;;
-S)
import -window root png:- | xclip -selection clipboard -t image/png
herbe 'Screen to clipboard'
;;
-W)
import -window $(xdotool getwindowfocus) png:- | xclip -selection clipboard -t image/png
herbe 'Active window to clipboard'
;;
-h)
help
;;
*)
printf "Invalid option!\n"
return
esac

42
home/desktop/bin/capture-wl Executable file
View File

@ -0,0 +1,42 @@
#!/bin/sh
# Deps: herbe, imagemagick, xclip
help () {
cat << EOF
Usage:
capture [-APVh]
Options:
-A: Save selected area to clipboard
-S: Save screen to clipboard
-W: Save active window to clipboard
-h: Show this help
EOF
}
case $1 in
-A)
grim -g "$(slurp)" - | wl-copy
#herbe 'Selected area to clipboard'
;;
-S)
grim - | wl-copy
#herbe 'Screen to clipboard'
;;
-W)
#import -window $(xdotool getwindowfocus) png:- | xclip -selection clipboard -t image/png
#herbe 'Active window to clipboard'
;;
-h)
help
;;
*)
printf "Invalid option!\n"
return
esac

35
home/desktop/bin/compress Executable file
View File

@ -0,0 +1,35 @@
#!/bin/sh
file="$1"
shift
case $file in
*.tar)
bsdtar -cvf "$file" "$@"
;;
*.tar.gz|*.tgz)
bsdtar -czvf "$file" "$@"
;;
*.tar.xz|*.txz)
bsdtar -cvJf "$file" "$@"
;;
*.tar.zst|*.zst)
bsdtar -aczvf "$file" "$@"
;;
*.rar)
bsdtar -cf "$file" "$@"
;;
*.zip)
bsdtar -cf "$file" "$@"
;;
*.7z)
bsdtar -cf "$file" "$@"
;;
*)
print "It couldn't copress them\n"
print "Usage:\n"
print "compress file.<format> foo1 foo2 fooN\n"
return
;;
esac

49
home/desktop/bin/extract Executable file
View File

@ -0,0 +1,49 @@
#!/bin/sh
if [ -f "$1" ]; then
case $1 in
*.tar)
bsdtar -xvf "$1"
;;
*.tar.bz2|*.tbz)
bsdtar -xvjf "$1"
;;
*.tar.gz|*.tgz)
bsdtar -xvzf "$1"
;;
*.tar.xz|*.txz)
bsdtar -xvjf "$1"
;;
*.tar.zst|*.zst)
bsdtar -xvzf "$1"
;;
*.rar)
bsdtar -xf "$1"
;;
*.zip)
bsdtar -xf "$1"
;;
*.7z)
bsdtar -xf "$1"
;;
*)
print "'$1': unknown format"
print "It couldn't extract the file"
print "Usage:\n"
print "extract file.<format>\n"
return
;;
esac
else
print "'$1': unknown format"
print "Usage:\n"
print "extract file.<format>\n"
return
fi

49
home/desktop/bin/fetch Executable file
View File

@ -0,0 +1,49 @@
#!/bin/sh
mem=$(busybox free -m | awk '/^Mem:/ {print $3"m/"$2"m" }')
kernel=$(uname -r)
#kernelsize=$(du -sh /boot/vmlinuz-venom | awk '{print $1}')
. /etc/os-release
os=${PRETTY_NAME}
hn=$(cat /etc/hostname)
shell=$(basename $SHELL)
mksh=$(scratch info mksh-git | awk '/Installed/{print $2}')
init=$(scratch info s6-linux-init | awk '/Installed/{print $2}')
cpu=$(awk -F ": " 'NR==5 {print $2}' /proc/cpuinfo | awk '{print $1" "$2" "$3" "$4}')
gpu=$(awk -F ": " 'NR==5 {print $2}' /proc/cpuinfo | awk '{print $6" "$7}')
tr=$(scratch info foot | awk '/Installed/{print $2}')
font="$(awk -F'=' '/font/{print $2}' "${HOME}/.config/gtk-3.0/settings.ini")"
wm=$(scratch info sway | awk '/Installed/{print $2}')
spkg=$(ls $(pkgadd --print-dbdir) | wc -l)
glibc=$(scratch info glibc | awk '/Installed/{print $2}')
gcc=$(scratch info gcc | awk '/Installed/{print $2}')
binut=$(scratch info binutils | awk '/Installed/{print $2}')
pyth=$(scratch info python3 | awk '/Installed/{print $2}')
wl=$(scratch info wayland | awk '/Installed/{print $2}')
snd=$(scratch info alsa-lib | awk '/Installed/{print $2}')
full() {
cat << EOF
> ${os}
> linux-${kernel}
> s6-linux-init-${init%-*}
> glibc-${glibc%-*}
> gcc-${gcc%-*}
> binutils-${binut%-*}
> python-${pyth%-*}
> spkg: ${spkg}
> ${font}
> mksh-git-${mksh%-*}
> foot-${tr%-*}
> wayland-${wl%-*}
> sway-${wm%-*}
> alsa-${snd%-*}
> ${cpu}
> ${gpu}
> ${mem}
EOF
}
full

17
home/desktop/bin/gccup Executable file
View File

@ -0,0 +1,17 @@
#! /bin/sh
prts="gcc linux-rc-api-headers glibc binutils gcc libtool libmpc elfutils libmpfr linux-rc"
gccup() {
for i in $prts
do
scratch install -fr $i
done
}
printf "You are gonna recompile and reinstall critical ports like $prts ...\n Are you sure? [y/n]"
read op
case "$op" in
[y|y) gccup ;;
n]|n) exit ;;
esac

View File

@ -0,0 +1,5 @@
#! /bin/sh
for i in gcc glibc binutils ; do
printf "$i "
scratch info $i | awk '/Installed/{print $2}'
done

17
home/desktop/bin/installed Executable file
View File

@ -0,0 +1,17 @@
#! /bin/sh
prts="$(scratch installed | awk '{print $1}')"
installed() {
for i in $prts
do
scratch install -fr $i
done
}
printf "You are gonna recompile and reinstall all installed ports like $prts \n... \nAre you sure? [y/N]"
read op
case "$op" in
[y|y) installed ;;
N]|n) exit ;;
esac

304
home/desktop/bin/installed-ports Executable file
View File

@ -0,0 +1,304 @@
acl
adwaita-icon-theme
alsa-lib
alsa-topology-conf
alsa-ucm-conf
alsa-utils
aom
at-spi2-atk
at-spi2-core
atk
attr
autoconf
autoconf2.13
automake
base
bash
bc
bison
bzip2
c-ares
ca-certificates
cairo
cbindgen
chrpath
clang
cmake
coreutils
cups
curl
dash
dav1d
dbus
dbus-glib
desktop-file-utils
dhcpcd
diffutils
dmenu
docbook-xml
docbook-xsl
dosfstools
dwm
e2fsprogs
efibootmgr
efivar
elfutils
eudev
expat
fdk-aac
ffmpeg
file
filesystem
findutils
firefox
flex
font-util
fontconfig
freetype2
fribidi
fzf
gawk
gdbm
gdk-pixbuf
gettext
giflib
girara
git
glib
gnutls
go
gobject-introspection
gperf
graphene
grep
groff
gst-plugins-base
gstreamer
gtk3
gzip
harfbuzz
help2man
herbe
hicolor-icon-theme
iana-etc
icu
imagemagick7
imlib2
inetutils
inih
intltool
iproute2
iso-codes
jasper
jq
json-c
kbd
kmod
lame
lcms2
less
lftp
libarchive
libass
libcap
libcdio
libcdio-paranoia
libcroco
libdrm
libepoxy
libevdev
libevent
libexif
libffi
libfontenc
libgcrypt
libglvnd
libgmp
libgpg-error
libgudev
libice
libinput
libjpeg-turbo
libmd
libmnl
libmpc
libmpfr
libnl
libnotify
libogg
libpciaccess
libpipeline
libpng
libptytty
libreoffice-bin
librsvg
libseccomp
libsm
libtasn1
libtheora
libtiff
libtirpc
libtool
libunistring
libusb
libuv
libva
libva-intel
libva-utils
libvdpau
libvorbis
libvpx
libwebp
libx11
libxau
libxcb
libxcomposite
libxcursor
libxcvt
libxdamage
libxdmcp
libxext
libxfixes
libxfont2
libxft
libxi
libxinerama
libxkbcommon
libxkbfile
libxml2
libxmu
libxrandr
libxrender
libxscrnsaver
libxshmfence
libxslt
libxt
libxtst
libxv
libxvmc
libxxf86vm
light
linux-firmware
linux-pam
lld
llvm
luajit
lynx
lz4
lzo
m4
make
man-db
man-pages
mesa
meson
mksh
mpv
mtdev
nasm
ncurses
nettle
ngetty
ninja
nnn
nodejs
nspr
nss
oniguruma
opendoas
openjpeg2
openssl
opus
p11-kit
pango
patch
pciutils
pcre
pcre2
perl
perl-xml-parser
pixman
pkgconf
poppler
poppler-data
poppler-glib
popt
procps-ng
psmisc
python3
python3-attrs
python3-docopt
python3-mako
python3-markupsafe
python3-packaging
python3-pillow
python3-pyparsing
python3-pyproject2setuppy
python3-setuptools
python3-setuptools-scm
python3-six
python3-toml
python3-tomli
python3-xlib
rc
readline
rust-bin
rxvt-unicode
scratchpkg
sdl2
sed
sgml-common
shadow
shared-mime-info
slock
slstatus
sqlite
sxiv
sysklogd
sysvinit
tabbed
tar
telegram-desktop-bin
texinfo
tree
tzdata
ueberzug
unzip
urcu
usbutils
util-linux
util-macros
vala
vim
which
wpa_supplicant
x264
x265
xauth
xcb-proto
xcb-util
xclip
xdg-utils
xdotool
xf86-input-libinput
xf86-video-intel
xfsprogs
xinit
xkbcomp
xkeyboard-config
xmlto
xorg-server
xorgproto
xrandr
xset
xtrans
xz
yaml
yasm
yt-dlp
ytfzf
zathura
zathura-pdf-poppler
zip
zlib
zstd

View File

@ -0,0 +1,17 @@
#! /bin/sh
prts="$(cat installed-ports)"
installed() {
for i in $prts
do
doas scratch install -fr $i
done
}
printf "You are gonna recompile and reinstall all installed ports like $prts \n... \nAre you sure? [y/N]"
read op
case "$op" in
[y|y) installed ;;
N]|n) exit ;;
esac

11
home/desktop/bin/modpar Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
echo "Write the kernel module name, example i915:"
read NAME
if [ -d "/sys/module/$NAME/parameters" ]; then
ls /sys/module/$NAME/parameters/ | while read parameter; do
echo -n "$parameter => "
doas cat /sys/module/$NAME/parameters/$parameter
done
fi

4
home/desktop/bin/modparg Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
echo Write de module name, example i915 :
read NAME
doas grep -H '' /sys/module/$NAME/parameters/*

9
home/desktop/bin/monitorea.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/sh
mem="$(busybox free -m | awk '/^Mem:/ {print $3}')"
cpu="$(top -b -n 1 | grep %Cpu | awk '{print $2}')"
tmp=$(awk '{print $0/1000}' /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0/temp1_input)
gtmp=$(awk '{print $0/1000}' /sys/class/drm/card0/device/hwmon/hwmon?/temp1_input)
printf "%s\n" "Cpu Load:$cpu"
printf "%s\n" "MEM Used: $mem MiB"
printf "%s\n" "Cpu Temp: $tmp ºC"
printf "%s\n" "Gpu Temp: $gtmp ºC"

83
home/desktop/bin/record Executable file
View File

@ -0,0 +1,83 @@
#!/bin/sh
# Mic Webcam [-i sysdefault:CARD=Camera], mic default [-i default]
screencast() { ffmpeg \
-vaapi_device /dev/dri/renderD128 \
-f x11grab \
-r 25 \
-s $(xrandr | awk '/\*+/ {print $1}') \
-i $DISPLAY \
-f alsa -i default \
-vf 'hwupload,scale_vaapi=format=nv12' \
-c:v h264_vaapi -qp 24 \
-c:a libvorbis \
"$HOME/screencast-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Screencast.mp4 "
}
video() { ffmpeg \
-vaapi_device /dev/dri/renderD128 \
-f x11grab \
-r 25 \
-s $(xrandr | awk '/\*+/ {print $1}') \
-i $DISPLAY \
-vf 'hwupload,scale_vaapi=format=nv12' \
-c:v h264_vaapi -qp 24 \
"$HOME/video-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Video.mp4"
}
webcam() { ffmpeg \
-f v4l2 \
-r 25 \
-s 640x480 \
-i /dev/video0 \
-f alsa -i default \
-c:v libx264 -preset ultrafast \
-c:a libvorbis \
"$HOME/webcam-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Webcam"
}
audio() { ffmpeg \
-f alsa -i default \
-c:a libvorbis \
"$HOME/audio-$(date '+%y%m%d-%H%M%S').ogg" &
echo $! > /tmp/recordingpid
herbe "[·] Audio.ogg"
}
askrecording() { \
choice=$(printf "Screencast\\nVideo\\nAudio\\nWebcam" | dmenu -i -fn "mononoki:size=9:style=Bold" -nb "#000000" -nf "#777777" -sb "#000000" -sf "#ffffff" -p " Record")
case "$choice" in
"Screencast") screencast;;
"Video") video;;
"Audio") audio;;
"Webcam") webcam;;
esac
}
killrecording() {
recpid="$(cat /tmp/recordingpid)"
# kill with SIGTERM, allowing finishing touches.
kill -15 "$recpid"
rm -f /tmp/recordingpid
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
sleep 3
kill -9 "$recpid"
exit
}
asktoend() { \
response=$(printf "No\\nYes" | dmenu -i -fn "mononoki:size=9:style=Bold" -nb "#000000" -nf "#777777" -sb "#000000" -sf "#ffffff" -p " End") &&
[ "$response" = "Yes" ] && killrecording
}
case "$1" in
kill) killrecording;;
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording;;
esac

View File

@ -0,0 +1,79 @@
#!/bin/sh
# Micrófono Webcam [-i sysdefault:CARD=Camera], micrófono por defecto [-i default]
screencast() { ffmpeg \
-f x11grab \
-r 25 \
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-i $DISPLAY \
-f alsa -i default \
-c:v libx264 -preset ultrafast \
-c:a libvorbis \
"$HOME/screencast-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Screencast.mp4 "
}
video() { ffmpeg \
-f x11grab \
-r 25 \
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-i $DISPLAY \
-c:v libx264 -preset ultrafast \
"$HOME/video-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Video.mp4"
}
webcam() { ffmpeg \
-f v4l2 \
-r 25 \
-s 640x480 \
-i /dev/video0 \
-f alsa -i default \
-c:v libx264 -preset ultrafast \
-c:a libvorbis \
"$HOME/webcam-$(date '+%y%m%d-%H%M%S').mp4" &
echo $! > /tmp/recordingpid
herbe "[·] Webcam"
}
audio() { ffmpeg \
-f alsa -i default \
-c:a libvorbis \
"$HOME/audio-$(date '+%y%m%d-%H%M%S').ogg" &
echo $! > /tmp/recordingpid
herbe "[·] Audio.ogg"
}
askrecording() { \
choice=$(printf " Screencast\\n Vídeo\\n Audio\\n Webcam" | dmenu -i -fn "mononoki:size=9:style=Bold" -nb "#000000" -nf "#777777" -sb "#000000" -sf "#ffffff" -p "  Grabar")
case "$choice" in
" Screencast") screencast;;
" Vídeo") video;;
" Audio") audio;;
" Webcam") webcam;;
esac
}
killrecording() {
recpid="$(cat /tmp/recordingpid)"
# kill with SIGTERM, allowing finishing touches.
kill -15 "$recpid"
rm -f /tmp/recordingpid
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
sleep 3
kill -9 "$recpid"
exit
}
asktoend() { \
response=$(printf " Cancelar\\n Aceptar" | dmenu -i -fn "mononoki:size=9:style=Bold" -nb "#000000" -nf "#777777" -sb "#000000" -sf "#ffffff" -p "  Finalizar") &&
[ "$response" = " Aceptar" ] && killrecording
}
case "$1" in
kill) killrecording;;
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording;;
esac

11
home/desktop/bin/sda-chroot Executable file
View File

@ -0,0 +1,11 @@
#! /bin/sh
doas mount /dev/sda3 /mnt/venom && \
doas mount -v --bind /dev /mnt/venom/dev && \
doas mount -vt devpts devpts /mnt/venom/dev/pts -o gid=5,mode=620 && \
doas mount -vt proc proc /mnt/venom/proc && \
doas mount -vt sysfs sysfs /mnt/venom/sys && \
doas mount -vt tmpfs tmpfs /mnt/venom/run && \
doas mkdir -pv /mnt/venom/$(readlink /mnt/venom/dev/shm) && \
doas cp -L /etc/resolv.conf /mnt/venom/etc/ && \
doas mount -t tmpfs tmpfs -o nosuid,noatime,nodev,size=16G /mnt/venom/var/cache/scratchpkg/work && \
doas chroot /mnt/venom /bin/mksh

11
home/desktop/bin/sda6-chroot Executable file
View File

@ -0,0 +1,11 @@
#! /bin/sh
doas mount /dev/sda6 /mnt/venom && \
doas mount -v --bind /dev /mnt/venom/dev && \
doas mount -vt devpts devpts /mnt/venom/dev/pts -o gid=5,mode=620 && \
doas mount -vt proc proc /mnt/venom/proc && \
doas mount -vt sysfs sysfs /mnt/venom/sys && \
doas mount -vt tmpfs tmpfs /mnt/venom/run && \
doas mkdir -pv /mnt/venom/$(readlink /mnt/venom/dev/shm) && \
doas cp -L /etc/resolv.conf /mnt/venom/etc/ && \
doas mount -t tmpfs tmpfs -o nosuid,noatime,nodev,size=16G /mnt/venom/var/cache/scratchpkg/work && \
doas chroot /mnt/venom /bin/mksh

11
home/desktop/bin/session Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
SESSION=$(printf "Shutdown\\nReboot\\nLock\\nExit" | dmenu -i -p " Session:" -fn "mononoki:size=9:style=Bold" -nb "#000000" -nf "#777777" -sb "#000000" -sf "#ffffff")
case $SESSION in
"Shutdown") doas shutdown -h now;;
"Reboot") doas shutdown -r now;;
"Lock") slock;;
"Exit") xdotool key "super+shift+e";;
*) ;;
esac

11
home/desktop/bin/session-wl Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
SESSION=$(printf "Poweroff\\nReboot\\nLock\\nExit" | bemenu -H '20' -p 'Session:' --fn 'mononoki 11' --tf '#ffffff' --hf '#000000' --hb '#999999')
case $SESSION in
"Poweroff") doas poweroff;;
"Reboot") doas reboot;;
"Lock") swaylock -i ~/.icons/fondo.jpg;;
"Exit") swaymsg exit;;
*) ;;
esac

17
home/desktop/bin/sources Executable file
View File

@ -0,0 +1,17 @@
#! /bin/sh
prts="$(scratch installed | awk '{print $1}')"
installed() {
for i in $prts
do
doas scratch build -o $i
done
}
printf "You are gonna recompile and reinstall all installed ports like $prts \n... \nAre you sure? [y/N]"
read op
case "$op" in
[y|y) installed ;;
N]|n) exit ;;
esac

16
home/desktop/bin/toolchain Executable file
View File

@ -0,0 +1,16 @@
#! /bin/sh
prts="linux-api-headers glibc binutils gcc glibc binutils gcc libtool libmpc elfutils libmpfr linux"
toolchain() {
for i in $prts; do
scratch install -fr $i
done
}
printf "You are gonna recompile and reinstall critical ports like $prts ...\n Are you sure? [y/n]"
read op
case "$op" in
[y|y) toolchain ;;
n]|n) exit ;;
esac

10
home/desktop/bin/venom-chroot Executable file
View File

@ -0,0 +1,10 @@
#! /bin/sh
mount -v --bind /dev /mnt/venom/dev && \
mount -vt devpts devpts /mnt/venom/dev/pts -o gid=5,mode=620 && \
mount -vt proc proc /mnt/venom/proc && \
mount -vt sysfs sysfs /mnt/venom/sys && \
mount -vt tmpfs tmpfs /mnt/venom/run && \
mkdir -pv /mnt/venom/$(readlink /mnt/venom/dev/shm) && \
cp -L /etc/resolv.conf /mnt/venom/etc/ && \
mount -t tmpfs tmpfs -o nosuid,noatime,nodev,size=32G /mnt/venom/var/cache/scratchpkg/work && \
chroot /mnt/venom /bin/mksh

10
home/desktop/bin/venom-iso Executable file
View File

@ -0,0 +1,10 @@
#! /bin/sh
mount -v --bind /dev /mnt/iso/dev && \
mount -vt devpts devpts /mnt/iso/dev/pts -o gid=5,mode=620 && \
mount -vt proc proc /mnt/iso/proc && \
mount -vt sysfs sysfs /mnt/iso/sys && \
mount -vt tmpfs tmpfs /mnt/iso/run && \
mkdir -pv /mnt/iso/$(readlink /mnt/iso/dev/shm) && \
cp -L /etc/resolv.conf /mnt/iso/etc/ && \
mount -t tmpfs tmpfs -o nosuid,noatime,nodev,size=32G /mnt/iso/var/cache/scratchpkg/work && \
chroot /mnt/iso /bin/bash

12
home/desktop/bin/verifysums.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
pth=/usr/ports/ports
rp="core main multilib nonfree"
prt="$(ls ${pth}/$r)"
for r in $rp; do
for p in $(ls $pth/$r); do
cd $pth/$r/$p
pkgbuild -o
pkgbuild -g
done
done

12
home/desktop/bin/wpa Executable file
View File

@ -0,0 +1,12 @@
$ cat wpa
#!/bin/sh
i1=wlp8s0
i2=wlp2s0
if [ -f /run/wpa_supplicant/$i1] ; then
doas pkill wpa_supplicant
doas wpa_supplicant -B -D nl80211 -i $i2 -c /etc/wpa_supplicant.conf
elif [ -f /run/wpa_supplicant/$i2 ; then
doas pkill wpa_supplicant
doas wpa_supplicant -B -D nl80211 -i $i1 -c /etc/wpa_supplicant.conf
fi