Update 2022-12-11 11:55 OpenBSD/amd64

This commit is contained in:
c0dev0id 2022-12-11 11:55:10 +01:00
parent c88774570e
commit 0a3e45302e
5 changed files with 22 additions and 8 deletions

View File

@ -94,6 +94,7 @@ void update_battery() {
int main(int argc, const char *argv[])
{
setlocale(LC_CTYPE, "C");
setlocale(LC_ALL, "en_US.UTF-8");
const wchar_t sep = 0xE621; // 
@ -117,9 +118,8 @@ int main(int argc, const char *argv[])
sep, fan, fan_speed,
sep, freq, cpu_base_speed, cpu_avg_speed,
sep, time);
fflush(stdout);
sleep(5);
sleep(2);
}
return 0;
}

View File

@ -61,7 +61,9 @@ CPAN
Crates.io
DuckDuckGo Web Search
DuckDuckGo Image Search
GLIB Documentation
Github
LibSOUP Documentation
Marc Info MessageID
Marc Info OpenBSD Misc List
Marc Info OpenBSD Ports CVS
@ -85,6 +87,8 @@ Youtube"
http*) DEFAULT="OPEN (default)"; ;;
192.168.*) DEFAULT="OPEN (default)"; ;;
gopher*) DEFAULT="OPEN (default)"; ;;
g_*) DEFAULT="GLIB Documentation"; ;;
[Ss]oup_*) DEFAULT="LibSOUP Documentation"; ;;
www.*) DEFAULT="OPEN (default)"; ;;
\<*@*\>) DEFAULT="Marc Info Message ID (default)"; ;;
*.com|*.de|*.net|*.org) DEFAULT="OPEN (default)"; ;;
@ -103,6 +107,8 @@ Youtube"
CPAN*) URI="https://metacpan.org/search?q=${C}"; ;;
Crate*) URI="https://crates.io/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}"; ;;
D*Web*) URI="https://html.duckduckgo.com/html?q=${C}"; ;;
D*Ima*) URI="https://duckduckgo.com/?q=${C}&iax=images&ia=images"; ;;

View File

@ -15,9 +15,10 @@ case $SEL in
Documents)
DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25)
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
View) mupdf "$PIMDIR/documents/$DOC" ;;
Copy) echo "$PIMDIR/documents/$DOC" | xclip ;;
Edit) pdfarranger "$PIMDIR/documents/$DOC" ;;
Email) texec "mutt -a \"$PIMDIR/documents/$DOC\"" ;;
Delete) mkdir -p /tmp/deleted_documents; mv "$PIMDIR/documents/$DOC" /tmp/deleted_documents/; ;;

View File

@ -16,7 +16,7 @@ bar_font_color = rgb:99/99/99
bar_font_color_selected = rgb:ff/ff/ff
bar_font = FuraCodeNerdFont-11
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
workspace_indicator = listall,markcurrent,markactive,markempty,noindexes
workspace_mark_current = ''

View File

@ -58,12 +58,9 @@ let c_space_errors=1
let c_gnu=1
let c_comment_strings=1
let c_curly_error=1
set makeprg=make\ %:r
"set makeprg=cc\ -o\ %:r\ %
set autowrite
" Work scripts
nnoremap mm :w\|!make<CR>
" TEMPORARY FILES
set undofile
set undodir=~/.local/vim/undo//
@ -192,6 +189,16 @@ let g:tagbar_ctags_bin = "ectags"
xmap 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
nnoremap <silent> <Tab> :call TogglePaste()<CR>
let g:paste=0