reorganize
This commit is contained in:
15
trinitystuff/.config/bspwm/bspwmrc
Executable file
15
trinitystuff/.config/bspwm/bspwmrc
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
bspc config active_border_color '#FFCACA'
|
||||
bspc config focus_follows_pointer true
|
||||
bspc config focused_border_color '#FFFFFF'
|
||||
bspc config normal_border_color '#FFDBDB'
|
||||
bspc config window_gap 0
|
||||
bspc monitor LVDS1 -d 1 2 3 4
|
||||
xrandr | grep ' connected ' | awk '{print $1}' | grep VGA >/dev/null 2>&1 \
|
||||
&& bspc monitor VGA1 -d 5 6 7 8 \
|
||||
|| true
|
||||
bspc rule -a XClock manage=off # thanks emanuele6
|
||||
bspc rule -a xload manage=off
|
||||
xdo lower -NXClock
|
||||
xdo lower -Nxload
|
||||
data | lemonbar -bf '-*-unscii-*-*-*-*-*-*-*-*-*-*-*-*' -F '#FFDBDB'
|
||||
144
trinitystuff/.config/i3/config
Normal file
144
trinitystuff/.config/i3/config
Normal file
@@ -0,0 +1,144 @@
|
||||
# i3 config file (v4)
|
||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||
|
||||
set $mod Mod1
|
||||
|
||||
# Font for window titles
|
||||
font pango:unscii 12
|
||||
|
||||
# keybindings
|
||||
exec_always --no-startup-id sxhkd
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
# start pulseaudio
|
||||
exec --no-startup-id pulseaudio --start
|
||||
|
||||
# Define names for default workspaces for which we configure key bindings later on.
|
||||
# We use variables to avoid repeating the names in multiple places.
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec [ "Yes." = $(printf "No.\nYes." | dmenu -p "You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.") ] && i3-msg exit
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
# These bindings trigger as soon as you enter the resize mode
|
||||
|
||||
# Pressing left will shrink the window’s width.
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
# back to normal: Enter or Escape or $mod+r
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3status
|
||||
separator_symbol " // "
|
||||
|
||||
# defaults
|
||||
# colors {
|
||||
# background #ffffff
|
||||
# statusline #000000
|
||||
# separator #ff0000
|
||||
# focused_workspace #4c7899 #285577 #ffffff
|
||||
# active_workspace #333333 #5f676a #ffffff
|
||||
# inactive_workspace #333333 #222222 #888888
|
||||
# urgent_workspace #2f343a #900000 #ffffff
|
||||
# binding_mode #2f343a #900000 #ffffff
|
||||
# }
|
||||
|
||||
colors {
|
||||
background #ffdbdb
|
||||
statusline #000000
|
||||
separator #ff0000
|
||||
# border bg text
|
||||
focused_workspace #ff0000 #ff0000 #ffffff
|
||||
active_workspace #ffffff #ffffff #000000
|
||||
inactive_workspace #000000 #000000 #ffffff
|
||||
urgent_workspace #2f343a #900000 #ff0000
|
||||
binding_mode #2f343a #900000 #ffffff
|
||||
}
|
||||
}
|
||||
|
||||
# color customization
|
||||
# class border bg text indicator child_border
|
||||
client.focused #ff0000 #ffffff #ff0000 #2e9ef4 #ff0000
|
||||
client.focused_inactive #ffffff #ffffff #000000 #484e50 #000000
|
||||
client.unfocused #000000 #000000 #ff0000 #292d2e #ffffff
|
||||
client.urgent #900000 #900000 #ffffff #900000 #900000
|
||||
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
||||
|
||||
client.background #ffffff
|
||||
|
||||
# Wallpaper
|
||||
exec --no-startup-id feh --bg-center /home/trinity/Pictures/Wallpapers/akirablast.jpg
|
||||
|
||||
# moving workspaces
|
||||
bindsym $mod+Shift+greater move container to output right
|
||||
bindsym $mod+Shift+less move container to output left
|
||||
|
||||
# Gaps
|
||||
#gaps inner 10
|
||||
#gaps outer 10
|
||||
#gaps horizontal 10
|
||||
#gaps vertical 10
|
||||
#gaps top 10
|
||||
#gaps right 10
|
||||
#gaps bottom 10
|
||||
#gaps left 10
|
||||
|
||||
# disables titlebars
|
||||
new_window 1pixel
|
||||
53
trinitystuff/.config/i3status/config
Normal file
53
trinitystuff/.config/i3status/config
Normal file
@@ -0,0 +1,53 @@
|
||||
# i3status configuration file.
|
||||
# see "man i3status" for documentation.
|
||||
|
||||
# It is important that this file is edited as UTF-8.
|
||||
# The following line should contain a sharp s:
|
||||
# ß
|
||||
# If the above line is not correctly displayed, fix your editor first!
|
||||
|
||||
general {
|
||||
colors = false
|
||||
interval = 5
|
||||
}
|
||||
|
||||
#order += "ipv6"
|
||||
order += "wireless _first_"
|
||||
order += "ethernet _first_"
|
||||
order += "battery all"
|
||||
order += "disk /"
|
||||
#order += "load"
|
||||
order += "memory"
|
||||
order += "tztime local"
|
||||
|
||||
wireless _first_ {
|
||||
format_up = "wlan0: (%quality at %essid) %ip"
|
||||
format_down = "wlan0 DOWN"
|
||||
}
|
||||
|
||||
ethernet _first_ {
|
||||
format_up = "eth0: %ip (%speed)"
|
||||
format_down = "eth0 DOWN"
|
||||
}
|
||||
|
||||
battery all {
|
||||
format = "%status %percentage %remaining"
|
||||
}
|
||||
|
||||
disk "/" {
|
||||
format = "%avail"
|
||||
}
|
||||
|
||||
#load {
|
||||
# format = "%1min"
|
||||
#}
|
||||
|
||||
memory {
|
||||
format = "%used/%available"
|
||||
threshold_degraded = "1G"
|
||||
format_degraded = "MEMORY < %available"
|
||||
}
|
||||
|
||||
tztime local {
|
||||
format = "%Y-%m-%dT%H:%M:%S"
|
||||
}
|
||||
64
trinitystuff/.config/sxhkd/sxhkdrc
Executable file
64
trinitystuff/.config/sxhkd/sxhkdrc
Executable file
@@ -0,0 +1,64 @@
|
||||
# thanks patrickbolle, weedsmokingjew
|
||||
XF86AudioMicMute
|
||||
pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
XF86AudioMute
|
||||
volume m
|
||||
XF86Audio{Lower,Raise}Volume
|
||||
volume r {-5,5}
|
||||
XF86Audio{Play,Pause,Next,Prev}
|
||||
playerctl {play,pause,next,previous}
|
||||
XF86Launch1
|
||||
$TERMINAL
|
||||
|
||||
control + shift + Escape
|
||||
$TERMINAL -e htop
|
||||
Print
|
||||
scrot
|
||||
|
||||
mod1 + {_,shift +}F4
|
||||
bspc node -{c,k} || i3-msg kill
|
||||
mod1 + {_,shift +}q
|
||||
bspc node -{c,k} || i3-msg kill
|
||||
|
||||
mod1 + {_,shift +}{1-4}
|
||||
bspc {desktop -f,node -d} '^{1-4}'
|
||||
|
||||
mod1 + equal
|
||||
light -A 5
|
||||
mod1 + shift + equal
|
||||
light -A 1
|
||||
mod1 + minus
|
||||
light -U 5
|
||||
mod1 + shift + minus
|
||||
light -U 1
|
||||
|
||||
mod1 + shift + e
|
||||
if [ "Yes." = $(printf "No.\nYes." | dmenu -fn unscii -nb '#000' -nf '#FFDBDB' -p '$' -sb '#FFDBDB' -sf '#000' -p "You pressed the exit shortcut. Do you really want to exit? This will end your X session.") ]; \
|
||||
then bspc quit || i3-msg exit || pkill X; fi
|
||||
|
||||
mod1 + shift + r
|
||||
bspc wm -r; pkill -USR1 -x sxhkd
|
||||
|
||||
mod1 + d
|
||||
dmenu_run -fn unscii -nb '#000' -nf '#FFDBDB' -p '$' -sb '#FFDBDB' -sf '#000'
|
||||
|
||||
mod1 + f
|
||||
bspc node -t '~fullscreen' || i3-msg fullscreen toggle
|
||||
|
||||
mod1 + {h,j,k,l}
|
||||
bspc node -f {west,south,north,east} || i3-msg focus {left,down,up,right}
|
||||
|
||||
mod1 + shift + {h,j,k,l}
|
||||
bspc node -s {west,south,north,east} || i3-msg move {left,down,up,right}
|
||||
|
||||
mod1 + Return
|
||||
$TERMINAL
|
||||
|
||||
mod1 + v
|
||||
$TERMINAL -e aiomixer
|
||||
|
||||
mod1 + b
|
||||
$BROWSER
|
||||
|
||||
mod1 + m
|
||||
volume m
|
||||
8
trinitystuff/.config/ytfeed-config.txt
Normal file
8
trinitystuff/.config/ytfeed-config.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
auto_refresh_feeds: -1
|
||||
cap: 200
|
||||
consumption_file_name: /home/trinity/.ytfeed/consumption.txt
|
||||
feed_directory: /home/trinity/.ytfeed/feeds/
|
||||
xml_storage_directory: /home/trinity/.ytfeed/feeds/
|
||||
video_downloader: youtube-dlp
|
||||
viewer: youtube-dl-mpv
|
||||
web_browser: firefox-developer-edition
|
||||
2
trinitystuff/2020-09-26.md
Normal file
2
trinitystuff/2020-09-26.md
Normal file
@@ -0,0 +1,2 @@
|
||||

