dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 33f9d6303b71ecfcd805d73bc3b6307ba0215c2e
parent db6ca1291b51412bbdc1572d0d3a9a56f547e407
Author: Cem Keylan <warc1998@gmail.com>
Date:   Mon,  3 Jun 2019 01:11:55 +0300

Update

Diffstat:
M.bashrc | 5++++-
M.config/i3/config | 2+-
M.config/polybar/config | 6+++---
Abin/checktoday | 10++++++++++
Mbin/dwatch | 1+
Mbin/nightmodetoggle | 2+-
Mbin/todo | 11++++++++---
Mbin/yousure | 2+-
8 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -123,7 +123,8 @@ shopt -s expand_aliases # Enable history appending instead of overwriting. #139609 shopt -s histappend -HISTSIZE= HISTFILESIZE= +HISTSIZE=-1 +HISTFILESIZE=-1 # # # ex - archive extractor # # usage: ex <file> @@ -164,3 +165,5 @@ export BROWSER="qutebrowser" export XDG_CONFIG_HOME=$HOME/.config export PATH=$HOME/.vim/bundle/vim-live-latex-preview/bin/:$PATH set -o vi +export VIMUP=TRUE +export CALCURSE=TRUE diff --git a/.config/i3/config b/.config/i3/config @@ -168,7 +168,7 @@ bindsym $mod+r mode "resize" # Auto Locking -exec --no-startup-id xautolock -time 10 -locker 'i3lock -i /home/cem/background2.png' +exec --no-startup-id xautolock -time 10 -locker 'i3lock-fancy' # Pulse Audio controls bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% && mpv /usr/share/sounds/LinuxMint/stereo/volume.oga #increase sound volume diff --git a/.config/polybar/config b/.config/polybar/config @@ -380,9 +380,9 @@ format-disconnected = type = custom/text content =  -click-left = terminator -e calcurse && exit -click-middle = terminator -e calcurse && exit -click-right = terminator -e calcurse && exit +click-left = notify-send "Weekly Summary" "$(calcurse -Q --days 7)" +click-middle = notify-send "Weekly Summary" "$(calcurse -Q --days 7)" +click-right = notify-send "Weekly Summary" "$(calcurse -Q --days 7)" [module/mailcheck] ; You should probably delete this diff --git a/bin/checktoday b/bin/checktoday @@ -0,0 +1,10 @@ +#!/bin/sh + +COMM=$(calcurse --appointment) + +if [ "$COMM" = "" ] +then + exit +else + notify-send "Today" "$COMM" +fi diff --git a/bin/dwatch b/bin/dwatch @@ -6,4 +6,5 @@ then exit else mpv $HOME/.watchlater/"$VID" >/dev/null 2>&1 & + notify-send -u low "MPV" "Now Watching:\n$VID" fi diff --git a/bin/nightmodetoggle b/bin/nightmodetoggle @@ -26,7 +26,7 @@ then then exit else - if [ `date +%H%M` -gt "1859" ] || [ `date +%H%M` -lt "0600" ] + if [ `date +%H%M` -gt "1959" ] || [ `date +%H%M` -lt "0600" ] then printf "CLICK=0\nNIGHT=1" > $HOME/.night else diff --git a/bin/todo b/bin/todo @@ -1,8 +1,13 @@ #!/bin/sh -if [ -s $HOME/todo.txt ] +if [ "$CALCURSE" = "" ] then - echo "$(head -n 1 $HOME/todo.txt) " + if [ -s $HOME/todo.txt ] + then + echo "$(head -n 1 $HOME/todo.txt) " + else + echo "Nothing to do!" + fi else - echo "Nothing to do!" + calcurse -Q | sed 1d - | head -n 1 - | cut -c 4- fi diff --git a/bin/yousure b/bin/yousure @@ -2,7 +2,7 @@ if [ $(printf 'No\nYes' | dmenu -p 'Are you sure you want to shutdown?') = 'Yes' ] then - shutdown -P now + systemctl poweroff else exit fi