update configs

This commit is contained in:
Krrish Ghimire
2026-10-18 09:21:12 +05:45
parent 20072a20eb
commit d129df5f75
8 changed files with 125 additions and 125 deletions
+17 -23
View File
@@ -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"
[urgency_low]
background = "#1a1b26"
foreground = "#565f89"
frame_color = "#414868"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
background = "#285577"
foreground = "#ffffff"
[urgency_normal]
background = "#1a1b26"
foreground = "#a9b1d6"
frame_color = "#7aa2f7"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
[urgency_critical]
background = "#1a1b26"
foreground = "#f7768e"
frame_color = "#f7768e"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon
#
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
#
BIN
View File
Binary file not shown.
+10 -3
View File
@@ -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"
+27
View File
@@ -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;
+2 -2
View File
@@ -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
+5 -30
View File
@@ -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 <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap S :%s//g<Left><Left>
nnoremap <Leader>i :JCimportAddSmart<CR>
nnoremap <Leader>I <Plug>(JavaComplete-Imports-Add)
nnoremap <Leader>a <Plug>(JavaComplete-Imports-AddMissing)
nnoremap <Leader>r <Plug>(JavaComplete-Imports-RemoveUnused)
nnoremap <Leader>c :JCclassNew
nnoremap <Leader>gg :JCgenerateAccessorGetter<CR>
nnoremap <Leader>gc :JCgenerateConstructor<CR>
nnoremap <Leader>f :Files<CR>
nnoremap <Leader>p :bp<CR>
nnoremap <Leader>n :bn<CR>
nnoremap <Leader>t :!clear && make test<CR>
nnoremap <Leader>b :!clear && make package<CR>
nnoremap <Leader>m :make
nnoremap <Leader>v :e ~/.config/nvim/init.vim<CR>
nnoremap <Leader>s :source ~/.config/nvim/init.vim<CR>
nnoremap <Leader>v :e ~/.config/vim/vimrc<CR>
nnoremap <Leader>s :source ~/.config/vim/vimrc<CR>
nnoremap <Leader>e :Vex<CR>
nnoremap zz ZZ
nnoremap zq ZQ
@@ -61,8 +53,6 @@ nnoremap <Leader>j :m .+1<CR>
nnoremap <Leader>k :m .-2<CR>
vnoremap <Leader>j :m '>+1<CR>
vnoremap <Leader>k :m '<-2<CR>
nnoremap <Leader>h :SidewaysLeft<cr>
nnoremap <Leader>l :SidewaysRight<cr>
" guile
@@ -72,19 +62,4 @@ nnoremap <Leader>gb gg^i#!/usr/bin/guile \<CR>-e main -s<CR>!#<CR><CR>(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
+10 -30
View File
@@ -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" ["<fn=3>\xf17c</fn>"] "penguin" 3600
-- Get kernel version (script found in .local/bin)
, Run Com ".local/bin/kernel" [] "kernel" 36000
-- Cpu usage in percent
, Run Cpu ["-t", "<fn=2>\xf108</fn> cpu: (<total>%)","-H","50","--high","red"] 20
-- Ram used number and percent
, Run Memory ["-t", "<fn=2>\xf233</fn> mem: <used>M (<usedratio>%)"] 20
-- Disk space free
, Run DiskU [("/", "<fn=2>\xf0c7</fn> hdd: <free> free")] [] 60
-- Echos an "up arrow" icon in front of the uptime output.
, Run Com "echo" ["<fn=2>\xf0aa</fn>"] "uparrow" 3600
-- Uptime
, Run Uptime ["-t", "uptime: <days>d <hours>h"] 360
-- Echos a "bell" icon in front of the pacman updates.
, Run Com "echo" ["<fn=2>\xf0f3</fn>"] "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" ["<fn=2>\xf240</fn>"] "baticon" 3600
-- Battery
Run Cpu ["-t", "󰍛 (<total>%)","-H","50","--high","red"] 20
, Run Memory ["-t", "󰘚 (<usedratio>%)"] 20
, Run DiskU [("/home", "󰋊 <free>")] [] 60
, Run Uptime ["-t", "󰔚 <days>d <hours>h"] 360
, Run BatteryP ["BAT0"] ["-t", "<acstatus> (<left>%)"] 50
-- Time and date
, Run Date "<fn=2>\xf017</fn> %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% }{ <box type=Bottom width=2 mb=2 color=#f7768e></box> <box type=Bottom width=2 mb=2 color=#9ece6a><fc=#9ece6a><action=`st -e htop`>%cpu%</action></fc></box> <box type=Bottom width=2 mb=2 color=#e0af68><fc=#e0af68><action=`st -e htop`>%memory%</action></fc></box> <box type=Bottom width=2 mb=2 color=#7aa2f7><fc=#7aa2f7>%disku%</fc></box> <box type=Bottom width=2 mb=2 color=#bb9af7><fc=#bb9af7>%uptime%</fc></box> <box type=Bottom width=2 mb=2 color=#73daca></box> <box type=Bottom width=2 mb=2 color=#f7768e><fc=#f7768e>charging: %battery%</fc></box> <box type=Bottom width=2 mb=2 color=#9ece6a><fc=#9ece6a><action=`emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(dt/year-calendar))'`>%date%</action></fc></box> %trayerpad%"
, template = "%UnsafeStdinReader% }{ <fc=#9ece6a><action=`st -e htop`>%cpu%</action></fc> <fc=#e0af68><action=`st -e htop`>%memory%</action></fc> <fc=#7aa2f7>%disku%</fc> <fc=#bb9af7>%uptime%</fc> <fc=#f7768e>󰂄 %battery%</fc> <fc=#9ece6a><action=`emacsclient -c -a 'emacs' --eval '(doom/window-maximize-buffer(dt/year-calendar))'`>%date%</action></fc> %trayerpad%"
}
+48 -31
View File
@@ -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
, logHook = dynamicLogWithPP $
filterOutWsPP [scratchpadWorkspaceTag] xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor "green" "" . shorten 50
, ppTitle = const ""
, ppCurrent = xmobarColor "#7aa2f7" ""
, ppVisible = xmobarColor "#bb9af7" ""
, ppHidden = xmobarColor "#565f89" ""
, ppHiddenNoWindows = xmobarColor "#414868" ""
, ppUrgent = xmobarColor "#f7768e" ""
, ppSep = " "
}
, modMask = mod4Mask
, focusedBorderColor = "#6B8E23"
, 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")
]