From d9f90cbe3954a735446e059cd6148dfb8f1b6fe3 Mon Sep 17 00:00:00 2001 From: Krrish Ghimire Date: Mon, 18 Jul 2022 15:44:39 +0545 Subject: [PATCH] update configs --- newsboat/urls | 23 ++++++++++------------- vim/vimrc | 10 ++++++++-- xmonad/xmonad.hs | 12 +++++++----- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/newsboat/urls b/newsboat/urls index 121c4d5..91d3fd1 100644 --- a/newsboat/urls +++ b/newsboat/urls @@ -1,7 +1,5 @@ "query:Starred:flags # \"a\"" -http://chesslevel0.blogspot.com/feeds/posts/default "chess" -http://chessplayeratlarge.blogspot.com/feeds/posts/default "chess" https://lukesmith.xyz/rss.xml "blog" https://videos.lukesmith.xyz/feeds/videos.xml?accountId=3 "peertube" "~Luke Smith (Peertube) https://lukesmith.xyz/youtube.xml "youtube" "~Luke Smith (Youtube)" @@ -22,22 +20,21 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCcYzLCs3zrQIBVHYA1sK2sw "yo https://www.youtube.com/feeds/videos.xml?channel_id=UCS0s6BFzIcvC2gTH52_vBEA "youtube" https://www.youtube.com/feeds/videos.xml?channel_id=UCOCZxe0gNRA7c3PGWPGoiGg "youtube" +https://www.jakeducey.com/feed/ https://medium.com/feed/@kentbeck_7670 "medium" https://blog.gautamsuraj.com.np/rss.xml "blog" https://vimtricks.substack.com/feed "blog" "vim" https://blog.ploeh.dk/atom.xml -https://www.linuxbabe.com/feed "blog" "linux" - -https://dev.lemmy.ml/feeds/c/programming.xml -https://dev.lemmy.ml/feeds/c/privacy.xml -https://dev.lemmy.ml/feeds/c/unixporn.xml -https://dev.lemmy.ml/feeds/c/commandline.xml -https://dev.lemmy.ml/feeds/c/music.xml -https://dev.lemmy.ml/feeds/c/selfhosted.xml -https://dev.lemmy.ml/feeds/c/wallpapers.xml -https://dev.lemmy.ml/feeds/c/musicnews.xml -https://dev.lemmy.ml/feeds/c/dataprivacy.xml +https://lemmy.ml/feeds/c/programming.xml +https://lemmy.ml/feeds/c/privacy.xml +https://lemmy.ml/feeds/c/unixporn.xml +https://lemmy.ml/feeds/c/commandline.xml +https://lemmy.ml/feeds/c/music.xml +https://lemmy.ml/feeds/c/selfhosted.xml +https://lemmy.ml/feeds/c/wallpapers.xml +https://lemmy.ml/feeds/c/musicnews.xml +https://lemmy.ml/feeds/c/dataprivacy.xml https://boards.4channel.org/wg/index.rss "4chan" diff --git a/vim/vimrc b/vim/vimrc index e86e510..f588c67 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,9 +1,9 @@ call plug#begin('~/.vim/plugged') Plug 'artur-shaik/vim-javacomplete2' -Plug 'apalmer1377/factorus' +"Plug 'apalmer1377/factorus' Plug 'junegunn/fzf.vim' -Plug 'dense-analysis/ale' +"Plug 'dense-analysis/ale' call plug#end() @@ -57,3 +57,9 @@ vnoremap k :m '<-2 " guile nnoremap gb gg^i#!/usr/bin/guile \-e main -s!#(define (main args))kk + + +autocmd BufReadPost *.doc,*.docx silent %!antiword "%" +autocmd BufReadPost *.odt,*.odp silent %!odt2txt "%" +autocmd BufReadPost *.pdf silent %!pdftotext -nopgbrk -layout -q -eol unix "%" - | fmt -w78 +autocmd BufWriteCmd *.pdf set readonly diff --git a/xmonad/xmonad.hs b/xmonad/xmonad.hs index eea380c..21075bf 100644 --- a/xmonad/xmonad.hs +++ b/xmonad/xmonad.hs @@ -29,6 +29,8 @@ myStartupHook = do spawnOnce "setxkbmap -option ctrl:nocaps &" spawnOnce "xset -b &" spawnOnce "nepalical &" + spawnOnce "export LC_CTYPE=en_US.UTF-8" + spawnOnce "alias anki='anki --no-sandbox'" setWMName "LG3D" @@ -36,12 +38,13 @@ main :: IO () main = do xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc" - xmonad $ def + -- xmonad $ def + xmonad $ docks $ def { manageHook = manageDocks <+> manageHook def , layoutHook = avoidStruts $ spacingRaw True (Border 0 4 4 4) True (Border 4 4 4 4) True $layoutHook def , startupHook = myStartupHook , terminal = "st" - , handleEventHook = handleEventHook def <+> docksEventHook + , handleEventHook = handleEventHook def , logHook = dynamicLogWithPP xmobarPP { ppOutput = hPutStrLn xmproc , ppTitle = xmobarColor "green" "" . shorten 50 @@ -66,7 +69,7 @@ main = do , ((mod4Mask .|. shiftMask, xK_u), spawn "st sudo pacman -Syu") , ((mod4Mask .|. shiftMask, xK_e), spawn "st setxkbmap us") , ((mod4Mask .|. shiftMask, xK_v), spawn "st sudo protonvpn c -f") - , ((mod4Mask .|. shiftMask, xK_i), spawn "notify-send 'Intellij Idea' 'Opening Intellij Idea'; /home/krrish/idea/bin/idea.sh") + , ((mod4Mask .|. shiftMask, xK_i), spawn "notify-send 'Intellij Idea' 'Opening Intellij Idea'; /home/krrish/programs/idea/bin/idea.sh") , ((0, xK_Print), spawn "scrot -q 100 /home/krrish/pictures/%Y-%m-%d-%H:%M:%S.png") , ((0, 0x1008FF11), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") , ((0, 0x1008FF13), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") @@ -79,7 +82,6 @@ main = do , ((mod4Mask, xK_e), viewEmptyWorkspace) , ((mod4Mask .|. shiftMask, xK_e), tagToEmptyWorkspace) - , ((mod4Mask .|. shiftMask, xK_f), spawnSelected defaultGSConfig ["keepassxc", "brave", "pcmanfm"]) - , ((mod4Mask .|. shiftMask, xK_g), goToSelected defaultGSConfig) + , ((mod4Mask .|. shiftMask, xK_f), spawnSelected def ["keepassxc", "brave", "pcmanfm"]) , ((mod4Mask .|. shiftMask, xK_w), gotoMenu) ]