many changes

This commit is contained in:
inigoortega 2019-11-27 21:48:59 +01:00
parent 9a0eedb3b6
commit 1da5d0622b
19 changed files with 117 additions and 47 deletions

View File

@ -1,6 +1,9 @@
!! Transparency (0-1):
!! st.alpha: 1
XTerm*background: black
XTerm*foreground: grey88
!! Set a default font and font size as below:
!! st.font: Noto Sans Mono-14;
!! *.font: mono:pixelsize=16:antialias=true:autohint=true;

View File

@ -20,6 +20,7 @@ application/x-extension-shtml=userapp-Firefox-FNKN6Z.desktop
application/xhtml+xml=userapp-Firefox-FNKN6Z.desktop
application/x-extension-xhtml=userapp-Firefox-FNKN6Z.desktop
application/x-extension-xht=userapp-Firefox-FNKN6Z.desktop
x-scheme-handler/sgnl=signal-desktop.desktop
[Added Associations]
x-scheme-handler/http=userapp-Pale Moon-S99J5Z.desktop;userapp-Firefox-FNKN6Z.desktop;

View File

@ -8,8 +8,8 @@
show_thumbnail=1
[Window]
width=1278
height=779
width=633
height=747
maximized=0
[Desktop]
@ -61,8 +61,8 @@ main_terminal-b=2
main_save_tabs-b=1
main_exit-key=113
main_exit-keymod=4
panel1_show-s=////home/initega
panel1_show-x=0
panel1_show-s=////home/initega////home/initega/Downloads/Telegram Desktop////opt/lampp/htdocs/ws19t06/images
panel1_show-x=2
panel1_show-key=49
panel1_show-keymod=4
panel1_show-b=1
@ -186,8 +186,8 @@ sortby_type-b=2
sortby_perm-b=2
sortby_owner-b=2
sortby_date-b=2
sortby_ascend-b=1
sortby_descend-b=2
sortby_ascend-b=2
sortby_descend-b=1
sortx_natural-b=1
sortx_case-b=2
sortx_folders-b=1
@ -221,8 +221,11 @@ prop_perm-key=112
prop_perm-keymod=4
panel1_show_toolbox-b=1
panel1_show_devmon-b=2
panel1_show_dirtree-b=1
panel1_show_book-b=2
panel1_show_sidebar-b=2
panel1_list_detailed-x=0
panel1_list_detailed-y=1
panel1_list_detailed-b=1
panel1_show_hidden-key=104
panel1_show_hidden-keymod=4

View File

@ -5,15 +5,16 @@
# If you delete all session* files, SpaceFM will be reset to factory defaults.
[General]
show_thumbnail=1
[Window]
width=1278
height=779
width=633
height=765
maximized=0
[Desktop]
bg1=4656,4125,12014
bg2=0,0,0
bg2=2430,51817,32654
text=65535,65535,65535
shadow=0,0,0
@ -54,14 +55,14 @@ move_dlg_confirm_create-b=1
status_info-b=1
main_new_window-key=110
main_new_window-keymod=4
main_terminal-s=xterm
main_terminal-s=st
main_terminal-key=65473
main_terminal-b=1
main_terminal-b=2
main_save_tabs-b=1
main_exit-key=113
main_exit-keymod=4
panel1_show-s=////home/initega
panel1_show-x=0
panel1_show-s=////home/initega////home/initega/Downloads/Telegram Desktop////opt/lampp/htdocs/ws19t06/images
panel1_show-x=2
panel1_show-key=49
panel1_show-keymod=4
panel1_show-b=1
@ -81,6 +82,7 @@ main_full-key=65480
main_full-b=2
main_tool-child=cstm_343ee2b4
root_bar-b=1
view_thumb-b=1
plug_cverb-b=1
main_help-key=65470
task_col_status-x=0
@ -184,8 +186,8 @@ sortby_type-b=2
sortby_perm-b=2
sortby_owner-b=2
sortby_date-b=2
sortby_ascend-b=1
sortby_descend-b=2
sortby_ascend-b=2
sortby_descend-b=1
sortx_natural-b=1
sortx_case-b=2
sortx_folders-b=1
@ -219,8 +221,11 @@ prop_perm-key=112
prop_perm-keymod=4
panel1_show_toolbox-b=1
panel1_show_devmon-b=2
panel1_show_dirtree-b=1
panel1_show_book-b=2
panel1_show_sidebar-b=2
panel1_list_detailed-x=0
panel1_list_detailed-y=1
panel1_list_detailed-b=1
panel1_show_hidden-key=104
panel1_show_hidden-keymod=4
@ -295,6 +300,7 @@ dev_single-b=1
su_command-s=/bin/su
gsu_command-s=/usr/bin/ktsuss
editor-s=/usr/local/bin/st -e vim %u
editor-b=1
book_new-key=100
book_new-keymod=4
config_version-s=38
@ -425,4 +431,5 @@ cstm_343ee2b4-task=1
cstm_343ee2b4-task_err=1
cstm_343ee2b4-task_out=1
cstm_343ee2b4-keep=1
drag_action-x=0

