Browse Source

"True" bg Okular fxn, Git/laptop changes

laptop:
- connect lab monitor alias
- mute key
- wi-fi symbol/name (i3blocks)

Git:
- checkout file
- continue cherry-pick
- checkout new branch
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
fc64617644
  1. 9
      aliases/zsh_aliases
  2. 20
      configs/X1-Carbon/i3/config
  3. 2
      configs/X1-Carbon/i3blocks/i3blocks.conf
  4. 2
      configs/X1-Carbon/ranger/rc.conf
  5. 2
      configs/i3blocks-scripts/battery
  6. 4
      configs/i3blocks-scripts/wifi
  7. 2
      dotfiles/Xresources

9
aliases/zsh_aliases

@ -100,7 +100,7 @@ alias tm="ni $usnp_dir/texmath.snippets"
# applications {{{ # # applications {{{ #
alias rg="ranger" alias rg="ranger"
function ok() { okular $1 & ; }
function ok() { nohup okular $1 > /dev/null 2>&1& ; }
function chr() { google-chrome $1 ; } function chr() { google-chrome $1 ; }
function ni() { nvim $1 ; } function ni() { nvim $1 ; }
function sni() { sudo nvim $1 ; } function sni() { sudo nvim $1 ; }
@ -211,6 +211,9 @@ if [[ "$(hostname)" = "X1-Carbon" ]]; then
alias gbl="xbacklight -get" alias gbl="xbacklight -get"
function bl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; } function bl() { xbacklight -set $(echo "scale=2;$1*10" | bc) ; }
alias labm="xrandr --auto && xrandr --output HDMI2 --right-of eDP1 --dpi 100"
alias vlm="alsamixer -c 1"
alias thn="thunar ." alias thn="thunar ."
alias plz="f ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader" alias plz="f ~/platterz2018/ocr-reader/app/src/main/java/com/google/android/gms/samples/vision/ocrreader"
@ -222,7 +225,7 @@ fi
# git {{{ # # git {{{ #
# aliases {{{ # aliases {{{
alias gstore="git config credential.helper store"
alias gstr="git config credential.helper store"
# add {{{ # # add {{{ #
alias ga="git add -A . && gs" alias ga="git add -A . && gs"
@ -283,6 +286,8 @@ alias crm="mrk README.md"
# functions {{{ # functions {{{
function gcho() { git checkout $1 ; } function gcho() { git checkout $1 ; }
function gchon() { git checkout -b $1 ; } function gchon() { git checkout -b $1 ; }
function gchof() { git checkout $1 $2 ; }
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" alias gchpc="git cherry-pick --continue"

20
configs/X1-Carbon/i3/config

@ -1,8 +1,8 @@
# applications {{{ # # applications {{{ #
# startup {{{ # # startup {{{ #
exec redshift -O 4000
exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/"
# exec redshift -O 4000
exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/vibrant"
# exec_always /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/japan-street.jpg" # exec_always /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/japan-street.jpg"
exec imwheel exec imwheel
exec $def_term exec $def_term
@ -71,7 +71,6 @@ bindsym control+Shift+x kill
# }}} changing/focusing/moving windows # # }}} changing/focusing/moving windows #
# container display {{{ # # container display {{{ #
bindsym $mod+g exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/"
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
@ -95,6 +94,12 @@ bindsym $mod+a focus parent
# }}} container display # # }}} container display #
# workspace {{{ # # workspace {{{ #
# wallpaper
bindsym $mod+q exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/vibrant"
bindsym $mod+w exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/dim"
bindsym $mod+r exec /home/kevin/.local/bin/wal -i "/home/kevin/Pictures/Backgrounds/"
# ws names {{{ # # ws names {{{ #
set $ws1 "1 " set $ws1 "1 "
bindsym F1 workspace $ws1; exec $def_term bindsym F1 workspace $ws1; exec $def_term
@ -112,6 +117,8 @@ bindsym Mod4+d workspace $ws6; exec discord
bindsym Mod4+l workspace $ws6; exec slack bindsym Mod4+l workspace $ws6; exec slack
set $ws7 "7 ↥" set $ws7 "7 ↥"
bindsym $mod+F7 workspace $ws7; exec $def_term
set $ws8 "8 𝅘𝅥𝅮" set $ws8 "8 𝅘𝅥𝅮"
bindsym Mod4+s workspace $ws8; exec spotify bindsym Mod4+s workspace $ws8; exec spotify
@ -186,8 +193,8 @@ bindsym $mod+control+j resize shrink height 10 px or 10 ppt
# gaps {{{ # # gaps {{{ #
for_window [class="^.*"] border pixel 0 for_window [class="^.*"] border pixel 0
gaps inner 30
gaps outer 2
gaps inner 25
gaps outer -3
bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5 bindsym control+shift+plus gaps inner all plus 5;gaps outer all plus 5
bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5 bindsym control+shift+0 gaps inner all minus 5;gaps outer all minus 5
@ -236,7 +243,8 @@ bindsym $mod+control+q exec nmcli radio wifi off
# volume keys {{{ # # volume keys {{{ #
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5%+ bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 sset Master 5%+
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5%- bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 sset Master 5%-
bindsym XF86AudioMute exec --no-startup-id amixer -c 1 amixer -D pulse set Master 1+ toggle
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 2+ toggle
# bindsym XF86AudioMute exec --no-startup-id amixer -c 1 amixer -D pulse set Master 1+ toggle
# }}} volume keys # # }}} volume keys #
# media keys {{{ # # media keys {{{ #

2
configs/X1-Carbon/i3blocks/i3blocks.conf

@ -59,7 +59,7 @@ interval=60
# wifi {{{ # # wifi {{{ #
[wifi] [wifi]
label=🖧
label=
instance=wlp3s0 instance=wlp3s0
interval=5 interval=5
# }}} wifi # # }}} wifi #

2
configs/X1-Carbon/ranger/rc.conf

@ -672,6 +672,8 @@ map rr source ~/.config/ranger/rc.conf
# backgrounds # backgrounds
map bg cd ~/Pictures/Backgrounds map bg cd ~/Pictures/Backgrounds
map wb shell ~/.local/bin/wal -i %f map wb shell ~/.local/bin/wal -i %f
map md shell mv %f dim
map mb shell mv %f vibrant
# bulk rename # bulk rename
map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ") map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")

2
configs/i3blocks-scripts/battery

@ -64,6 +64,8 @@ if ($status eq 'Discharging') {
print "#FFF600\n"; print "#FFF600\n";
} elsif ($percent < 85) { } elsif ($percent < 85) {
print "#A8FF00\n"; print "#A8FF00\n";
} else {
print "#2c9332\n";
} }
if ($percent < 5) { if ($percent < 5) {

4
configs/i3blocks-scripts/wifi

@ -28,10 +28,12 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
#------------------------------------------------------------------------ #------------------------------------------------------------------------
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }') QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
#------------------------------------------------------------------------ #------------------------------------------------------------------------
echo $QUALITY% # full text
echo $QUALITY% "$W_name" # full text
echo $QUALITY% # short text echo $QUALITY% # short text
# color # color

2
dotfiles/Xresources

@ -5,7 +5,7 @@ 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: 30 ! URxvt*shading: 30
URxvt*shading: 20
URxvt*shading: 25
URxvt.scrollBar: false URxvt.scrollBar: false

Loading…
Cancel
Save