summaryrefslogtreecommitdiff
path: root/bashrc/.bashrc
blob: 29ab6383934fdd054b1aad6a7dee94a584ca3f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# ~/.bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

export PS1="\W "
export PATH="$PATH:/home/rasmus/.local/scripts"
export EDITOR="vim"


## Aliases
alias ls='ls --color=auto'
alias grep="grep -i --color"
alias c="clear"
alias cal="cal -m"
alias sxiv="sxiv -tb"
alias iv="sxiv -tb ~/pix"
alias update="sudo pacman -Sy archlinux-keyring && sudo pacman -Su"
alias wifi="nmcli connection show"
alias eesti="setxkbmap ee -option caps:ctrl_modifier"
alias usa="setxkbmap us -option caps:ctrl_modifier"
alias vim="nvim"




#alias mute="amixer sset Master mute" # amixer sset Master {toggle|+%5}
alias mute="pamixer -t"
alias curVol="pamixer --get-volume-human"
alias micMute='pamixer --source 1 -t'


alias nett="nmcli device wifi list"
# nmcli device wifi connect SSID or BSSID password /password/


# Server stuff
alias server="ssh root@luhamus.com"
alias sesy="rsync -auP ~/server/site/public/ root@luhamus.com:/var/www/site"
alias digisync="rsync -aP --delete --exclude .git/ /home/rasmus/code/digirannak/ root@luhamus.com:/var/www/site/digirannak"



# Pomodoro


declare -A pomo_options
pomo_options["session"]="45"
pomo_options["break"]="10"

pomodoro () {
  if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
  val=$1
  echo ${pomo_options["$val"]}m
  echo $val | lolcat
  timer ${pomo_options["$val"]}m
  notify-send $val "Done" -i ~/pix/cowboyBebop.jpg 
  fi
}

alias sess="pomodoro 'session'"
alias brk="pomodoro 'break'"


# While opeing bash
#quotes
#echo Remember