View File

@ -5,15 +5,16 @@
# If you delete all session* files, SpaceFM will be reset to factory defaults.
[General]
show_thumbnail=1
[Window]
width=1278
height=779
width=697
height=765
maximized=0
[Desktop]
bg1=4656,4125,12014
bg2=0,0,0
bg2=2430,51817,32654
text=65535,65535,65535
shadow=0,0,0
@ -54,14 +55,14 @@ move_dlg_confirm_create-b=1
status_info-b=1
main_new_window-key=110
main_new_window-keymod=4
main_terminal-s=xterm
main_terminal-s=st
main_terminal-key=65473
main_terminal-b=1
main_terminal-b=2
main_save_tabs-b=1
main_exit-key=113
main_exit-keymod=4
panel1_show-s=////home/initega/mutt-wizard
panel1_show-x=0
panel1_show-s=////home/initega////home/initega/Downloads/Telegram Desktop
panel1_show-x=1
panel1_show-key=49
panel1_show-keymod=4
panel1_show-b=1
@ -81,6 +82,7 @@ main_full-key=65480
main_full-b=2
main_tool-child=cstm_343ee2b4
root_bar-b=1
view_thumb-b=1
plug_cverb-b=1
main_help-key=65470
task_col_status-x=0
@ -184,8 +186,8 @@ sortby_type-b=2
sortby_perm-b=2
sortby_owner-b=2
sortby_date-b=2
sortby_ascend-b=1
sortby_descend-b=2
sortby_ascend-b=2
sortby_descend-b=1
sortx_natural-b=1
sortx_case-b=2
sortx_folders-b=1
@ -221,6 +223,8 @@ panel1_show_toolbox-b=1
panel1_show_devmon-b=2
panel1_show_book-b=2
panel1_show_sidebar-b=2
panel1_list_detailed-x=0
panel1_list_detailed-y=1
panel1_list_detailed-b=1
panel1_show_hidden-key=104
panel1_show_hidden-keymod=4
@ -295,6 +299,7 @@ dev_single-b=1
su_command-s=/bin/su
gsu_command-s=/usr/bin/ktsuss
editor-s=/usr/local/bin/st -e vim %u
editor-b=1
book_new-key=100
book_new-keymod=4
config_version-s=38
@ -425,4 +430,5 @@ cstm_343ee2b4-task=1
cstm_343ee2b4-task_err=1
cstm_343ee2b4-task_out=1
cstm_343ee2b4-keep=1
drag_action-x=0

View File

@ -60,3 +60,12 @@ ctrl + t
alt + shift + h
dash $TSCRIPTS/run-on-terminal.sh "htop"
alt + shift + Return
st
alt + p
dmenu_run
XF86Launch1
dash $SCRIPTS/toggle-select-videos-to-watch.sh

View File

