Changes.
This commit is contained in:
@@ -15,7 +15,7 @@ bindsym XF86AudioNext exec --no-startup-id mpc next
|
|||||||
# font for window titles. ISO 10646 = Unicode
|
# font for window titles. ISO 10646 = Unicode
|
||||||
font pango:DejaVu Sans Mono 11
|
font pango:DejaVu Sans Mono 11
|
||||||
|
|
||||||
bindsym $mod+o exec --no-startup-id ~/.i3/scripts/monitor/monitor.sh
|
bindsym $mod+o exec --no-startup-id ~/development/projects/xautorandr/xautorandr.sh
|
||||||
|
|
||||||
|
|
||||||
# start i3bar to display a workspace bar (plus the system information i3status
|
# start i3bar to display a workspace bar (plus the system information i3status
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# index of the sink. execute pactl list sinks to get a list
|
# name of the sink. execute pactl list sinks to get a list
|
||||||
SINK=1
|
SINKNAME="alsa_output.pci-0000_00_1b.0.analog-stereo"
|
||||||
|
|
||||||
|
# this is the worst
|
||||||
|
SINK=$(( $(pactl list sinks | grep "Name: " | grep -n "${SINKNAME}" | grep -o "^[[:digit:]]*") -1))
|
||||||
|
|
||||||
getvol() {
|
getvol() {
|
||||||
echo $(pactl list sinks | grep "^[[:space:]]*Volume" | head -n $(( $SINK + 1 )) | tail -n 1 | grep -o "[[:digit:]]*%" | head -n 1 | cut -d "%" -f 1)
|
echo $(pactl list sinks | grep "^[[:space:]]*Volume" | head -n $(( $SINK + 1 )) | tail -n 1 | grep -o "[[:digit:]]*%" | head -n 1 | cut -d "%" -f 1)
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ let g:ycm_autoclose_preview_window_after_completion = 1
|
|||||||
let g:ycm_autoclose_preview_window_after_insertion = 1
|
let g:ycm_autoclose_preview_window_after_insertion = 1
|
||||||
|
|
||||||
set colorcolumn=79
|
set colorcolumn=79
|
||||||
set clipboard=unnamed " enable copying into the clipboard
|
"set clipboard=unnamed " enable copying into the clipboard
|
||||||
|
|
||||||
|
|
||||||
set esckeys " enable cursor keys in insert mode
|
set esckeys " enable cursor keys in insert mode
|
||||||
|
|||||||
16
zsh/zshrc
16
zsh/zshrc
@@ -112,12 +112,28 @@ alias wow="git status"
|
|||||||
alias v="vim"
|
alias v="vim"
|
||||||
alias g="grep"
|
alias g="grep"
|
||||||
|
|
||||||
|
|
||||||
# rebase the current branch onto WTF ARE YOU DOING YOU ARE DRUNNK TO GO BED
|
# rebase the current branch onto WTF ARE YOU DOING YOU ARE DRUNNK TO GO BED
|
||||||
##alias rebase="git rebase -i $(git branch --contains HEAD | grep -v '\*.*' | head -1)"
|
##alias rebase="git rebase -i $(git branch --contains HEAD | grep -v '\*.*' | head -1)"
|
||||||
|
|
||||||
|
|
||||||
### FUNCTIONS
|
### FUNCTIONS
|
||||||
|
|
||||||
|
slideshow() {
|
||||||
|
delay=$1
|
||||||
|
[[ -z "$delay" ]] && { echo "wrong usage" ; return 1 ; }
|
||||||
|
shift
|
||||||
|
[[ -z "$@" ]] && { echo "wrong usage" ; return 1 ; }
|
||||||
|
feh --auto-zoom \
|
||||||
|
--randomize \
|
||||||
|
--recursive \
|
||||||
|
--scale-down \
|
||||||
|
--image-bg black \
|
||||||
|
--draw-filename \
|
||||||
|
--slideshow-delay=$delay \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
function cd() {
|
function cd() {
|
||||||
builtin cd $* && ls
|
builtin cd $* && ls
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user