209-l9 aliases, minor PC changes
Mainly committed so laptop can have l9 aliases.
This commit is contained in:
@@ -19,7 +19,8 @@ alias hst="history"
|
|||||||
alias nf="neofetch"
|
alias nf="neofetch"
|
||||||
alias rur="xrdb ~/.Xresources"
|
alias rur="xrdb ~/.Xresources"
|
||||||
function gvx() { urxvt --help 2>&1 | grep $1 ; }
|
function gvx() { urxvt --help 2>&1 | grep $1 ; }
|
||||||
alias dum="du -B M"
|
# list file sizes in megabytes with depth 1
|
||||||
|
alias dum="du -d 1 -B M"
|
||||||
|
|
||||||
# install deb files
|
# install deb files
|
||||||
function ideb() { sudo dpkg -i $1 ; }
|
function ideb() { sudo dpkg -i $1 ; }
|
||||||
@@ -242,6 +243,7 @@ alias gchm="git checkout master"
|
|||||||
alias gchnw="git checkout -b wip"
|
alias gchnw="git checkout -b wip"
|
||||||
alias gchw="git checkout wip"
|
alias gchw="git checkout wip"
|
||||||
alias gheadm1="git reset --hard HEAD~1"
|
alias gheadm1="git reset --hard HEAD~1"
|
||||||
|
alias glstf="git ls-tree -r HEAD --name-only"
|
||||||
|
|
||||||
# push {{{ #
|
# push {{{ #
|
||||||
alias egc="nvim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
|
alias egc="nvim -c \"set syn=gitcommit\" -c \"set tw=72\" commit-msg.txt"
|
||||||
@@ -249,7 +251,7 @@ alias gst="git stash"
|
|||||||
alias gstp="git stash pop"
|
alias gstp="git stash pop"
|
||||||
|
|
||||||
alias gc="git commit"
|
alias gc="git commit"
|
||||||
alias gcam="git commit --amend"
|
alias gcam="ga && git commit --amend"
|
||||||
# todo: fix
|
# todo: fix
|
||||||
function gcm(){ echo git commit -m \""$1"\" ; }
|
function gcm(){ echo git commit -m \""$1"\" ; }
|
||||||
|
|
||||||
@@ -259,8 +261,7 @@ function psg() {
|
|||||||
git push
|
git push
|
||||||
}
|
}
|
||||||
alias gps="git push"
|
alias gps="git push"
|
||||||
alias gpsfrc="git push --force"
|
alias gpsf="git push --force"
|
||||||
alias gdwip="git push -d origin wip && git branch -D wip"
|
|
||||||
alias gclear="git stash clear"
|
alias gclear="git stash clear"
|
||||||
# }}} push #
|
# }}} push #
|
||||||
|
|
||||||
@@ -281,9 +282,12 @@ alias crm="mrk README.md"
|
|||||||
|
|
||||||
# functions {{{
|
# functions {{{
|
||||||
function gcho() { git checkout $1 ; }
|
function gcho() { git checkout $1 ; }
|
||||||
|
function gchon() { git checkout -b $1 ; }
|
||||||
function gcln() { git clone $1 ; }
|
function gcln() { git clone $1 ; }
|
||||||
function gchp() { git cherry-pick $1 ; }
|
function gchp() { git cherry-pick $1 ; }
|
||||||
|
alias gchpc="git cherry-pick --continue"
|
||||||
|
|
||||||
|
# add multiple push repos
|
||||||
function gremotes() {
|
function gremotes() {
|
||||||
git remote set-url --add --push origin $1
|
git remote set-url --add --push origin $1
|
||||||
git remote set-url --add --push origin $2
|
git remote set-url --add --push origin $2
|
||||||
@@ -300,16 +304,10 @@ function gmrgr() {
|
|||||||
}
|
}
|
||||||
# }}} merge repos #
|
# }}} merge repos #
|
||||||
|
|
||||||
|
# assume file unchanged
|
||||||
function gunc() { git update-index --assume-unchanged $1 ; }
|
function gunc() { git update-index --assume-unchanged $1 ; }
|
||||||
|
# delete branch locally and on server
|
||||||
# pull all {{{ #
|
function grmb() { git push -d origin $1 && git branch -D $1 ; }
|
||||||
function gpla() {
|
|
||||||
cmds="lc snp 9r sch"
|
|
||||||
for cmd in $cmds; do
|
|
||||||
eval $cmd && gst && gpl && gstp && gclear
|
|
||||||
done
|
|
||||||
}
|
|
||||||
# }}} pull all #
|
|
||||||
|
|
||||||
# functions }}}
|
# functions }}}
|
||||||
|
|
||||||
@@ -372,7 +370,7 @@ alias pr3="$cd_school/136/par/3"
|
|||||||
cd_209="f ~/Documents/School/209";
|
cd_209="f ~/Documents/School/209";
|
||||||
alias 209="$cd_209"
|
alias 209="$cd_209"
|
||||||
alias 9r="$cd_209/mokkar"
|
alias 9r="$cd_209/mokkar"
|
||||||
alias l8="$cd_209/mokkar/lab8"
|
alias l9="$cd_209/mokkar/lab9"
|
||||||
alias 9a="$cd_209/mokkar/a3"
|
alias 9a="$cd_209/mokkar/a3"
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
@@ -410,10 +408,12 @@ function run() {
|
|||||||
# }}} compile and run with input file #
|
# }}} compile and run with input file #
|
||||||
|
|
||||||
# temp {{{ #
|
# temp {{{ #
|
||||||
alias m8="make checkpasswd && ./checkpasswd < passwd.in"
|
function m9() {
|
||||||
alias m3="make pfact && ./pfact.out 14"
|
c9 write_test_file.c
|
||||||
function pf() { ./pfact.out $1 ; }
|
./write_test_file.out test.txt
|
||||||
alias 35w="c9 3-5_wait.c && ./3-5_wait.out abc a"
|
od -vtu1 test.txt
|
||||||
|
}
|
||||||
|
alias m92="c9 time_reads.c && ./time_reads.out 1 test.txt"
|
||||||
# }}} temp #
|
# }}} temp #
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
set $def_term "rxvt-unicode"
|
set $def_term "rxvt-unicode"
|
||||||
exec redshift -O 4000
|
exec redshift -O 4000
|
||||||
# random bg
|
# random bg
|
||||||
# exec_always feh -z --bg-fill ~/Pictures/Backgrounds/*
|
exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/vibrant"
|
||||||
# exec_always feh --bg-fill ~/Pictures/Backgrounds/
|
|
||||||
exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
|
|
||||||
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
|
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
|
||||||
exec imwheel
|
exec imwheel
|
||||||
# exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term'
|
# exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term'
|
||||||
@@ -89,9 +87,9 @@ bindsym control+Shift+x kill
|
|||||||
|
|
||||||
# container display {{{ #
|
# container display {{{ #
|
||||||
# backgrounds
|
# backgrounds
|
||||||
# bindsym $mod+g exec feh -z --bg-fill ~/Pictures/Backgrounds/*
|
bindsym $mod+q exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/vibrant"
|
||||||
bindsym $mod+g exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
|
bindsym $mod+w exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/dim"
|
||||||
# bindsym $mod+z exec feh --bg-max ~/Pictures/Backgrounds/deadpool.png
|
bindsym $mod+r exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
|
||||||
bindsym $mod+z exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/sunset-2.jpg"
|
bindsym $mod+z exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/sunset-2.jpg"
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
# enter fullscreen mode for the focused container
|
||||||
@@ -147,6 +145,7 @@ assign [class="Slack"] $ws6
|
|||||||
|
|
||||||
set $ws7 "7 "
|
set $ws7 "7 "
|
||||||
workspace $ws7 output $samsung
|
workspace $ws7 output $samsung
|
||||||
|
bindsym $mod+F7 workspace $ws7; exec $def_term
|
||||||
|
|
||||||
set $ws8 "8 "
|
set $ws8 "8 "
|
||||||
assign [class="jetbrains-"] $ws8
|
assign [class="jetbrains-"] $ws8
|
||||||
@@ -213,10 +212,10 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
|
|||||||
# }}} reload config #
|
# }}} reload config #
|
||||||
|
|
||||||
# resizing windows {{{ #
|
# resizing windows {{{ #
|
||||||
bindsym $mod+control+h resize grow width 10 px or 10 ppt
|
bindsym $mod+control+h resize grow width 3 px or 3 ppt
|
||||||
bindsym $mod+control+k resize grow height 10 px or 10 ppt
|
bindsym $mod+control+k resize grow height 3 px or 3 ppt
|
||||||
bindsym $mod+control+j resize shrink height 10 px or 10 ppt
|
bindsym $mod+control+j resize shrink height 3 px or 3 ppt
|
||||||
bindsym $mod+control+l resize shrink width 10 px or 10 ppt
|
bindsym $mod+control+l resize shrink width 3 px or 3 ppt
|
||||||
# }}} resizing windows #
|
# }}} resizing windows #
|
||||||
|
|
||||||
# gaps {{{ #
|
# gaps {{{ #
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
! URxvt.font: xft:hack:size=14
|
! URxvt.font: xft:hack:size=14
|
||||||
URxvt.font: xft:hack:size=13
|
URxvt.font: xft:hack:size=13
|
||||||
|
|
||||||
/* transparency {{{ */
|
|
||||||
URxvt*inheritPixmap: true
|
URxvt*inheritPixmap: true
|
||||||
URxvt*transparent: true
|
URxvt*transparent: true
|
||||||
! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens
|
! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens
|
||||||
URxvt*shading: 40
|
! URxvt*shading: 30
|
||||||
! URxvt*shading: 20
|
URxvt*shading: 20
|
||||||
/* }}} transparency */
|
|
||||||
|
|
||||||
URxvt.scrollBar: false
|
URxvt.scrollBar: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user