diff --git a/dunst/dunstrc b/dunst/dunstrc index f97f924..9859aff 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -29,7 +29,7 @@ # the top and down respectively. # The width can be negative. In this case the actual width is the # screen width minus the width defined in within the geometry option. - geometry = "300x5-30+20" + geometry = "360x5-24+24" # Show how many messages are currently hidden (because of geometry). indicate_hidden = yes @@ -61,10 +61,10 @@ # Defines width in pixels of frame around the notification window. # Set to 0 to disable. - frame_width = 3 + frame_width = 2 # Defines color of the frame around the notification window. - frame_color = "#aaaaaa" + frame_color = "#7aa2f7" # Define a color for the separator. # possible values are: @@ -222,7 +222,7 @@ # corners. # The radius will be automatically lowered if it exceeds half of the # notification height to avoid clipping text and/or icons. - corner_radius = 0 + corner_radius = 8 # Ignore the dbus closeNotification message. # Useful to enforce the timeout set by dunst configuration. Without this @@ -289,30 +289,24 @@ # Context menu. context = ctrl+shift+period -[urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. - background = "#222222" - foreground = "#888888" - timeout = 10 - # Icon for notifications with low urgency, uncomment to enable - #icon = /path/to/icon + [urgency_low] + background = "#1a1b26" + foreground = "#565f89" + frame_color = "#414868" + timeout = 10 -[urgency_normal] - background = "#285577" - foreground = "#ffffff" - timeout = 10 - # Icon for notifications with normal urgency, uncomment to enable - #icon = /path/to/icon - -[urgency_critical] - background = "#900000" - foreground = "#ffffff" - frame_color = "#ff0000" - timeout = 0 - # Icon for notifications with critical urgency, uncomment to enable - #icon = /path/to/icon + [urgency_normal] + background = "#1a1b26" + foreground = "#a9b1d6" + frame_color = "#7aa2f7" + timeout = 10 + [urgency_critical] + background = "#1a1b26" + foreground = "#f7768e" + frame_color = "#f7768e" + timeout = 0 +# # Every section that isn't one of the above is interpreted as a rules to # override settings for certain messages. # diff --git a/newsboat/cache.db b/newsboat/cache.db index 358e022..92d7b18 100644 Binary files a/newsboat/cache.db and b/newsboat/cache.db differ diff --git a/newsboat/urls b/newsboat/urls index ea24f52..88c1476 100644 --- a/newsboat/urls +++ b/newsboat/urls @@ -1,5 +1,11 @@ https://brahmasatya.com/rss.xml "blog" -https://blog.krrishg.com/rss.xml "blog" +https://krrishg.com/feed.xml +https://krrishg.com/blog/feed.xml +https://krrishg.com/projects/feed.xml +https://krrishg.com/libraries/feed.xml +https://krrishg.com/notes/feed.xml +https://krrishg.com/watch/feed.xml +https://krrishg.com/jams/feed.xml https://lukesmith.xyz/rss.xml "blog" https://thehistoryoftheweb.com/feed/ "History of the web" https://blog.jim-nielsen.com/feed.xml "Jim Nielsen" @@ -21,7 +27,6 @@ https://deephdave.com/feed.xml "Deep H Dave" https://garden.mattstein.com/notes/feed "Matt Stein" https://matthiasott.com/feed "Matthias Ott" https://www.fromjason.xyz/feed/feed.xml "From Jason" -https://zserge.com/rss.xml "Z Serge" https://library.xandra.cc/feed/?type=rss "Xandra" https://victoria.dev/posts/index.xml "Victoria" https://feeds.feedburner.com/24ways "24 Ways" @@ -33,12 +38,12 @@ https://cdevroe.com/feed/ "C Devroe" https://manuelmoreale.com/feed/rss "Manuel Moreale" https://ar.al/index.xml "Aral" https://ludic.mataroa.blog/rss/ "Ludic" -https://grantslatton.com/rss.xml "Grant Slatton" https://andregarzia.com/feeds/all.atom.xml "Andre Garzia" https://hacdias.com/writings/feed.xml "hacdias" https://medium.com/feed/@kentbeck_7670 "medium" https://blog.gautamsuraj.com.np/rss.xml "blog" http://blog.cleancoder.com/atom.xml "blog" "programming" +https://cheapskatesguide.org/cheapskates-guide-rss-feed.xml https://axxuy.xyz/blog/feed.xml https://tallywinkle.bearblog.dev/feed/ @@ -74,6 +79,8 @@ https://ldstephens.net/feed/feed.xml https://lmnt.me/feed.xml https://daniel.haxx.se/blog/feed/ https://grizzlygazette.bearblog.dev/feed/ +https://kagi.com/api/v1/smallweb/feed/ +https://davidpoblador.com/blog/feed.xml https://www.youtube.com/feeds/videos.xml?channel_id=UCh7r8sc97Tzf1mV2TqNZm2A "youtube" "Pure Experiences" https://www.youtube.com/feeds/videos.xml?channel_id=UCuMwfZxzoMcEEGRcIvMIr1Q "youtube" "Bodhi Varta" diff --git a/picom/picom.conf b/picom/picom.conf new file mode 100644 index 0000000..bc7d535 --- /dev/null +++ b/picom/picom.conf @@ -0,0 +1,27 @@ +backend = "glx"; +vsync = true; + +shadow = true; +shadow-radius = 10; +shadow-opacity = 0.25; +shadow-offset-x = -5; +shadow-offset-y = -5; +shadow-color = "#000000"; + +fading = true; +fade-in-step = 0.03; +fade-out-step = 0.03; + +detect-rounded-corners = true; +detect-client-opacity = true; +detect-transient = true; +detect-client-leader = true; +use-ewmh-active-win = true; + +shadow-exclude = [ + "class_g = 'Dunst'", + "class_g = 'Xmobar'", + "_GTK_FRAME_EXTENTS@:c" +]; + +use-damage = true; diff --git a/stalonetray/stalonetrayrc b/stalonetray/stalonetrayrc index a3773f6..68f0d1e 100644 --- a/stalonetray/stalonetrayrc +++ b/stalonetray/stalonetrayrc @@ -1,14 +1,14 @@ decorations none transparent true dockapp_mode none - geometry 5x1-400+2 + geometry 5x1-0+6 max_geometry 5x1-325-10 kludges force_icons_size grow_gravity NE icon_gravity NE icon_size 12 sticky true -# window_strut none + window_strut none window_type dock window_layer bottom skip_taskbar true diff --git a/vim/vimrc b/vim/vimrc index 70c1093..4c5f3d6 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -3,10 +3,7 @@ call plug#begin('~/.vim/plugged') Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} -Plug 'dense-analysis/ale' -Plug 'vim-test/vim-test' Plug 'tpope/vim-fugitive' -Plug 'mfussenegger/nvim-dap' call plug#end() @@ -21,6 +18,8 @@ let g:netrw_altv = 1 syntax on +set nottyfast +set background=dark set completeopt=menuone,noinsert set ts=4 sw=4 set relativenumber number @@ -38,21 +37,14 @@ nnoremap j nnoremap k nnoremap l nnoremap S :%s//g -nnoremap i :JCimportAddSmart -nnoremap I (JavaComplete-Imports-Add) -nnoremap a (JavaComplete-Imports-AddMissing) -nnoremap r (JavaComplete-Imports-RemoveUnused) -nnoremap c :JCclassNew -nnoremap gg :JCgenerateAccessorGetter -nnoremap gc :JCgenerateConstructor nnoremap f :Files nnoremap p :bp nnoremap n :bn nnoremap t :!clear && make test nnoremap b :!clear && make package nnoremap m :make -nnoremap v :e ~/.config/nvim/init.vim -nnoremap s :source ~/.config/nvim/init.vim +nnoremap v :e ~/.config/vim/vimrc +nnoremap s :source ~/.config/vim/vimrc nnoremap e :Vex nnoremap zz ZZ nnoremap zq ZQ @@ -61,8 +53,6 @@ nnoremap j :m .+1 nnoremap k :m .-2 vnoremap j :m '>+1 vnoremap k :m '<-2 -nnoremap h :SidewaysLeft -nnoremap l :SidewaysRight " guile @@ -72,19 +62,4 @@ nnoremap gb gg^i#!/usr/bin/guile \-e main -s!#(define (m 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 - - - -let g:ale_linters = { -\ 'java': ['checkstyle', 'javac', 'pmd'], -\} - - -let g:ale_fixers = { -\ 'java': ['google-java-format'], -\} - -let g:ale_fix_on_save = 1 - -autocmd BufWritePre *.java :normal! gg=G " reformat java file on save +autocmd BufReadPost *.pdf setlocal readonly diff --git a/xmobar/xmobarrc b/xmobar/xmobarrc index 7c0ae61..a435070 100644 --- a/xmobar/xmobarrc +++ b/xmobar/xmobarrc @@ -8,51 +8,31 @@ -- trayer -- 'dtos-local-bin' (from dtos-core-repo) -Config { font = "Ubuntu Bold 9" +Config { font = "Ubuntu Bold 10" , additionalFonts = [ "Mononoki 11" - , "Font Awesome 6 Free Solid 12" - , "Font Awesome 6 Brands 12" + , "Font Awesome 6 Free Solid 11" + , "Font Awesome 6 Brands 11" ] , bgColor = "#1a1b26" , fgColor = "#a9b1d6" - , position = TopSize L 100 24 + , position = TopSize L 100 28 , lowerOnStart = True , 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 Cpu ["-t", "󰍛 (%)","-H","50","--high","red"] 20 + , Run Memory ["-t", "󰘚 (%)"] 20 + , Run DiskU [("/home", "󰋊 ")] [] 60 + , Run Uptime ["-t", "󰔚 d h"] 360 , 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 Com "/home/krrish/.config/xmobar/trayer-padding-icon.sh" ["stalonetray"] "trayerpad" 20 , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" - , template = "%UnsafeStdinReader% }{ %cpu% %memory% %disku% %uptime% charging: %battery% %date% %trayerpad%" + , template = "%UnsafeStdinReader% }{ %cpu% %memory% %disku% %uptime% 󰂄 %battery% %date% %trayerpad%" } diff --git a/xmonad/xmonad.hs b/xmonad/xmonad.hs index a34498b..7a1866f 100644 --- a/xmonad/xmonad.hs +++ b/xmonad/xmonad.hs @@ -2,9 +2,10 @@ import XMonad import XMonad.Hooks.DynamicLog import XMonad.Hooks.SetWMName import XMonad.Hooks.ManageDocks -import XMonad.Util.NamedWindows +import XMonad.Hooks.EwmhDesktops +import XMonad.Hooks.StatusBar.PP import XMonad.Util.Run -import XMonad.Util.Run(spawnPipe) +import XMonad.Util.NamedScratchpad import XMonad.Util.EZConfig(additionalKeys) import XMonad.Layout.Spacing import XMonad.Prompt @@ -21,40 +22,58 @@ import qualified XMonad.StackSet as W myStartupHook :: X () myStartupHook = do - spawnOnce "nitrogen --set-scaled --random pictures/wallpapers/ &" - spawnOnce "xcompmgr &" - spawnOnce "dunst &" - spawnOnce "nm-applet &" - spawnOnce "volumeicon &" - spawnOnce "stalonetray --config .config/stalonetray/stalonetrayrc &" - spawnOnce "transmission-daemon &" - spawnOnce "setxkbmap -option ctrl:nocaps &" - spawnOnce "xset -b &" - spawnOnce "nepalical &" - spawnOnce "export LC_CTYPE=en_US.UTF-8" - spawnOnce "alias anki='anki --no-sandbox'" + spawnOnce "nitrogen --set-scaled --random wallpapers/" + spawnOnce "picom --config ~/.config/picom/picom.conf" + spawnOnce "dunst --config ~/dotfiles/dunst/dunstrc" + spawnOnce "stalonetray --config ~/dotfiles/stalonetray/stalonetrayrc" + spawnOnce "nm-applet" + spawnOnce "volumeicon" + spawnOnce "transmission-daemon" + spawnOnce "setxkbmap -option ctrl:nocaps" + spawnOnce "xset -b" + spawnOnce "copyq" + spawnOnce "blueman-applet" setWMName "LG3D" +myScratchPads :: [NamedScratchpad] +myScratchPads = + [ NS "terminal" + "st -n scratchpad -t scratchpad" + (resource =? "scratchpad") + (customFloating $ W.RationalRect 0.1 0.1 0.8 0.8) + ] + main :: IO () main = do xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc" - -- 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 + xmonad + .ewmhFullscreen + .ewmh + .docks + $ def + { manageHook = manageDocks <+> namedScratchpadManageHook myScratchPads <+> manageHook def + , layoutHook = avoidStruts $ spacingRaw True (Border 0 8 8 8) True (Border 8 8 8 8) True $layoutHook def , startupHook = myStartupHook , terminal = "st" - , handleEventHook = handleEventHook def - , logHook = dynamicLogWithPP xmobarPP - { ppOutput = hPutStrLn xmproc - , ppTitle = xmobarColor "green" "" . shorten 50 - } - , modMask = mod4Mask - , focusedBorderColor = "#6B8E23" + , logHook = dynamicLogWithPP $ + filterOutWsPP [scratchpadWorkspaceTag] xmobarPP + { ppOutput = hPutStrLn xmproc + , ppTitle = const "" + , ppCurrent = xmobarColor "#7aa2f7" "" + , ppVisible = xmobarColor "#bb9af7" "" + , ppHidden = xmobarColor "#565f89" "" + , ppHiddenNoWindows = xmobarColor "#414868" "" + , ppUrgent = xmobarColor "#f7768e" "" + , ppSep = " " + } + , modMask = mod4Mask + , borderWidth = 2 + , normalBorderColor = "#292e42" + , focusedBorderColor = "#7aa2f7" } `additionalKeys` [ ((controlMask .|. mod1Mask, xK_l), spawn "slock") - , ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s -q 100 /home/krrish/pictures/%Y-%m-%d-%H:%M:%S.png") + , ((controlMask, xK_Print), spawn "sleep 0.2; ~/scripts/screenshot -s") , ((mod1Mask, xK_m), spawn "st cmus") , ((mod4Mask .|. shiftMask, xK_q), spawn "poweroff") , ((mod4Mask, xK_p), spawn "dmenu_run -c -l 9 -p run: ") @@ -69,24 +88,22 @@ main = do , ((mod4Mask .|. shiftMask, xK_x), spawn "st vim .xmonad/xmonad.hs") , ((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_v), spawn "copyq show") , ((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, xK_Print), spawn "~/scripts/screenshot") , ((0, 0x1008FF11), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") , ((0, 0x1008FF13), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") , ((mod4Mask .|. shiftMask, xK_m), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") , ((mod4Mask .|. shiftMask, xK_p), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") , ((0, 0x1008FF12), spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") - , ((0, 0x1008FF02), spawn "sudo ~/scripts/brightness 50") - , ((0, 0x1008FF03), spawn "sudo ~/scripts/brightness -50") - , ((mod4Mask, xK_o), spawn "rofi -show run") - + , ((0, 0x1008FF02), spawn "brightnessctl set 10%+") + , ((0, 0x1008FF03), spawn "brightnessctl set 10%-") , ((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 &") + , ((mod4Mask .|. shiftMask, xK_w), gotoMenuArgs' "dmenu" ["-l", "9", "-p", "Window:"]) + , ((mod4Mask .|. shiftMask, xK_space), namedScratchpadAction myScratchPads "terminal") ]