@ -152,6 +152,7 @@ command! make !!make %a
command! mkcd :mkdir %a | cd %a
command! vgrep vim "+grep %a"
command! reload :write | restart
command! jar java -jar %f &
" ------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
[General]
filedialog-path=@Variant(\0\0\0\x11\0\0\0\r/home/initega)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x13\0\0\x4\xff\0\0\x3\x1f\0\0\0\x2\0\0\0\x15\0\0\x4\xfd\0\0\x3\x1d\0\0\0\0\0\0\0\0\x5\0\0\0\0\x2\0\0\0\x15\0\0\x4\xfd\0\0\x3\x1d)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\x4\0\0\0\x17\0\0\x2\xc0\0\0\x3\x17\0\0\0\x6\0\0\0\x19\0\0\x2\xbe\0\0\x3\x15\0\0\0\0\0\0\0\0\x5\0\0\0\0\x6\0\0\0\x19\0\0\x2\xbe\0\0\x3\x15)
[FullScreen]
pos=@Point(0 0)
@ -9,12 +9,12 @@ wide=false
[MainWindow]
adv-controls=0
bgSize=@Size(600 0)
bgSize=@Size(697 694)
pl-dock-status=true
playlist-visible=false
playlistSize=@Size(-1 -1)
status-bar-visible=false
[RecentsMRL]
list=@Invalid()
times=@Invalid()
list=file:///home/initega/Downloads/qBittorrent/Akira%5BAnime%5D%5Bhamlet%5D%5Bwww.DivxTotaL.com%5D/Akira%20%5BSpanish%5D%20Dvdrip.avi
times=543760

27
.vimrc
View File

@ -28,7 +28,7 @@ Plug 'xolox/vim-misc'
Plug 'xolox/vim-easytags'
Plug 'jceb/vim-orgmode'
Plug 'joshdick/onedark.vim'
Plug 'morhetz/gruvbox'
Plug 'gruvbox-community/gruvbox'
Plug 'vim-scripts/ReplaceWithRegister'
Plug 'christoomey/vim-system-copy'
" Plug 'python-mode/python-mode', { 'branch': 'develop' }
@ -64,6 +64,11 @@ Plug 'neovimhaskell/haskell-vim' , { 'for': 'haskell' }
" HTML + php
Plug 'captbaritone/better-indent-support-for-php-with-html'
" Vim Orgmode
Plug 'jceb/vim-orgmode'
Plug 'dhruvasagar/vim-table-mode'
Plug 'tpope/vim-speeddating'
call plug#end()
let g:airline_theme='violet'
@ -100,14 +105,14 @@ let g:tex_flavor='latex'
" Color scheme + syntax
syntax on
:colorscheme gruvbox
colorscheme gruvbox
" CUSTOM CONFIG
" Search down in subforlders
set path+=**
set nocompatible
set encoding=utf-8
syntax enable
" syntax enable
filetype on
filetype plugin indent on
set autoindent
@ -197,7 +202,7 @@ endif
" toggle nerdtree display
map <F3> :NERDTreeToggle<CR>
" open nerdtree with the current file selected
nmap <leader>t :NERDTreeFind<CR>
" nmap <leader>t :NERDTreeFind<CR>
" don;t show these file types
let NERDTreeIgnore = ['\.pyc$', '\.pyo$']
@ -269,8 +274,7 @@ let g:pymode_syntax_highlight_exceptions = g:pymode_syntax_all
let g:pymode_python = 'python'
" nnoremap <leader>p let g:pymode_python = 'python'
" nnoremap <leader>P let g:pymode_python = 'python3'
noremap <buffer> <leader>r :exec '!python' shellescape(@%, 1)<cr>
noremap <buffer> <leader-S>r :exec '!python3' shellescape(@%, 1)<cr>
" noremap <buffer> <leader>r :exec '!python' shellescape(@%, 1)<cr>
let g:gruvbox_contrast_dark='medium'
let g:gruvbox_contrast_light='medium'
@ -340,8 +344,11 @@ nmap ,d :w<CR>:!unix2dos %:p<CR>:edit<CR>
if exists('+colorcolumn')
set colorcolumn=80
endif
:set textwidth=80
:au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
set textwidth=80
" Red after 80th character
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
set tabpagemax=64
@ -373,4 +380,6 @@ let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
let g:haskell_classic_highlighting = 1
" Reload documents
nnoremap <silent> <leader>r :edit!<CR>

