better aliases, more packages
This commit is contained in:
parent
d51376b953
commit
3147d849e6
@ -1,59 +1,67 @@
|
|||||||
# aliases for using my Commodore monitor with my computer
|
# settings for specific monitors
|
||||||
alias 1702off="xrandr --output HDMI1 --off"
|
alias 1702="xrandr --output HDMI1 --auto --mode 720x480 --right-of LVDS1"
|
||||||
alias 1702on="xrandr --output HDMI1 --auto --mode 720x480 --right-of LVDS1"
|
alias mv720="xrandr --output VGA1 --auto --right-of LVDS1"
|
||||||
|
|
||||||
|
# audio drive
|
||||||
|
alias audio="sudo mount -L 'AUDIO' /mnt/audio"
|
||||||
|
|
||||||
|
# private bookmarks
|
||||||
|
alias bmarks="firefox file:///home/trinity/bookmarks.html"
|
||||||
|
|
||||||
# requires bat
|
# requires bat
|
||||||
alias cat="bat --theme=ansi-light"
|
alias cat="bat --theme=ansi-light"
|
||||||
|
|
||||||
alias cls="clear"
|
alias cls="clear"
|
||||||
|
|
||||||
|
alias firefox="firefox-developer-edition"
|
||||||
|
|
||||||
|
alias hdmioff="xrandr --output HDMI1 --off"
|
||||||
|
|
||||||
# useful aliases
|
# useful aliases
|
||||||
alias iftoggle="sudo ip link set"
|
alias iftoggle="sudo ip link set"
|
||||||
alias ifswitch="iftoggle $1 down && iftoggle $1 up"
|
alias ifswitch="iftoggle $1 down && iftoggle $1 up"
|
||||||
|
|
||||||
alias imount="idevicepair pair && sudo ifuse -o allow_other /mnt/iphone/"
|
alias imount="idevicepair pair && sudo ifuse -o allow_other /mnt/iphone/"
|
||||||
|
|
||||||
# windows
|
|
||||||
alias ipconfig="ifconfig"
|
alias ipconfig="ifconfig"
|
||||||
alias tracert="tracepath"
|
|
||||||
|
# other volumes
|
||||||
|
mnt() {
|
||||||
|
test -d /mnt/$1 || sudo mkdir /mnt/$1
|
||||||
|
sudo mount /dev/$1 /mnt/$1 && cd /mnt/$1
|
||||||
|
}
|
||||||
|
|
||||||
# i always forget this one but it's useful
|
# i always forget this one but it's useful
|
||||||
alias p="ping 1.1.1.1"
|
alias p="ping 1.1.1.1"
|
||||||
|
|
||||||
|
# my media hard drive
|
||||||
|
alias partone="sudo mount -L 'PARTONE' /mnt/partone"
|
||||||
|
|
||||||
# copy web-browser path to file to clipboard
|
# copy web-browser path to file to clipboard
|
||||||
path() {
|
path() {
|
||||||
echo 'file://'$(realpath $1) | xclip
|
printf "file://%s" $(realpath $1) | xclip
|
||||||
|
}
|
||||||
|
|
||||||
|
pyenv() {
|
||||||
|
source $1/bin/activate
|
||||||
}
|
}
|
||||||
|
|
||||||
alias sudo="doas"
|
alias sudo="doas"
|
||||||
|
|
||||||
# my media hard drive
|
# Wacom Intuos 2
|
||||||
alias partone="sudo mount -L 'PARTONE' /mnt/partone"
|
alias taboff="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput LVDS1"
|
||||||
# sd card with music on it
|
alias tabon="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput VGA1"
|
||||||
alias audio="sudo mount -L 'AUDIO' /mnt/audio"
|
|
||||||
# other volumes
|
|
||||||
mnt() {
|
|
||||||
sudo test -d /mnt/$1 || sudo mkdir /mnt/$1
|
|
||||||
sudo mount /dev/$1 /mnt/$1 && cd /mnt/$1
|
|
||||||
}
|
|
||||||
|
|
||||||
# aliases for using a VGA monitor, i use these at home and at school
|
alias tracert="tracepath"
|
||||||
deskoff() {
|
|
||||||
xsetwacom set "Wacom Intuos2 6x8 Pen stylus" MapToOutput LVDS1
|
alias vgaoff="xrandr --output VGA1 --off"
|
||||||
xrandr --output VGA1 --off
|
|
||||||
}
|
|
||||||
deskon() {
|
|
||||||
xrandr --output VGA1 --auto --left-of LVDS1
|
|
||||||
xsetwacom set "Wacom Intuos2 6x8 Pen stylus" MapToOutput VGA1
|
|
||||||
}
|
|
||||||
alias bedoff="xrandr --output VGA1 --off"
|
|
||||||
alias bedon="xrandr --output VGA1 --auto --right-of LVDS1"
|
|
||||||
|
|
||||||
# project i'm working on
|
# project i'm working on
|
||||||
ytfeed() {
|
ytfeed() {
|
||||||
cd $HOME/src/ytfeed.py/
|
pyenv $HOME/src/ytfeed.py/
|
||||||
source ./bin/activate
|
python $HOME/src/ytfeed.py/cli.py
|
||||||
python ./cli.py
|
}
|
||||||
|
ytfeedsh() {
|
||||||
|
pyenv $HOME/src/ytfeed.py/
|
||||||
|
python $HOME/src/ytfeed.py/shell.py
|
||||||
}
|
}
|
||||||
|
|
||||||
alias bmarks="firefox file:///home/trinity/bookmarks.html"
|
|
||||||
|
@ -18,14 +18,15 @@ cp {.Xresources,.aliases,.bashrc,.profile} $HOME/
|
|||||||
|
|
||||||
# dmenu
|
# dmenu
|
||||||
cde $HOME/src
|
cde $HOME/src
|
||||||
git clone https://git.suckless.org/dmenu
|
if [ git clone https://git.suckless.org/dmenu ]; then
|
||||||
cde dmenu
|
cde dmenu
|
||||||
cp $HOME/dotfiles/src/dmenu/config.h ./
|
cp $HOME/dotfiles/src/dmenu/config.h ./
|
||||||
make
|
make
|
||||||
[ "Yes." = $(printf "No.\nYes." | ./dmenu -p "Install dmenu?") ] && sudo make install
|
[ "Yes." = $(printf "No.\nYes." | ./dmenu -p "Install dmenu?") ] && sudo make install
|
||||||
|
fi
|
||||||
|
|
||||||
# i3wm
|
# i3wm
|
||||||
mkdir $HOME/.config/i3
|
mkdir -p $HOME/.config/i3
|
||||||
mkdir $HOME/.config/i3status
|
mkdir $HOME/.config/i3status
|
||||||
cde $HOME/.config/
|
cde $HOME/.config/
|
||||||
cp $HOME/src/dotfiles/.config/i3/config i3/
|
cp $HOME/src/dotfiles/.config/i3/config i3/
|
||||||
@ -36,7 +37,8 @@ sudo mkdir -p /usr/share/audacious/Skins/
|
|||||||
which audacious && sudo curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o /usr/share/audacious/Skins/Sailor_Moon_Gang.wsz
|
which audacious && sudo curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o /usr/share/audacious/Skins/Sailor_Moon_Gang.wsz
|
||||||
|
|
||||||
# wallpaper
|
# wallpaper
|
||||||
|
cde $HOME
|
||||||
mkdir -p $HOME/Pictures/Wallpapers
|
mkdir -p $HOME/Pictures/Wallpapers
|
||||||
curl https://ia801502.us.archive.org/3/items/asuka-98/Asuka%2098.jpg -o Pictures/Wallpapers/Asuka\ 98.jpg
|
curl https://ia801502.us.archive.org/3/items/asuka-98/Asuka%2098.jpg -o Pictures/Wallpapers/Asuka\ 98.jpg || printf "[ERROR] Could not curl wallpaper.\n"
|
||||||
|
|
||||||
xrdb -load .Xresources
|
xrdb -load .Xresources
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
asp
|
||||||
base-devel
|
base-devel
|
||||||
i3status
|
i3status
|
||||||
iw
|
iw
|
||||||
|
@ -4,6 +4,7 @@ google-chrome
|
|||||||
gzdoom
|
gzdoom
|
||||||
i3-gaps
|
i3-gaps
|
||||||
i3-swallow
|
i3-swallow
|
||||||
|
iwgtk
|
||||||
minecraft-launcher
|
minecraft-launcher
|
||||||
moon-buggy
|
moon-buggy
|
||||||
ne
|
ne
|
||||||
|
@ -7,6 +7,7 @@ dvdbackup
|
|||||||
feh
|
feh
|
||||||
ffmpeg
|
ffmpeg
|
||||||
firefox-developer-edition
|
firefox-developer-edition
|
||||||
|
gnome-disk-utility
|
||||||
gparted
|
gparted
|
||||||
gvim
|
gvim
|
||||||
gwenview
|
gwenview
|
||||||
@ -36,6 +37,7 @@ scrot
|
|||||||
sed
|
sed
|
||||||
thunar
|
thunar
|
||||||
thunderbird
|
thunderbird
|
||||||
|
units
|
||||||
vi
|
vi
|
||||||
virtualbox
|
virtualbox
|
||||||
vlc
|
vlc
|
||||||
|
Loading…
Reference in New Issue
Block a user