|
||||
For this configuration, [posted on r/unixporn on 2020-09-25](https://www.reddit.com/r/unixporn/comments/izpvwp/i3gaps_basic_but_it_works/), refer to the [state of the repository around 2020-09-26](https://git.sr.ht/~trinity/src/tree/86abade1455cfda2f06aff6bc66c6493453512ef/item/dotfiles-old/README.md) or so.
|
||||
28
trinitystuff/Makefile
Normal file
28
trinitystuff/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
.POSIX:
|
||||
|
||||
HOME = /home/trinity/
|
||||
|
||||
$(HOME)/.aliases: sh/aliases
|
||||
cp sh/aliases $(HOME)/.aliases
|
||||
|
||||
$(HOME)/.ctwmrc: ctwm/ctwmrc
|
||||
cp ctwm/ctwmrc $(HOME)/.ctwmrc
|
||||
|
||||
$(HOME)/.env: sh/env
|
||||
cp sh/env $(HOME)/.env
|
||||
|
||||
$(HOME)/.nethackrc: nethack/nethackrc
|
||||
cp nethack/nethackrc $(HOME)/.nethackrc
|
||||
|
||||
$(HOME)/.profile: sh/profile
|
||||
cp sh/profile $(HOME)/.profile
|
||||
|
||||
$(HOME)/.vimrc: vim/vimrc
|
||||
cp vim/vimrc $(HOME)/.vimrc
|
||||
|
||||
$(HOME)/.Xresources: X/Xresources
|
||||
cp X/Xresources $(HOME)/.Xresources
|
||||
|
||||
$(HOME)/.config/youtube-dl/youtube-dl.conf: youtube-dl/youtube-dl.conf
|
||||
mkdir -p $(HOME)/.config/youtube-dl
|
||||
cp youtube-dl/youtube-dl.conf $(HOME)/.config/youtube-dl/youtube-dl.conf
|
||||
81
trinitystuff/X/Xresources
Normal file
81
trinitystuff/X/Xresources
Normal file
@@ -0,0 +1,81 @@
|
||||
#define AMBER #FFBD00
|
||||
#define BLACK #000000
|
||||
#define PINK #FFDBDB
|
||||
#define WHITE #FFFFFF
|
||||
|
||||
#define FOREGROUND PINK
|
||||
#define BACKGROUND BLACK
|
||||
|
||||
! unscii font
|
||||
*faceName: unscii:antialias=false
|
||||
*faceSize: 12
|
||||
|
||||
*cursorColor: FOREGROUND
|
||||
*Foreground: FOREGROUND
|
||||
*Background: BACKGROUND
|
||||
|
||||
! xterm specific stuff
|
||||
xterm*loginshell: true
|
||||
xterm*locale: UTF-8
|
||||
xterm*titleModes: 16
|
||||
xterm*metaSendsEscape: true
|
||||
xterm*utf8: 1
|
||||
xterm*utf8Fonts: 1
|
||||
xterm*utf8Title: true
|
||||
|
||||
! I used to use these but they make it really hard to see default Lynx.
|
||||
|
||||
! "quantified colors" but every nybble
|
||||
! is decremented ======================
|
||||
! black/dark-gray
|
||||
!*.color0: #000000
|
||||
!*.color8: #343434
|
||||
! red/orange
|
||||
!*.color1: #DE9591
|
||||
!*.color9: #D09E74
|
||||
! green/aquamarine
|
||||
!*.color2: #70B880
|
||||
!*.color10: #49BB9E
|
||||
! amber/yellow
|
||||
!*.color3: #958350
|
||||
!*.color11: #B7B763
|
||||
! blue/violet
|
||||
!*.color4: #92A7DE
|
||||
!*.color12: #BB9BDC
|
||||
! magenta/rose
|
||||
!*.color5: #D592CB
|
||||
!*.color13: #E190B1
|
||||
! cyan/azure
|
||||
!*.color6: #40B9BC
|
||||
!*.color14: #63B2D3
|
||||
! gray/white
|
||||
!*.color7: #707070
|
||||
!*.color15: #B0B0B0
|
||||
! =====================================
|
||||
|
||||
! "quantified colors" =================
|
||||
! black/dark-gray
|
||||
!*.color0: #101010
|
||||
!*.color8: #454545
|
||||
! red/orange
|
||||
!*.color1: #EFA6A2
|
||||
!*.color9: #E0AF85
|
||||
! green/aquamarine
|
||||
!*.color2: #80C990
|
||||
!*.color10: #5ACCAF
|
||||
! amber/yellow
|
||||
!*.color3: #A69460
|
||||
!*.color11: #C8C874
|
||||
! blue/violet
|
||||
!*.color4: #A3B8EF
|
||||
!*.color12: #CCACED
|
||||
! magenta/rose
|
||||
!*.color5: #E6A3DC
|
||||
!*.color13: #F2A1C2
|
||||
! cyan/azure
|
||||
!*.color6: #50CACD
|
||||
!*.color14: #74C3E4
|
||||
! gray/white
|
||||
!*.color7: #808080
|
||||
!*.color15: #C0C0C0
|
||||
! =====================================
|
||||
110
trinitystuff/ctwm/ctwmrc
Normal file
110
trinitystuff/ctwm/ctwmrc
Normal file
@@ -0,0 +1,110 @@
|
||||
# BEGIN ctwmrc
|
||||
# thanks to https://datagubbe.se/twm/
|
||||
NoDefaults
|
||||
DontShowWelcomeWindow
|
||||
|
||||
# fonts
|
||||
TitleFont "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1"
|
||||
ResizeFont "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1"
|
||||
MenuFont "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1"
|
||||
IconFont "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1"
|
||||
IconManagerFont "-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1"
|
||||
|
||||
Color {
|
||||
TitleBackground "#FFDBDB"
|
||||
TitleForeground "#000000"
|
||||
BorderColor "#FFDBDB"
|
||||
BorderTileBackground "#206090"
|
||||
BorderTileForeground "#206090"
|
||||
|
||||
MenuBackground "Gray"
|
||||
MenuForeground "Black"
|
||||
MenuShadowColor "#004070"
|
||||
MenuTitleBackground "#C06077"
|
||||
MenuTitleForeground "White"
|
||||
}
|
||||
|
||||
WindowRing
|
||||
WindowRingExclude {
|
||||
"xload"
|
||||
"xclock"
|
||||
}
|
||||
|
||||
Cursors {
|
||||
Frame "left_ptr"
|
||||
Title "left_ptr"
|
||||
Icon "left_ptr"
|
||||
IconMgr "hand2"
|
||||
Move "fleur"
|
||||
Resize "fleur"
|
||||
Menu "sb_left_arrow"
|
||||
Button "hand2"
|
||||
Wait "watch"
|
||||
Select "dot"
|
||||
Destroy "pirate"
|
||||
}
|
||||
|
||||
NoBorder {
|
||||
"xclock"
|
||||
"xload"
|
||||
}
|
||||
|
||||
NoTitle {
|
||||
"TWM Icon Manager"
|
||||
"xload"
|
||||
"xclock"
|
||||
"feh"
|
||||
"xeyes"
|
||||
}
|
||||
|
||||
Function "move-and-raise" {
|
||||
f.move
|
||||
f.deltastop
|
||||
f.raise
|
||||
}
|
||||
|
||||
Function "deiconify-and-raise" {
|
||||
f.deiconify
|
||||
f.raise
|
||||
}
|
||||
Function "next-and-raise" {
|
||||
f.downiconmgr
|
||||
f.raise
|
||||
}
|
||||
|
||||
Button3 = : root : f.menu "apps"
|
||||
|
||||
Button1 = : title : f.function "move-and-raise"
|
||||
Button2 = : title : f.delete
|
||||
Button3 = : title : f.menu "winops"
|
||||
Button1 = : frame : f.function "move-and-raise"
|
||||
Button2 = : frame : f.nop
|
||||
Button3 = : frame : f.resize
|
||||
|
||||
Button1 = : iconmgr : f.function "deiconify-and-raise"
|
||||
Button2 = : iconmgr : f.lower
|
||||
Button3 = : iconmgr : f.iconify
|
||||
|
||||
# on NetBSD with non-modular Xorg, bitmaps are stored in
|
||||
# /usr/X11R7/include/X11/bitmaps
|
||||
LeftTitleButton ":xlogo" = f.menu "winops"
|
||||
RightTitleButton "vertmax.xbm" = f.zoom
|
||||
RightTitleButton "close.xbm" = f.delete
|
||||
|
||||
menu "winops" {
|
||||
"Delete" f.delete
|
||||
"Destroy" f.destroy
|
||||
"Fullscreen Zoom" f.fullscreenzoom
|
||||
"Full Zoom" f.fullzoom
|
||||
"Identify" f.identify
|
||||
"Initial size" f.initsize
|
||||
}
|
||||
|
||||
# Workspace Menu
|
||||
menu "apps" {
|
||||
"Workspace" f.title
|
||||
"Restart" f.restart
|
||||
"Exit" f.quit
|
||||
}
|
||||
|
||||
# END twmrc
|
||||
1
trinitystuff/nethack/nethackrc
Normal file
1
trinitystuff/nethack/nethackrc
Normal file
@@ -0,0 +1 @@
|
||||
OPTIONS=!autopickup
|
||||
47
trinitystuff/sh/aliases
Normal file
47
trinitystuff/sh/aliases
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
# audio drive
|
||||
#alias audio="sudo mount -L 'AUDIO' /mnt/audio"
|
||||
|
||||
alias awk="nawk"
|
||||
alias b="$BROWSER"
|
||||
alias cls="clear"
|
||||
alias cp="cp -iv"
|
||||
alias doas="$SUDO"
|
||||
alias e="$EDITOR"
|
||||
alias ipconfig="ifconfig"
|
||||
#alias ls="9 ls"
|
||||
alias ls="ls -1A"
|
||||
alias mpv="LIBGL_ALWAYS_SOFTWARE=1 mpv --vo=x11"
|
||||
alias mullvad="curl https://am.i.mullvad.net/connected"
|
||||
alias mv="mv -iv"
|
||||
alias p="ping 1.1.1.1"
|
||||
|
||||
# media hard drive
|
||||
alias partone="sudo mount -L 'PARTONE' /mnt/partone"
|
||||
alias prat="$HOME/src/packrat/prat"
|
||||
|
||||
pyenv() {
|
||||
eq $# 0 \
|
||||
&& . ./bin/activate \
|
||||
|| . $1/bin/activate
|
||||
}
|
||||
|
||||
alias sensors="watch sensors"
|
||||
alias sudo="$SUDO"
|
||||
alias try="PREFIX=/home/trinity/src/trilsd/ /home/trinity/src/trilsd/dist/try"
|
||||
|
||||
# Wacom Intuos 2
|
||||
#alias taboff="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput LVDS-1"
|
||||
#alias tabon="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput VGA-1"
|
||||
|
||||
alias units="units --history /dev/null"
|
||||
alias v="$VISUAL"
|
||||
alias weather="curl wttr.in/lewiston+maine?m"
|
||||
|
||||
webm() {
|
||||
ffmpeg -i $1 -c:v libvpx -b:v 1M -c:a libvorbis "$(printf "%b" "$1" | awk -F '.' '{print $1}')".webm
|
||||
}
|
||||
|
||||
alias y=youtube-dl
|
||||
alias yay="paru"
|
||||
10
trinitystuff/sh/env
Normal file
10
trinitystuff/sh/env
Normal file
@@ -0,0 +1,10 @@
|
||||
if [ "$0" = "bash" ] || [ "$0" = "-bash" ]; then complete -c man which; fi
|
||||
|
||||
PS1="; "
|
||||
PS2="; "
|
||||
PS3="; "
|
||||
|
||||
set -o vi
|
||||
|
||||
. $HOME/.aliases
|
||||
. $HOME/.cargo/env
|
||||
29
trinitystuff/sh/profile
Normal file
29
trinitystuff/sh/profile
Normal file
@@ -0,0 +1,29 @@
|
||||
BROWSER=firefox; export BROWSER
|
||||
EDITOR=/usr/lib/plan9/bin/ed; export EDITOR
|
||||
PAGER="less"; export PAGER
|
||||
PLAN9=/usr/local/plan9; export PLAN9
|
||||
PATH="\
|
||||
/bin:\
|
||||
/sbin:\
|
||||
/usr/bin:\
|
||||
/usr/games:\
|
||||
/usr/sbin:\
|
||||
/usr/local/bin:\
|
||||
/usr/local/sbin:\
|
||||
/usr/pkg/bin:\
|
||||
/usr/pkg/sbin:\
|
||||
/usr/pkg/qt5/bin:\
|
||||
/usr/X11R7/bin:\
|
||||
$HOME/bin/:\
|
||||
$PLAN9/bin"; export PATH
|
||||
TERMINAL="uxterm"; export TERMINAL
|
||||
UNITS_SYSTEM="si"; export UNITS_SYSTEM
|
||||
VISUAL=vi; export VISUAL
|
||||
WALLPAPER="$HOME/Pictures/Wallpapers/ghibli_wars.jpg"; export WALLPAPER
|
||||
|
||||
# lowest to highest priority
|
||||
command -v sudo >/dev/null 2>&1 && SUDO="sudo" && export SUDO
|
||||
command -v doas >/dev/null 2>&1 && SUDO="doas" && export SUDO
|
||||
|
||||
ENV=$HOME/.env; export ENV
|
||||
. $ENV
|
||||
20
trinitystuff/vim/vimrc
Normal file
20
trinitystuff/vim/vimrc
Normal file
@@ -0,0 +1,20 @@
|
||||
colorscheme elflord
|
||||
set bg=dark
|
||||
set mouse=
|
||||
set noautoindent
|
||||
set nocp
|
||||
set noexpandtab
|
||||
set noim
|
||||
set nois
|
||||
set nu
|
||||
set relativenumber
|
||||
set rnu
|
||||
set ruler
|
||||
set tabstop=8
|
||||
set term=xterm
|
||||
set tf
|
||||
set title
|
||||
set tty=xterm
|
||||
set vb
|
||||
set nowrap
|
||||
syntax on
|
||||
4
trinitystuff/youtube-dl/youtube-dl.conf
Normal file
4
trinitystuff/youtube-dl/youtube-dl.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
--add-metadata
|
||||
-f bestvideo[vcodec=vp9]+bestaudio[acodec=opus]
|
||||
-i
|
||||
-o "$HOME/%%(upload_date)s %%(title)s.%%(ext)s"
|
||||
Reference in New Issue
Block a user