View File

@ -16,5 +16,8 @@ xscreensaver -no-splash &
mksh $SCRIPTS/xscreensaverstopper.sh &
xset -b
telegram-desktop &
signal-desktop --start-in-tray &
# RUN WM
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session dwm

View File

@ -1,5 +1,5 @@
# XScreenSaver Preferences File
# Written by xscreensaver-demo 5.42 for initega on Thu Jul 25 16:07:00 2019.
# Written by xscreensaver-demo 5.43 for initega on Sat Oct 26 16:41:25 2019.
# https://www.jwz.org/xscreensaver/
timeout: 0:05:00
@ -277,6 +277,8 @@ programs: \
GL: peepers -root \n\
GL: razzledazzle -root \n\
vfeedback -root \n\
GL: deepstars -root \n\
GL: gravitywell -root \n\
pointerPollTime: 0:00:05

4
bin/x
View File

@ -4,6 +4,10 @@ orig="$(pwd)"
cd "$HOME"
backup="$(cat .xinitrc)"
cp .xinitrc.dwm .xinitrc
startx -- vt1
cd "$orig"

View File

@ -17,11 +17,13 @@ static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char col_green[] = "#28ef36";
static const char col_violet[] = "#8300ae";
static const char col_green[] = "#28ef36";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
/* [SchemeSel] = { col_gray4, col_cyan, col_cyan }, */
[SchemeSel] = { col_gray4, col_cyan, col_violet},
};
/* tagging */
@ -35,12 +37,14 @@ static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 1 << 4, 1, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
{ "Tor Browser", "Navigator",NULL, 1 << 8, 0, -1 },
{ "Tor Browser", "Navigator",NULL, 1 << 7, 0, -1 },
{ "TelegramDesktop", NULL, NULL, 1 << 6, 0, -1 },
{ "Signal", "signal", NULL, 1 << 6, 0, -1 },
{ "Workrave", NULL, NULL, ~0, 1, -1 },
{ "mpv", "gl", NULL, 1 << 5, 0, -1 },
{ "vlc", "vlc", NULL, 1 << 5, 0, -1 },
{ "cmus", NULL, NULL, 1 << 7, 0, -1 },
{ "org-gjt-sp-jedit-jEdit", NULL, NULL, 1 << 4, 0, -1 },
};
/* layout(s) */

Binary file not shown.

Binary file not shown.

View File

@ -33,5 +33,6 @@ do
done
if [ "$i" -lt $iterations ]; then
sleep 0.5
xdotool key alt+7 && xdotool key Return
fi

View File

@ -0,0 +1,11 @@
#!/usr/bin/env sh
stop_file="/tmp/stop-select-videos-to-watch"
if [ ! -e $stop_file ]; then
notify-send "Looking" "Select Video to Watch"
dash $SCRIPTS/select-videos-to-watch.sh
else
notify-send "Stop Looking"
dash $SCRIPTS/stop-select-videos-to-watch.sh
fi

View File

@ -1,13 +1,20 @@
#!/usr/bin/env sh
freq="$(cat /tmp/cpu-freq)"
printf "%b\n" "$freq > 5" | bc -l
while [ $freq -gt 5 ];
iter="1"
while [ $iter -eq "1" ];
do
sleep 5
freq="$(cat /tmp/cpu-freq)"
iter="$(echo "$freq > 5" | bc -l)"
if [ $iter -eq 0 ]; then
sleep 5m
freq="$(cat /tmp/cpu-freq)"
iter="$(echo "$freq > 5" | bc -l)"
else
sleep 2m
fi
done
printf "%b\n" "done"
sleep 10m
$1

View File

@ -1,6 +1,5 @@
#!/usr/bin/env sh
printf "%b\n" "$@" | dmenu
if [ $# -eq 1 ]; then
name="$1"
else