Browse Source

Initial commit from nzxt-arch

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
697ab96e13
  1. 5
      aliases/zsh_aliases
  2. 2
      change-sink.sh
  3. 27
      configs/i3/config
  4. 2
      configs/ranger/rc.conf
  5. 2
      dotfiles/Xresources
  6. 4
      dotfiles/zshrc
  7. 1
      key_dirs.txt

5
aliases/zsh_aliases

@ -68,6 +68,7 @@ alias "f."="f .."
alias "f.."="f ..." alias "f.."="f ..."
function mvd() { mv $1 ~/Downloads ; } function mvd() { mv $1 ~/Downloads ; }
alias lhd="sudo fdisk -l"
# }}} directory-related # # }}} directory-related #
@ -113,6 +114,7 @@ function aptr() { sudo apt remove $1 ; }
function pac() { sudo pacman -S $1 ; } function pac() { sudo pacman -S $1 ; }
function pcr() { sudo pacman -Rs $1 ; } function pcr() { sudo pacman -Rs $1 ; }
alias aptu="sudo apt upgrade" alias aptu="sudo apt upgrade"
# }}} system # # }}} system #
# config files {{{ # # config files {{{ #
@ -134,7 +136,7 @@ function vsnp() { ni ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
# applications {{{ # # applications {{{ #
silent="> /dev/null 2>&1& " silent="> /dev/null 2>&1& "
alias r="ranger"
alias rg="ranger"
alias mr="man ranger" alias mr="man ranger"
# okular # okular
# function ok() { nohup okular $1 > /dev/null 2>&1& ; } # function ok() { nohup okular $1 > /dev/null 2>&1& ; }
@ -154,6 +156,7 @@ function auc() { xdotool click --repeat 1000000 --delay $1 1 ; }
# alias kauc="pkill -f xdotool" # alias kauc="pkill -f xdotool"
# alias rsl="java -jar ~/Downloads/RuneLite.jar" # alias rsl="java -jar ~/Downloads/RuneLite.jar"
alias swex="sudo nohup ~/Downloads/swex.appimage $silent" alias swex="sudo nohup ~/Downloads/swex.appimage $silent"
alias h="htop"
alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3" alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3"
alias rmsw="rm .sw*" alias rmsw="rm .sw*"

2
change-sink.sh

@ -2,7 +2,7 @@
#Device name variable #Device name variable
if [ $1 = "dac" ]; then if [ $1 = "dac" ]; then
devicename="alsa_output.usb-FiiO_DigiHug_USB_Audio-01.iec958-stereo"
devicename="alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo"
elif [ $1 = "line-out" ]; then elif [ $1 = "line-out" ]; then
devicename="alsa_output.pci-0000_00_14.2.analog-stereo" devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
fi fi

27
configs/i3/config

@ -5,11 +5,10 @@ set $def_term "urxvt"
set $swex "sudo ~/Downloads/swex.appimage" set $swex "sudo ~/Downloads/swex.appimage"
exec redshift -O 2000 exec redshift -O 2000
# random bg # random bg
# exec wal -i "$HOME/Pictures/Backgrounds/dim"
exec wal -i "$HOME/Pictures/Backgrounds/dim"
exec imwheel exec imwheel
exec xmodmap ~/.Xmodmap exec xmodmap ~/.Xmodmap
exec xrdb ~/.Xresources exec xrdb ~/.Xresources
exec wal -i "$HOME/Pictures/van.png"
exec --no-startup-id start-pulseaudio-x11 exec --no-startup-id start-pulseaudio-x11
exec --no-startup-id i3-msg 'workspace $ws2; exec $def_term' exec --no-startup-id i3-msg 'workspace $ws2; exec $def_term'
exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser'
@ -151,7 +150,7 @@ bindsym $mod+a focus parent
# workspace {{{ # # workspace {{{ #
# ws names {{{ # # ws names {{{ #
set $samsung "DVI-I-1" set $samsung "DVI-I-1"
set $benq "HDMI-0"
set $benq "HDMI-1"
set $ws1 "1 " set $ws1 "1 "
workspace $ws1 output $benq workspace $ws1 output $benq
@ -293,12 +292,22 @@ bindsym control+shift+0 gaps inner all set 0;gaps outer all set 0
# finds out, if available) # finds out, if available)
set $sb_font Hack NF Bold set $sb_font Hack NF Bold
bar { bar {
font pango:$sb_font 27
tray_output none
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
output eDP1
wheel_up_cmd nop
wheel_down_cmd nop
font pango:$sb_font 20
tray_output none
status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
output $benq
wheel_up_cmd nop
wheel_down_cmd nop
}
bar {
output $samsung
status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf
tray_output none
font pango:$sb_font 23
# font pango:monospace 22, FontAwesome 22
wheel_up_cmd nop
wheel_down_cmd nop
} }
# }}} status bar # # }}} status bar #

2
configs/ranger/rc.conf

@ -668,7 +668,7 @@ map R chain shell nvim -p ~/.config/ranger/rc.conf %rangerdir/config/rc.conf; so
map rr source ~/.config/ranger/rc.conf map rr source ~/.config/ranger/rc.conf
# backgrounds # backgrounds
map w shell ~/.local/bin/wal -i %f
map w shell /usr/bin/wal -i %f
map md shell mv %f dim map md shell mv %f dim
map mb shell mv %f vibrant map mb shell mv %f vibrant

2
dotfiles/Xresources

@ -1,4 +1,4 @@
URxvt.font: xft:Hack Nerd Font:size=18
URxvt.font: xft:Hack Nerd Font:size=14
! URxvt.font: xft:Hack NF:size=18 ! URxvt.font: xft:Hack NF:size=18
! URxvt.font: xft:Hack:size=18 ! URxvt.font: xft:Hack:size=18

4
dotfiles/zshrc

@ -10,8 +10,8 @@
# Set name of the theme to load. Optionally, if you set this to "random" # Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded. # it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="muse"
ZSH_THEME="miloshadzic"
# ZSH_THEME="miloshadzic"
ZSH_THEME="bira"
# Set list of themes to load # Set list of themes to load
# Setting this variable when ZSH_THEME=random # Setting this variable when ZSH_THEME=random

1
key_dirs.txt

@ -5,6 +5,7 @@ d ~/Downloads
D ~/Documents D ~/Documents
ho ~/ ho ~/
lc ~/linux-config/ lc ~/linux-config/
m /run/media
ro / ro /
# }}} sys * # }}} sys *

Loading…
Cancel
Save