From a16bdfe930d89e1a7fb354b78d16e8742118f76d Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 8 Apr 2023 00:27:03 +0300 Subject: checkers --- bashrc/.bashrc | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 bashrc/.bashrc (limited to 'bashrc/.bashrc') diff --git a/bashrc/.bashrc b/bashrc/.bashrc new file mode 100644 index 0000000..29ab638 --- /dev/null +++ b/bashrc/.bashrc @@ -0,0 +1,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 -- cgit v1.2.3