1
0

moving to bspwm, using ed, etc

This commit is contained in:
Deven Blake 2021-05-10 21:19:41 -04:00
parent 65d47523e1
commit 0d261bd1bd
13 changed files with 105 additions and 63 deletions

View File

@ -1,19 +1,27 @@
#define AMBER #FFBD00
#define BLACK #000000
#define PINK #FFDBDB
#define WHITE #FFFFFF
#define FOREGROUND BLACK
#define BACKGROUND WHITE
! unscii font
*faceName: unscii:antialias=false
*faceSize: 12
*Background: #000000
*cursorColor: FOREGROUND
*Foreground: FOREGROUND
*Background: BACKGROUND
! amber
!*Foreground: #FFBF00
!*cursorColor: #FFBF00
! pink
*Foreground: #FFDBDB
*cursorColor: #FFDBDB
! black on white (first uncomment white's stuff)
!*reverseVideo: true
! 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.
@ -71,14 +79,3 @@
!*.color7: #808080
!*.color15: #C0C0C0
! =====================================
! xterm specific stuff
xterm*font: -*-*-*-*-*-*-*-*-*-*-*-*-*-*
xterm*loginshell: true
xterm*locale: UTF-8
xterm*titleModes: 16
xterm*metaSendsEscape: true
xterm*utf8: 1
xterm*utf8Fonts: 1
xterm*utf8Title: true

View File

@ -4,11 +4,11 @@
alias audio="sudo mount -L 'AUDIO' /mnt/audio"
alias awk="nawk"
alias cat="9 cat"
alias cls="clear"
alias cp="cp -iv"
alias ipconfig="ifconfig"
alias ls="9 ls"
alias man="/home/trinity/src/utilities/bin/man"
# other volumes
mnt() {
@ -21,6 +21,7 @@ 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 \
@ -36,9 +37,10 @@ alias tabon="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput VGA-1"
alias tracert="tracepath"
alias units="units --history /dev/null"
alias vi="vim"
alias weather="curl wttr.in/lewiston+maine?m"
webm() {
ffmpeg -i $1 -c:v libvpx -b:v 1M -c:a libvorbis "$(printf "$1" | awk -F '.' '{print $1}')".webm
}
alias yay="paru"

View File

@ -0,0 +1,5 @@
#!/bin/sh
bspc config window_gap 0
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
pgrep -x sxhkd >/dev/null || sxhkd &
polybar bar &

View File

@ -1,7 +1,5 @@
#!/bin/sh
control + shift + Escape
uxterm -e htop
$TERMINAL -e htop
mod1 + d
dmenu_run
@ -16,38 +14,15 @@ mod1 + minus
mod1 + shift + minus
light -U 1
mod1 + F4
i3-msg kill
mod1 + {h,j,k,l}
i3-msg focus {left,down,up,right}
mod1 + f
i3-msg fullscreen toggle
mod1 + F11
i3-msg fullscreen toggle
mod1 + {s,w}
i3-msg layout {stacking,tabbed}
mod1 + e
i3-msg layout toggle split
mod1 + space
i3-msg focus mode_toggle
mod1 + shift + space
i3-msg floating toggle
mod1 + shift + {h,j,k,l}
i3-msg move {left,down,up,right}
mod1 + shift + e
[ "Yes." = $(printf "No.\nYes." | dmenu -p "You pressed the exit shortcut. Do you really want to exit? This will end your X session.") ] && i3-msg exit
mod1 + m
pactl -- set-sink-mute @DEFAULT_SINK@ toggle
mod1 + shift + m
pactl set-source-mute @DEFAULT_SOURCE@ toggle
mod1 + v
$TERMINAL -e pulsemixer
mod1 + Return
uxterm

View File

@ -0,0 +1,22 @@
# thanks weedsmokingjew
mod1 + {_,shift + }F4
bspc node -{c,k}
mod1 + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}'
mod1 + shift + e
[ "Yes." = $(printf "No.\nYes." | dmenu -p "You pressed the exit shortcut. Do you really want to exit? This will end your X session.") ] && bspc quit
mod1 + f
bspc node -t '~fullscreen'
mod1 + {h,j,k,l}
bspc node -f {west,south,north,east}
mod1 + shift + {h,j,k,l}
bspc node -s {west,south,north,east}
mod1 + shift + r
bspc wm -r && pkill -USR1 -x sxhkd

View File

@ -0,0 +1,27 @@
mod1 + F4
i3-msg kill
mod1 + {h,j,k,l}
i3-msg focus {left,down,up,right}
mod1 + f
i3-msg fullscreen toggle
mod1 + F11
i3-msg fullscreen toggle
mod1 + {s,w}
i3-msg layout {stacking,tabbed}
mod1 + e
i3-msg layout toggle split
mod1 + space
i3-msg focus mode_toggle
mod1 + shift + space
i3-msg floating toggle
mod1 + shift + {h,j,k,l}
i3-msg move {left,down,up,right}
mod1 + shift + e
[ "Yes." = $(printf "No.\nYes." | dmenu -p "You pressed the exit shortcut. Do you really want to exit? This will end your X session.") ] && i3-msg exit

View File

@ -1,12 +1,14 @@
BROWSER=firefox; export BROWSER
DOOMWADDIR=/mnt/partone/misc/doomwads/; export DOOMWADDIR
EDITOR=vim; export EDITOR
EDITOR=ed; export EDITOR
PAGER="less"; export PAGER
PLAN9=/usr/local/plan9; export PLAN9
PATH="$HOME/bin/:$HOME/bin/oneliners/:"$PATH":$PLAN9/bin"; export PATH
if [ "$0" = "bash" ] || [ "$0" = "-bash" ]; then complete -c man which; fi
TERMINAL="uxterm"; export TERMINAL
UNITS_SYSTEM="si"; export UNITS_SYSTEM
ENV=$HOME/.env; export ENV
. $ENV
if [ "$0" = "bash" ] || [ "$0" = "-bash" ]; then complete -c man which; fi

View File

@ -1,19 +1,26 @@
#!/bin/sh
[ "$(printf "Abort.\nContinue.\n" | dmenu -p "Current path is '$(pwd)'. Continue?")" = "Continue." ] || return || exit
[ "$(printf "Abort.\nContinue.\n" | dmenu -p "Current path is '$(pwd)'. Continue?")" = "Continue." ] || exit
set -x
cp $HOME/.Xresources ./
cp $HOME/.aliases ./
#cp $HOME/.bashrc ./
cp $HOME/.env ./
cp $HOME/.profile ./
cp $HOME/.vimrc ./
mkdir -p ./.config/
cp $HOME/.config/ytfeed-config.txt ./.config/
mkdir -p ./.config/bspwm
cp $HOME/.config/bspwm/bspwmrc ./.config/bspwm/bspwmrc
mkdir -p ./.config/i3
cp $HOME/.config/i3/config ./.config/i3/config
mkdir -p ./.config/i3status
cp $HOME/.config/i3status/config ./.config/i3status/config
mkdir -p ./.config/sxhkd
cp $HOME/.config/sxhkd/sxhkdrc ./.config/sxhkd/sxhkdrc
cp $HOME/.config/sxhkd/* ./.config/sxhkd/
rm ./.config/sxhkd/sxhkdrc
mkdir -p ./src/dmenu
cp $HOME/src/dmenu/config.h ./src/dmenu/config.h

View File

@ -1,4 +1,5 @@
adb
alsa-utils
anki
audacious
blender
@ -58,6 +59,7 @@ vlc
wget
wireguard-tools
xclip
xf86-input-wacom
xscreensaver
xterm
zathura

View File

@ -1,5 +1,6 @@
acpid
acpid-openrc
fuse-openrc
iwd-openrc
libvirt-openrc
openresolv

View File

@ -23,6 +23,7 @@ pulseaudio-bluetooth
python-pip
qemu-arch-extra
qt5-imageformats
stalonetray
ttf-dejavu
vi
which

View File

@ -12,6 +12,8 @@ i3-gaps
i3-swallow
instagram-scraper
iwgtk
lemonbar-git
makebootfat
minecraft-launcher
mullvad-vpn-beta
multimc5

View File

@ -1,3 +1,2 @@
moon-buggy
ne
syncterm