all repos — dotfiles @ a45b28be9561b909e9bb62f264511aa182b73e8d

linux dotfiles

timesheetctl: change dirs

- change default browser
- add z directory jumper
Prithu Goswami pg@prithu.dev
Sat, 16 Apr 2022 20:31:51 +0530
commit

a45b28be9561b909e9bb62f264511aa182b73e8d

parent

c6fa66c522f0378ea8d34959363a0fc98cce9274

3 files changed, 13 insertions(+), 4 deletions(-)

jump to
M bin/scripts/timesheetctlbin/scripts/timesheetctl

@@ -1,5 +1,6 @@

#!/bin/sh -ts_file="$HOME/docs/org/comono/inspera/timesheet-`date +%Y%m`.csv" +ts_dir="$HOME/docs/org/comono/inspera/timesheets" +ts_file="$ts_dir/timesheet-`date +%Y%m`.csv" make_timesheet() { last_day="$(cal `date '+%m %Y'` | head -n -1 | tail -1 | awk '{print $NF}')" if [[ -f $ts_file ]]
M home/.bashrchome/.bashrc

@@ -28,6 +28,8 @@ fe(){

vim "`fzf -i --reverse --height=40%`" } +[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh + # f - simply cd's into the dir beneath the current f(){

@@ -92,6 +94,8 @@ task modify -in "$@"

fi } +alias colemak="setxkbmap -layout 'us,in' -variant colemak, -option 'grp:shifts_toggle' -option 'ctrl:nocaps'" +alias qwerty="setxkbmap -layout 'us,in' -option 'grp:shifts_toggle' -option 'ctrl:nocaps'" alias cfi="vim ~/.config/i3/config" alias cfz="vim ~/.zshrc" alias cfb="vim ~/.bashrc"

@@ -119,6 +123,9 @@ alias tl="curl -s https://api.kraken.com/0/public/Ticker?pair=XBTUSD | jq -r '.result.XXBTZUSD.c[0]' | cut -d. -f1"

alias tf="terraform" alias tss="timesheetctl s" alias tse="timesheetctl e" +# generate a qrcode from contents of clipboard +alias qrclip="xsel -ob | qrencode -o - | feh --force-aliasing -Z -" +alias b="buku --suggest" #alias ls='ls'

@@ -155,3 +162,4 @@ }

complete -C /usr/bin/terraform terraform [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +
M home/.profilehome/.profile

@@ -1,13 +1,13 @@

export PATH="$PATH:$(du $HOME/bin/ | cut -f2 | tr '\n' ':' | sed 's/:$//')" export EDITOR="/usr/bin/vim" # export BROWSER="/usr/bin/firefox-developer-edition" -export BROWSER="/usr/bin/google-chrome-stable" +export BROWSER="/usr/bin/chromium" export DMENU_ARGS="-nb "#000" -sb "#FFF" -sf "#000" -h 20" export CM_SELECTIONS="clipboard" export TERMINAL="/usr/local/bin/st" export NNN_USE_EDITOR=1 -export NNN_OPENER=rifle -export OPENER=rifle +export NNN_OPENER=xdg-open +export OPENER=xdg-open export PATH="$HOME/.cargo/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"