Browse Source

update configs

master
Krrish Ghimire 2 years ago
parent
commit
d9f90cbe39
  1. 23
      newsboat/urls
  2. 10
      vim/vimrc
  3. 12
      xmonad/xmonad.hs

23
newsboat/urls

@ -1,7 +1,5 @@
"query:Starred:flags # \"a\"" "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://lukesmith.xyz/rss.xml "blog"
https://videos.lukesmith.xyz/feeds/videos.xml?accountId=3 "peertube" "~Luke Smith (Peertube) https://videos.lukesmith.xyz/feeds/videos.xml?accountId=3 "peertube" "~Luke Smith (Peertube)
https://lukesmith.xyz/youtube.xml "youtube" "~Luke Smith (Youtube)" 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=UCS0s6BFzIcvC2gTH52_vBEA "youtube"
https://www.youtube.com/feeds/videos.xml?channel_id=UCOCZxe0gNRA7c3PGWPGoiGg "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://medium.com/feed/@kentbeck_7670 "medium"
https://blog.gautamsuraj.com.np/rss.xml "blog" https://blog.gautamsuraj.com.np/rss.xml "blog"
https://vimtricks.substack.com/feed "blog" "vim" https://vimtricks.substack.com/feed "blog" "vim"
https://blog.ploeh.dk/atom.xml https://blog.ploeh.dk/atom.xml
https://www.linuxbabe.com/feed "blog" "linux" https://lemmy.ml/feeds/c/programming.xml
https://lemmy.ml/feeds/c/privacy.xml
https://dev.lemmy.ml/feeds/c/programming.xml https://lemmy.ml/feeds/c/unixporn.xml
https://dev.lemmy.ml/feeds/c/privacy.xml https://lemmy.ml/feeds/c/commandline.xml
https://dev.lemmy.ml/feeds/c/unixporn.xml https://lemmy.ml/feeds/c/music.xml
https://dev.lemmy.ml/feeds/c/commandline.xml https://lemmy.ml/feeds/c/selfhosted.xml
https://dev.lemmy.ml/feeds/c/music.xml https://lemmy.ml/feeds/c/wallpapers.xml
https://dev.lemmy.ml/feeds/c/selfhosted.xml https://lemmy.ml/feeds/c/musicnews.xml
https://dev.lemmy.ml/feeds/c/wallpapers.xml https://lemmy.ml/feeds/c/dataprivacy.xml
https://dev.lemmy.ml/feeds/c/musicnews.xml
https://dev.lemmy.ml/feeds/c/dataprivacy.xml
https://boards.4channel.org/wg/index.rss "4chan" https://boards.4channel.org/wg/index.rss "4chan"

10
vim/vimrc

@ -1,9 +1,9 @@
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'artur-shaik/vim-javacomplete2' Plug 'artur-shaik/vim-javacomplete2'
Plug 'apalmer1377/factorus' "Plug 'apalmer1377/factorus'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'dense-analysis/ale' "Plug 'dense-analysis/ale'
call plug#end() call plug#end()
@ -57,3 +57,9 @@ vnoremap <Leader>k :m '<-2<CR>
" guile " guile
nnoremap <Leader>gb gg^i#!/usr/bin/guile \<CR>-e main -s<CR>!#<CR><CR>(define (main args)<CR><CR>)<CR><Esc>kk nnoremap <Leader>gb gg^i#!/usr/bin/guile \<CR>-e main -s<CR>!#<CR><CR>(define (main args)<CR><CR>)<CR><Esc>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

12
xmonad/xmonad.hs

@ -29,6 +29,8 @@ myStartupHook = do
spawnOnce "setxkbmap -option ctrl:nocaps &" spawnOnce "setxkbmap -option ctrl:nocaps &"
spawnOnce "xset -b &" spawnOnce "xset -b &"
spawnOnce "nepalical &" spawnOnce "nepalical &"
spawnOnce "export LC_CTYPE=en_US.UTF-8"
spawnOnce "alias anki='anki --no-sandbox'"
setWMName "LG3D" setWMName "LG3D"
@ -36,12 +38,13 @@ main :: IO ()
main = do main = do
xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc" xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc"
xmonad $ def -- xmonad $ def
xmonad $ docks $ def
{ manageHook = manageDocks <+> manageHook def { manageHook = manageDocks <+> manageHook def
, layoutHook = avoidStruts $ spacingRaw True (Border 0 4 4 4) True (Border 4 4 4 4) True $layoutHook def , layoutHook = avoidStruts $ spacingRaw True (Border 0 4 4 4) True (Border 4 4 4 4) True $layoutHook def
, startupHook = myStartupHook , startupHook = myStartupHook
, terminal = "st" , terminal = "st"
, handleEventHook = handleEventHook def <+> docksEventHook , handleEventHook = handleEventHook def
, logHook = dynamicLogWithPP xmobarPP , logHook = dynamicLogWithPP xmobarPP
{ ppOutput = hPutStrLn xmproc { ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor "green" "" . shorten 50 , ppTitle = xmobarColor "green" "" . shorten 50
@ -66,7 +69,7 @@ main = do
, ((mod4Mask .|. shiftMask, xK_u), spawn "st sudo pacman -Syu") , ((mod4Mask .|. shiftMask, xK_u), spawn "st sudo pacman -Syu")
, ((mod4Mask .|. shiftMask, xK_e), spawn "st setxkbmap us") , ((mod4Mask .|. shiftMask, xK_e), spawn "st setxkbmap us")
, ((mod4Mask .|. shiftMask, xK_v), spawn "st sudo protonvpn c -f") , ((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, 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, 0x1008FF11), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%")
, ((0, 0x1008FF13), 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, xK_e), viewEmptyWorkspace)
, ((mod4Mask .|. shiftMask, xK_e), tagToEmptyWorkspace) , ((mod4Mask .|. shiftMask, xK_e), tagToEmptyWorkspace)
, ((mod4Mask .|. shiftMask, xK_f), spawnSelected defaultGSConfig ["keepassxc", "brave", "pcmanfm"]) , ((mod4Mask .|. shiftMask, xK_f), spawnSelected def ["keepassxc", "brave", "pcmanfm"])
, ((mod4Mask .|. shiftMask, xK_g), goToSelected defaultGSConfig)
, ((mod4Mask .|. shiftMask, xK_w), gotoMenu) , ((mod4Mask .|. shiftMask, xK_w), gotoMenu)
] ]

Loading…
Cancel
Save