Update 2022-12-11 11:55 OpenBSD/amd64
This commit is contained in:
parent
c88774570e
commit
0a3e45302e
@ -94,6 +94,7 @@ void update_battery() {
|
|||||||
|
|
||||||
int main(int argc, const char *argv[])
|
int main(int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
|
setlocale(LC_CTYPE, "C");
|
||||||
setlocale(LC_ALL, "en_US.UTF-8");
|
setlocale(LC_ALL, "en_US.UTF-8");
|
||||||
|
|
||||||
const wchar_t sep = 0xE621; //
|
const wchar_t sep = 0xE621; //
|
||||||
@ -117,9 +118,8 @@ int main(int argc, const char *argv[])
|
|||||||
sep, fan, fan_speed,
|
sep, fan, fan_speed,
|
||||||
sep, freq, cpu_base_speed, cpu_avg_speed,
|
sep, freq, cpu_base_speed, cpu_avg_speed,
|
||||||
sep, time);
|
sep, time);
|
||||||
|
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
sleep(5);
|
sleep(2);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,9 @@ CPAN
|
|||||||
Crates.io
|
Crates.io
|
||||||
DuckDuckGo Web Search
|
DuckDuckGo Web Search
|
||||||
DuckDuckGo Image Search
|
DuckDuckGo Image Search
|
||||||
|
GLIB Documentation
|
||||||
Github
|
Github
|
||||||
|
LibSOUP Documentation
|
||||||
Marc Info MessageID
|
Marc Info MessageID
|
||||||
Marc Info OpenBSD Misc List
|
Marc Info OpenBSD Misc List
|
||||||
Marc Info OpenBSD Ports CVS
|
Marc Info OpenBSD Ports CVS
|
||||||
@ -85,6 +87,8 @@ Youtube"
|
|||||||
http*) DEFAULT="OPEN (default)"; ;;
|
http*) DEFAULT="OPEN (default)"; ;;
|
||||||
192.168.*) DEFAULT="OPEN (default)"; ;;
|
192.168.*) DEFAULT="OPEN (default)"; ;;
|
||||||
gopher*) DEFAULT="OPEN (default)"; ;;
|
gopher*) DEFAULT="OPEN (default)"; ;;
|
||||||
|
g_*) DEFAULT="GLIB Documentation"; ;;
|
||||||
|
[Ss]oup_*) DEFAULT="LibSOUP Documentation"; ;;
|
||||||
www.*) DEFAULT="OPEN (default)"; ;;
|
www.*) DEFAULT="OPEN (default)"; ;;
|
||||||
\<*@*\>) DEFAULT="Marc Info Message ID (default)"; ;;
|
\<*@*\>) DEFAULT="Marc Info Message ID (default)"; ;;
|
||||||
*.com|*.de|*.net|*.org) DEFAULT="OPEN (default)"; ;;
|
*.com|*.de|*.net|*.org) DEFAULT="OPEN (default)"; ;;
|
||||||
@ -103,6 +107,8 @@ Youtube"
|
|||||||
CPAN*) URI="https://metacpan.org/search?q=${C}"; ;;
|
CPAN*) URI="https://metacpan.org/search?q=${C}"; ;;
|
||||||
Crate*) URI="https://crates.io/search?q=${C}"; ;;
|
Crate*) URI="https://crates.io/search?q=${C}"; ;;
|
||||||
Grep*) URI="https://grep.app/search?q=${C}"; ;;
|
Grep*) URI="https://grep.app/search?q=${C}"; ;;
|
||||||
|
GLIB*) URI="https://docs.gtk.org/glib/flags.UriFlags.html?q=${C}"; ;;
|
||||||
|
LibSOUP*) URI="https://libsoup.org/libsoup-3.0/index.html?q=${C}"; ;;
|
||||||
Github) URI="https://github.com/search?q=${C}"; ;;
|
Github) URI="https://github.com/search?q=${C}"; ;;
|
||||||
D*Web*) URI="https://html.duckduckgo.com/html?q=${C}"; ;;
|
D*Web*) URI="https://html.duckduckgo.com/html?q=${C}"; ;;
|
||||||
D*Ima*) URI="https://duckduckgo.com/?q=${C}&iax=images&ia=images"; ;;
|
D*Ima*) URI="https://duckduckgo.com/?q=${C}&iax=images&ia=images"; ;;
|
||||||
|
@ -15,9 +15,10 @@ case $SEL in
|
|||||||
Documents)
|
Documents)
|
||||||
DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25)
|
DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25)
|
||||||
if [ ! -z "$DOC" ]; then
|
if [ ! -z "$DOC" ]; then
|
||||||
ACT=$(printf "View\nEdit\nEmail\nDelete" | $DMENU_CMD -p Action)
|
ACT=$(printf "View\nCopy\nEdit\nEmail\nDelete" | $DMENU_CMD -p Action)
|
||||||
case $ACT in
|
case $ACT in
|
||||||
View) mupdf "$PIMDIR/documents/$DOC" ;;
|
View) mupdf "$PIMDIR/documents/$DOC" ;;
|
||||||
|
Copy) echo "$PIMDIR/documents/$DOC" | xclip ;;
|
||||||
Edit) pdfarranger "$PIMDIR/documents/$DOC" ;;
|
Edit) pdfarranger "$PIMDIR/documents/$DOC" ;;
|
||||||
Email) texec "mutt -a \"$PIMDIR/documents/$DOC\"" ;;
|
Email) texec "mutt -a \"$PIMDIR/documents/$DOC\"" ;;
|
||||||
Delete) mkdir -p /tmp/deleted_documents; mv "$PIMDIR/documents/$DOC" /tmp/deleted_documents/; ;;
|
Delete) mkdir -p /tmp/deleted_documents; mv "$PIMDIR/documents/$DOC" /tmp/deleted_documents/; ;;
|
||||||
|
@ -16,7 +16,7 @@ bar_font_color = rgb:99/99/99
|
|||||||
bar_font_color_selected = rgb:ff/ff/ff
|
bar_font_color_selected = rgb:ff/ff/ff
|
||||||
bar_font = FuraCodeNerdFont-11
|
bar_font = FuraCodeNerdFont-11
|
||||||
bar_font_pua = FuraCodeNerdFont-13
|
bar_font_pua = FuraCodeNerdFont-13
|
||||||
bar_action = ~/.config/spectrwm/shellbar.sh
|
bar_action = cbar
|
||||||
bar_format = +S +L +N +I +M +W +|1R +A %Y-%m-%d %H:%M
|
bar_format = +S +L +N +I +M +W +|1R +A %Y-%m-%d %H:%M
|
||||||
workspace_indicator = listall,markcurrent,markactive,markempty,noindexes
|
workspace_indicator = listall,markcurrent,markactive,markempty,noindexes
|
||||||
workspace_mark_current = ''
|
workspace_mark_current = ''
|
||||||
|
15
.vim/vimrc
15
.vim/vimrc
@ -58,12 +58,9 @@ let c_space_errors=1
|
|||||||
let c_gnu=1
|
let c_gnu=1
|
||||||
let c_comment_strings=1
|
let c_comment_strings=1
|
||||||
let c_curly_error=1
|
let c_curly_error=1
|
||||||
set makeprg=make\ %:r
|
"set makeprg=cc\ -o\ %:r\ %
|
||||||
set autowrite
|
set autowrite
|
||||||
|
|
||||||
" Work scripts
|
|
||||||
nnoremap mm :w\|!make<CR>
|
|
||||||
|
|
||||||
" TEMPORARY FILES
|
" TEMPORARY FILES
|
||||||
set undofile
|
set undofile
|
||||||
set undodir=~/.local/vim/undo//
|
set undodir=~/.local/vim/undo//
|
||||||
@ -192,6 +189,16 @@ let g:tagbar_ctags_bin = "ectags"
|
|||||||
xmap ga <Plug>(EasyAlign)
|
xmap ga <Plug>(EasyAlign)
|
||||||
nmap ga <Plug>(EasyAlign)
|
nmap ga <Plug>(EasyAlign)
|
||||||
|
|
||||||
|
" Compile Stuff
|
||||||
|
nnoremap mm :call MyMake()<CR>
|
||||||
|
function MyMake()
|
||||||
|
if filereadable("Makefile")
|
||||||
|
:!make
|
||||||
|
else
|
||||||
|
:!cc -o %:p:r %:p && %:p:r
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
" CUSTOM: NO CLUTTER PASTE MODE
|
" CUSTOM: NO CLUTTER PASTE MODE
|
||||||
nnoremap <silent> <Tab> :call TogglePaste()<CR>
|
nnoremap <silent> <Tab> :call TogglePaste()<CR>
|
||||||
let g:paste=0
|
let g:paste=0
|
||||||
|
Loading…
Reference in New Issue
Block a user