diff --git a/newsboat/urls b/newsboat/urls index 91d3fd1..11ffa12 100644 --- a/newsboat/urls +++ b/newsboat/urls @@ -1,5 +1,8 @@ "query:Starred:flags # \"a\"" +https://bookmarks.krrishg.com/feeds/bffdcc5e4287869a5d124e39a8e1713bf5c4a233/all "My Bookmarks" +https://sarvalekh.com/rss.xml "blog" "Sarva Lekh" +http://localhost:3000/rss.xml 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)" @@ -25,6 +28,7 @@ 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://rohanrd.xyz/index.xml https://lemmy.ml/feeds/c/programming.xml https://lemmy.ml/feeds/c/privacy.xml @@ -47,3 +51,5 @@ https://nitter.net/martinfowler/rss https://nitter.net/KentBeck/rss https://funkmysoul.gr/feed + + diff --git a/vim/vimrc b/vim/vimrc index f588c67..fb32658 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,10 +1,14 @@ call plug#begin('~/.vim/plugged') -Plug 'artur-shaik/vim-javacomplete2' +"Plug 'artur-shaik/vim-javacomplete2' "Plug 'apalmer1377/factorus' -Plug 'junegunn/fzf.vim' +"Plug 'junegunn/fzf.vim' "Plug 'dense-analysis/ale' +Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plug 'junegunn/fzf.vim' + call plug#end() " javacomplete2 @@ -25,6 +29,8 @@ set ts=4 sw=4 set relativenumber number set nohlsearch set splitbelow splitright +set visualbell +set noerrorbells nnoremap h nnoremap j diff --git a/xmobar/xmobarrc b/xmobar/xmobarrc index b72c138..7c0ae61 100644 --- a/xmobar/xmobarrc +++ b/xmobar/xmobarrc @@ -1,49 +1,58 @@ -Config { font = "xft:Jetbrains Mono:size=9:bold:antialias=true" - , additionalFonts = [ - "xft:Mononoki Nerd Font:size=9:antialias=true:hinting=true" - , "xft:FontAwesome:pixelsize=11" - ] - , borderColor = "black" - , border = TopB - , bgColor = "black" - , fgColor = "grey" - , alpha = 125 - , position = Top - , textOffset = -1 - , iconOffset = -1 +-- Dependencies: + -- otf-font-awesome + -- ttf-mononoki + -- ttf-ubuntu-font-family + -- htop + -- emacs + -- pacman (Arch Linux) + -- trayer + -- 'dtos-local-bin' (from dtos-core-repo) + +Config { font = "Ubuntu Bold 9" + , additionalFonts = [ "Mononoki 11" + , "Font Awesome 6 Free Solid 12" + , "Font Awesome 6 Brands 12" + ] + , bgColor = "#1a1b26" + , fgColor = "#a9b1d6" + , position = TopSize L 100 24 , lowerOnStart = True - , pickBroadest = False - , persistent = False - , hideOnStart = False - , iconRoot = "." - , allDesktops = True - , overrideRedirect = True - , commands = [ Run Cpu [] 10 - , Run Date "\xe721" "cpuicon" 36000 - , Run Date "\xf85a" "memoryicon" 36000 - , Run Memory ["-t","Mem: %"] 10 - , Run Date "\xf9e1" "swapicon" 36000 - , Run Swap [] 10 - , Run Date "\xf133 %a %b %d" "date" 1000 - , Run Date "\xe381" "timeicon" 36000 - , Run Date "%H:%M" "time" 10 - , Run StdinReader - , Run Date "\xfa7d" "volumeicon" 36000 - , Run Com "volume" [] "volume" 10 - , Run Date "\xf240" "batteryicon" 36000 - , Run Battery [ "--template" - , "" - , "--" -- battery specific options - -- discharging status - , "-o" , "% ()" - -- AC "on" status - , "-O" , "Charging" - -- charged status - , "-i" , "100%" - ] 50 - ] - , sepChar = "%" - , alignSep = "}{" - , template = "%StdinReader% | %cpuicon% %cpu% | %memoryicon% %memory% | %swapicon%%swap% | }\ - \{ %volumeicon% %volume% | %batteryicon% %battery% | %date% | %timeicon% %time% " - } + , hideOnStart = False + , allDesktops = True + , persistent = True + , iconRoot = ".xmonad/xpm/" -- default: "." + , commands = [ + -- Echos a "penguin" icon in front of the kernel output. + Run Com "echo" ["\xf17c"] "penguin" 3600 + -- Get kernel version (script found in .local/bin) + , Run Com ".local/bin/kernel" [] "kernel" 36000 + -- Cpu usage in percent + , Run Cpu ["-t", "\xf108 cpu: (%)","-H","50","--high","red"] 20 + -- Ram used number and percent + , Run Memory ["-t", "\xf233 mem: M (%)"] 20 + -- Disk space free + , Run DiskU [("/", "\xf0c7 hdd: free")] [] 60 + -- Echos an "up arrow" icon in front of the uptime output. + , Run Com "echo" ["\xf0aa"] "uparrow" 3600 + -- Uptime + , Run Uptime ["-t", "uptime: d h"] 360 + -- Echos a "bell" icon in front of the pacman updates. + , Run Com "echo" ["\xf0f3"] "bell" 3600 + -- Check for pacman updates (script found in .local/bin) + , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf240"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 50 + -- Time and date + , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 + -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. + , Run Com "/home/krrish/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 + -- Prints out the left side items such as workspaces, layout, etc. + , Run UnsafeStdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%UnsafeStdinReader% }{ %cpu% %memory% %disku% %uptime% charging: %battery% %date% %trayerpad%" + } + diff --git a/xmonad/xmonad.hs b/xmonad/xmonad.hs index 21075bf..a34498b 100644 --- a/xmonad/xmonad.hs +++ b/xmonad/xmonad.hs @@ -15,6 +15,8 @@ import XMonad.Actions.WindowBringer import XMonad.Util.SpawnOnce import XMonad.Actions.FindEmptyWorkspace import XMonad.Actions.GridSelect +import XMonad.Prompt.Ssh +import XMonad.Prompt.Man import qualified XMonad.StackSet as W myStartupHook :: X () @@ -32,7 +34,6 @@ myStartupHook = do spawnOnce "export LC_CTYPE=en_US.UTF-8" spawnOnce "alias anki='anki --no-sandbox'" setWMName "LG3D" - main :: IO () main = do @@ -69,7 +70,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/programs/idea/bin/idea.sh") + , ((mod4Mask .|. shiftMask, xK_i), spawn "notify-send 'Intellij Idea' 'Opening Intellij Idea'; /home/krrish/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%") @@ -81,7 +82,11 @@ main = do , ((mod4Mask, xK_o), spawn "rofi -show run") , ((mod4Mask, xK_e), viewEmptyWorkspace) + , ((mod4Mask, xK_g), goToSelected def) , ((mod4Mask .|. shiftMask, xK_e), tagToEmptyWorkspace) + , ((mod4Mask .|. shiftMask, xK_s), sshPrompt def) + , ((mod4Mask .|. controlMask, xK_m), manPrompt def) , ((mod4Mask .|. shiftMask, xK_f), spawnSelected def ["keepassxc", "brave", "pcmanfm"]) , ((mod4Mask .|. shiftMask, xK_w), gotoMenu) + , ((mod4Mask .|. shiftMask, xK_h), spawn "/home/krrish/Hubstaff/HubstaffClient.bin.x86_64 &") ]