added mail notification
This commit is contained in:
parent
95a25da0f1
commit
2f6c079bb2
17 changed files with 89 additions and 25 deletions
|
@ -4,7 +4,7 @@ dclock*militaryTime: yes
|
||||||
dclock*audioPlay: /usr/bin/sudo
|
dclock*audioPlay: /usr/bin/sudo
|
||||||
dclock*alarmFile: halt
|
dclock*alarmFile: halt
|
||||||
|
|
||||||
XTerm*reverseVideo: false
|
XTerm*reverseVideo: true
|
||||||
XTerm*loginShell: true
|
XTerm*loginShell: true
|
||||||
XTerm*vt100*translations: #override \n\
|
XTerm*vt100*translations: #override \n\
|
||||||
<Key>F9: set-select(toggle) \n\
|
<Key>F9: set-select(toggle) \n\
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
shadow-opacity = 1;
|
shadow-opacity = 0.8;
|
||||||
shadow = true;
|
shadow = true;
|
||||||
shadow-radius = 0;
|
shadow-radius = 0;
|
||||||
shadow-offset-x = -2;
|
shadow-offset-x = -2;
|
||||||
shadow-offset-y = -2;
|
shadow-offset-y = -2;
|
||||||
shadow-ignore-shaped = true;
|
shadow-ignore-shaped = true;
|
||||||
|
|
||||||
shadow-exclude = [ "name = 'Notification'", "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", "class_g = 'Pqiv'", "class_g = 'slop'", "class_g = 'Firefox'", "name = 'xfce4-notifyd'"];
|
shadow-exclude = [ "class_g = 'TelegramDesktop'",
|
||||||
|
"name = 'Notification'",
|
||||||
|
"class_g = 'Conky'",
|
||||||
|
"class_g ?= 'Notify-osd'",
|
||||||
|
"class_g = 'Cairo-clock'",
|
||||||
|
"class_g = 'Pqiv'",
|
||||||
|
"class_g = 'slop'",
|
||||||
|
"class_g = 'Firefox'",
|
||||||
|
"name = 'xfce4-notifyd'"];
|
||||||
|
|
|
@ -89,7 +89,7 @@ set mixer.alsa.device=
|
||||||
set mixer.pulse.restore_volume=1
|
set mixer.pulse.restore_volume=1
|
||||||
set mouse=false
|
set mouse=false
|
||||||
set mpris=false
|
set mpris=false
|
||||||
set output_plugin=alsa
|
set output_plugin=pulse
|
||||||
set passwd=
|
set passwd=
|
||||||
set pl_sort=
|
set pl_sort=
|
||||||
set play_library=false
|
set play_library=false
|
||||||
|
|
|
@ -210,8 +210,8 @@ bindsym $mod+Shift+x exec i3lock -c 222222
|
||||||
bindsym $mod+z [class="Zathura"] scratchpad show
|
bindsym $mod+z [class="Zathura"] scratchpad show
|
||||||
bindsym $mod+u [class="URxvt"] scratchpad show
|
bindsym $mod+u [class="URxvt"] scratchpad show
|
||||||
bindsym $mod+c [title="Android Emulator*"] scratchpad show
|
bindsym $mod+c [title="Android Emulator*"] scratchpad show
|
||||||
bindsym $mod+Shift+w exec zsh ~/.config/i3/scripts/emulator.sh
|
#bindsym $mod+Shift+w exec zsh ~/.config/i3/scripts/emulator.sh
|
||||||
bindsym $mod+Shift+m exec zsh ~/.config/i3/scripts/emulator_snap.sh
|
#bindsym $mod+Shift+m exec zsh ~/.config/i3/scripts/emulator_snap.sh
|
||||||
#bindsym $mod+t exec transset -n `xdotool getwindowfocus getwindowname` --dec 0.2
|
#bindsym $mod+t exec transset -n `xdotool getwindowfocus getwindowname` --dec 0.2
|
||||||
#bindsym $mod+Shift+t exec transset -n `xdotool getwindowfocus getwindowname` --inc 0.2
|
#bindsym $mod+Shift+t exec transset -n `xdotool getwindowfocus getwindowname` --inc 0.2
|
||||||
bindsym $mod+t exec zsh ~/.config/i3/scripts/incop.sh
|
bindsym $mod+t exec zsh ~/.config/i3/scripts/incop.sh
|
||||||
|
@ -223,12 +223,14 @@ bindsym $mod+x move absolute position center
|
||||||
bindsym $mod+i exec xrandr-invert-colors
|
bindsym $mod+i exec xrandr-invert-colors
|
||||||
bindsym $mod+p exec pqiv -c -c -i ~/ANNOTATIONS
|
bindsym $mod+p exec pqiv -c -c -i ~/ANNOTATIONS
|
||||||
bindsym $mod+b exec zsh ~/.config/i3/scripts/screencut.sh
|
bindsym $mod+b exec zsh ~/.config/i3/scripts/screencut.sh
|
||||||
|
bindsym $mod+Shift+w exec ~/.scripts/adbreconnect.sh
|
||||||
|
bindsym $mod+Shift+f exec firefox -P Work -no-remote
|
||||||
|
|
||||||
for_window [class="URxvt" floating] resize set 1400 850
|
for_window [class="URxvt" floating] resize set 1400 850
|
||||||
for_window [class="URxvt"] move absolute position center
|
for_window [class="URxvt"] move absolute position center
|
||||||
for_window [class="Pqiv"] floating enable
|
for_window [class="Pqiv"] floating enable
|
||||||
for_window [class="Dclock"] floating enable
|
for_window [class="Dclock"] floating enable
|
||||||
for_window [title="^Skype$"] floating enable
|
#for_window [title="^Skype$"] floating enable
|
||||||
for_window [title="Typora$"] fullscreen disable
|
for_window [title="Typora$"] fullscreen disable
|
||||||
for_window [title="^Emulator$"] move scratchpad
|
for_window [title="^Emulator$"] move scratchpad
|
||||||
for_window [title="Android Emulator - thePhone:5554"] resize set 375 667
|
for_window [title="Android Emulator - thePhone:5554"] resize set 375 667
|
||||||
|
|
|
@ -10,8 +10,23 @@
|
||||||
#color=#A4C2F4
|
#color=#A4C2F4
|
||||||
|
|
||||||
# exchange rate(s)
|
# exchange rate(s)
|
||||||
[xrate]
|
[xrateEURZAR]
|
||||||
command=~/.config/i3/scripts/xrate.py
|
command=~/.config/i3/scripts/xrate.py EURZAR=X
|
||||||
|
interval=3600
|
||||||
|
color=#A4C2F4
|
||||||
|
|
||||||
|
[xrateSGDZAR]
|
||||||
|
command=~/.config/i3/scripts/xrate.py SGDZAR=X
|
||||||
|
interval=3600
|
||||||
|
color=#A4C2F4
|
||||||
|
|
||||||
|
[xrateEURCHF]
|
||||||
|
command=~/.config/i3/scripts/xrate.py EURCHF=X
|
||||||
|
interval=3600
|
||||||
|
color=#A4C2F4
|
||||||
|
|
||||||
|
[xrateSGDEUR]
|
||||||
|
command=~/.config/i3/scripts/xrate.py SGDEUR=X
|
||||||
interval=3600
|
interval=3600
|
||||||
color=#A4C2F4
|
color=#A4C2F4
|
||||||
|
|
||||||
|
@ -22,6 +37,16 @@ command=curl -s ipinfo.io | awk '/city/ { split($0, e, "\""); print e[4]; }'
|
||||||
interval=3600
|
interval=3600
|
||||||
color=#91E78B
|
color=#91E78B
|
||||||
|
|
||||||
|
[wifi]
|
||||||
|
command=wpa_cli status | grep ^ssid
|
||||||
|
interval=10
|
||||||
|
color=#A4C2F4
|
||||||
|
|
||||||
|
[mail]
|
||||||
|
command=~/.scripts/mailnotify.sh
|
||||||
|
interval=60
|
||||||
|
color=#91E78B
|
||||||
|
|
||||||
# Update time every 5 seconds
|
# Update time every 5 seconds
|
||||||
[time]
|
[time]
|
||||||
command=date +%T
|
command=date +%T
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/zsh
|
|
||||||
emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-snapshot-load
|
|
||||||
#emulator -accel on -avd thePhone -gpu host -camera-back webcam1 -camera-front webcam1 -delay-adb -no-boot-anim -no-window
|
|
||||||
adb kill-server
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/python3.8
|
#!/usr/bin/python3.8
|
||||||
|
|
||||||
import yfinance as yf
|
import yfinance as yf
|
||||||
eurzar = yf.Ticker('EURZAR=X')
|
import sys
|
||||||
|
eurzar = yf.Ticker(sys.argv[1])
|
||||||
print(round(eurzar.history(period="1m").Close.to_list()[0], 4))
|
print(round(eurzar.history(period="1m").Close.to_list()[0], 4))
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
set first-page-column 1:1
|
set first-page-column 1:1
|
||||||
set scroll-hstep 0
|
set scroll-hstep 0
|
||||||
|
set synctex true
|
||||||
|
|
2
.muttrc
2
.muttrc
|
@ -89,3 +89,5 @@ set message_cachedir="~/MAIL/muttmcache/"
|
||||||
set header_cache="~/MAIL/mutthcache/"
|
set header_cache="~/MAIL/mutthcache/"
|
||||||
source ~/MAIL/muttrc.mailboxes
|
source ~/MAIL/muttrc.mailboxes
|
||||||
source ~/MAIL/muttrc.aliases
|
source ~/MAIL/muttrc.aliases
|
||||||
|
alias rianaroux \"Roux, Riana [rianaroux@sun.ac.za]\" <rianaroux@sun.ac.za>
|
||||||
|
alias Dario Dario <20854714@sun.ac.za>
|
||||||
|
|
|
@ -8,7 +8,8 @@ bind C-c exec urxvt
|
||||||
|
|
||||||
exec fbsetroot -solid black
|
exec fbsetroot -solid black
|
||||||
exec xrdb ~/.Xresources
|
exec xrdb ~/.Xresources
|
||||||
exec /usr/lib64/xfce4/notifyd/xfce4-notifyd
|
#exec /usr/lib64/xfce4/notifyd/xfce4-notifyd
|
||||||
|
exec dunst
|
||||||
exec redshift -l -18:33
|
exec redshift -l -18:33
|
||||||
exec unclutter -idle 5 -jitter 20
|
exec unclutter -idle 5 -jitter 20
|
||||||
#exec /usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333"
|
#exec /usr/bin/xbattbar -a -c -t 2 -I "#333333" -O white -i white -o "#333333"
|
||||||
|
|
|
@ -1 +1,6 @@
|
||||||
%colors Linux
|
%colors Linux
|
||||||
|
|
||||||
|
def division(dividend, divisor):
|
||||||
|
return (dividend._maxima_().divide(divisor).sage())
|
||||||
|
|
||||||
|
#for pole in (1/f == 0).solve(z):f(z).maxima_methods().residue(z,pole.rhs())
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
adb root && adb shell svc data disable && adb shell svc data enable
|
adb root
|
||||||
|
adb shell svc data disable && adb shell svc wifi disable
|
||||||
|
adb shell svc data enable && adb shell svc data enable
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
export ANDROID_SDK=/opt/android-sdk-update-manager
|
||||||
|
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
|
||||||
|
|
||||||
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -no-snapshot-load -detect-image-hang
|
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -no-snapshot-load -detect-image-hang
|
||||||
emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -detect-image-hang -use-system-libs -cores 4
|
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window -no-snapshot-load -detect-image-hang -use-system-libs -cores 4
|
||||||
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window
|
#emulator -accel on -avd thePhone -gpu host -delay-adb -no-boot-anim -no-window
|
||||||
|
|
||||||
|
emulator -accel on -avd thePhone -gpu host -no-boot-anim -no-window -no-snapshot-load
|
||||||
|
|
||||||
adb kill-server
|
adb kill-server
|
||||||
|
|
8
.scripts/mailnotify.sh
Executable file
8
.scripts/mailnotify.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ml="$(find $HOME/MAIL/offlineIMAP/*/INBOX/new -type f | wc -l)"
|
||||||
|
if (( ml > 0 )); then
|
||||||
|
echo $ml
|
||||||
|
else
|
||||||
|
echo "0"
|
||||||
|
fi
|
|
@ -283,7 +283,7 @@ nl_assign_leave_one_liners = false
|
||||||
nl_class_leave_one_liners = false
|
nl_class_leave_one_liners = false
|
||||||
nl_enum_leave_one_liners = false
|
nl_enum_leave_one_liners = false
|
||||||
nl_getset_leave_one_liners = false
|
nl_getset_leave_one_liners = false
|
||||||
nl_func_leave_one_liners = true
|
nl_func_leave_one_liners = false
|
||||||
nl_cpp_lambda_leave_one_liners = false
|
nl_cpp_lambda_leave_one_liners = false
|
||||||
nl_if_leave_one_liners = true
|
nl_if_leave_one_liners = true
|
||||||
nl_while_leave_one_liners = true
|
nl_while_leave_one_liners = true
|
||||||
|
@ -469,12 +469,12 @@ pos_constr_comma = ignore
|
||||||
pos_class_colon = ignore
|
pos_class_colon = ignore
|
||||||
pos_constr_colon = ignore
|
pos_constr_colon = ignore
|
||||||
code_width = 80
|
code_width = 80
|
||||||
ls_for_split_full = false
|
ls_for_split_full = true
|
||||||
ls_func_split_full = false
|
ls_func_split_full = true
|
||||||
ls_code_width = false
|
ls_code_width = true
|
||||||
align_keep_tabs = false
|
align_keep_tabs = false
|
||||||
align_with_tabs = false
|
align_with_tabs = true
|
||||||
align_on_tabstop = false
|
align_on_tabstop = true
|
||||||
align_number_right = false
|
align_number_right = false
|
||||||
align_keep_extra_space = false
|
align_keep_extra_space = false
|
||||||
align_func_params = false
|
align_func_params = false
|
||||||
|
@ -590,7 +590,7 @@ pp_indent = ignore
|
||||||
pp_indent_at_level = false
|
pp_indent_at_level = false
|
||||||
pp_indent_count = 1
|
pp_indent_count = 1
|
||||||
pp_space = ignore
|
pp_space = ignore
|
||||||
pp_space_count = 0
|
pp_space_count = 1
|
||||||
pp_indent_region = 0
|
pp_indent_region = 0
|
||||||
pp_region_indent_code = false
|
pp_region_indent_code = false
|
||||||
pp_indent_if = 0
|
pp_indent_if = 0
|
||||||
|
|
8
.vimrc
8
.vimrc
|
@ -33,6 +33,8 @@ set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣
|
||||||
set textwidth=80
|
set textwidth=80
|
||||||
set tags=./tags,./TAGS,tags,TAGS
|
set tags=./tags,./TAGS,tags,TAGS
|
||||||
|
|
||||||
|
set nojoinspaces
|
||||||
|
|
||||||
map gn :bn<cr>
|
map gn :bn<cr>
|
||||||
map gp :bp<cr>
|
map gp :bp<cr>
|
||||||
"map <C-m> <Esc>"zyiw :tjump <C-r>z<cr>
|
"map <C-m> <Esc>"zyiw :tjump <C-r>z<cr>
|
||||||
|
@ -165,6 +167,8 @@ let g:syntastic_tex_lacheck_quiet_messages = {"regex": ['.*unmatched.*',
|
||||||
map <C-h><C-h> :lprev<CR>
|
map <C-h><C-h> :lprev<CR>
|
||||||
map <C-j><C-j> :lnext<CR>
|
map <C-j><C-j> :lnext<CR>
|
||||||
|
|
||||||
|
autocmd FileType c set formatprg=uncrustify\ -l\ c\ --frag\ -q
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""" VIMUX """""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""" VIMUX """""""""""""""""""""""""""""""""""
|
||||||
"https://github.com/preservim/vimux.git
|
"https://github.com/preservim/vimux.git
|
||||||
|
|
||||||
|
@ -210,11 +214,13 @@ let g:Tex_Com_std = "\\title{}\n\\author{}\n\\date{}\n\\documentclass[a4paper,"
|
||||||
autocmd BufNewFile,BufRead *.tex set syntax=plaintex
|
autocmd BufNewFile,BufRead *.tex set syntax=plaintex
|
||||||
autocmd BufNewFile,BufRead *.tex syntax match Comment "%.*"
|
autocmd BufNewFile,BufRead *.tex syntax match Comment "%.*"
|
||||||
autocmd BufNewFile,BufRead *.tex set textwidth=80
|
autocmd BufNewFile,BufRead *.tex set textwidth=80
|
||||||
|
autocmd BufNewFile,BufRead *.tex let g:syntastic_auto_jump = 0
|
||||||
|
|
||||||
imap <C-l><C-o> :let b:Imap_FreezeImap = 1<CR>
|
imap <C-l><C-o> :let b:Imap_FreezeImap = 1<CR>
|
||||||
imap <C-l><C-u> :let b:Imap_FreezeImap = 0<CR>
|
imap <C-l><C-u> :let b:Imap_FreezeImap = 0<CR>
|
||||||
imap <C-l><C-n> <ESC>:w<CR>:!pdflatex %<CR>
|
imap <C-l><C-n> <ESC>:w<CR>:!pdflatex %<CR>
|
||||||
nmap <C-l><C-n> :w<CR>:!pdflatex --shell-escape %<CR>
|
"nmap <C-l><C-n> :w<CR>:!pdflatex --shell-escape %<CR>
|
||||||
|
nmap <C-l><C-n> :w<CR>:!pdflatex %<CR>
|
||||||
nmap <C-l><C-z> :!zathura $(basename % .tex).pdf &<CR>
|
nmap <C-l><C-z> :!zathura $(basename % .tex).pdf &<CR>
|
||||||
imap <C-l><C-m> <ESC>:w<CR>:!biber -E utf8 $(basename % .tex)<CR>
|
imap <C-l><C-m> <ESC>:w<CR>:!biber -E utf8 $(basename % .tex)<CR>
|
||||||
nmap <C-l><C-m> :w<CR>:!biber -E utf8 $(basename % .tex)<CR>
|
nmap <C-l><C-m> :w<CR>:!biber -E utf8 $(basename % .tex)<CR>
|
||||||
|
|
1
.zshrc
1
.zshrc
|
@ -29,6 +29,7 @@ export VISUAL=vim
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export SCIPY_PIL_IMAGE_VIEWER=imv
|
export SCIPY_PIL_IMAGE_VIEWER=imv
|
||||||
export CHKTEXRC=~
|
export CHKTEXRC=~
|
||||||
|
export SAGE_BROWSER=/usr/bin/firefox
|
||||||
|
|
||||||
autoload -z edit-command-line
|
autoload -z edit-command-line
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
|
|
Loading…
Reference in a new issue