diff options
-rw-r--r-- | bashrc.org | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | conky.org | 48 | ||||
-rw-r--r-- | conky.rc | 61 | ||||
-rw-r--r--[-rwxr-xr-x] | herbstluftwm-autostart.org | 29 | ||||
-rw-r--r-- | init.vim | 125 | ||||
-rw-r--r--[-rwxr-xr-x] | scripts.org | 0 | ||||
-rw-r--r-- | void-linux-wallpaper.png | bin | 0 -> 154709 bytes |
7 files changed, 227 insertions, 38 deletions
@@ -59,7 +59,7 @@ This ensures ~plank~ dock doesn't complain about not finding a session type. #+BEGIN_SRC shell - export XDG_SESSION_TYPE=x11 + export XDG_SESSION_DESKTOP=x11 #+END_SRC diff --git a/conky.org b/conky.org index 9eab266..35eea60 100755..100644 --- a/conky.org +++ b/conky.org @@ -24,7 +24,7 @@ draw_outline = false, draw_shades = false, extra_newline = false, - font = 'Hack:size=16', + font = 'Courier Prime Code:size=16', gap_x = 60, gap_y = 60, minimum_height = 5, @@ -59,27 +59,31 @@ ]] #+end_src +#+RESULTS: + #+NAME: content #+begin_src lua :tangle no :exports none - ${font Monoid:size=40}${time %H:%M} - $font${color grey}$color ${scroll 38 Conky $conky_version - $sysname $nodename $kernel $machine} - $hr - ${color grey}Uptime:$color $uptime - ${color grey}Frequency (in MHz):$color $freq - ${color grey}Frequency (in GHz):$color $freq_g - ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} - ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} - ${color grey}CPU Usage:$color $cpu% ${cpubar 4} - ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes - $hr - ${color grey}File systems: - / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} - ${color grey}Networking: - Up:$color ${upspeed} ${color grey} - Down:$color ${downspeed} - $hr - ${color grey}Name PID CPU% MEM% - ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} - ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} - ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} - ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} + ${font Monoid:size=40}${time %H:%M} + $font${color grey}$color ${scroll 38 Conky $conky_version - $sysname $nodename $kernel $machine} + $hr + ${color grey}Uptime:$color $uptime + ${color grey}Frequency (GHz):$color $freq_g + ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} + ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} + ${color grey}CPU Usage:$color $cpu% ${cpubar 4} + ${color grey}Processes:$color $processes | ${color grey}Running:$color $running_processes + $hr + ${color grey}File systems: + / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} + ${color grey}Networking: + Up: ${upspeed wlp3s0}/s + ${upspeedgraph wlp3s0 80,500 444444 eeeeee} + Down: ${downspeed wlp3s0}/s + ${downspeedgraph wlp3s0 80,500 444444 eeeeee} + $hr + ${color grey}Name PID CPU% MEM% + ${color lightgrey}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} + ${color lightgrey}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} + ${color lightgrey}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} + ${color lightgrey}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} #+end_src diff --git a/conky.rc b/conky.rc new file mode 100644 index 0000000..67e75ea --- /dev/null +++ b/conky.rc @@ -0,0 +1,61 @@ +conky.config = { +alignment= 'top_right', +background= true, +border_width = 1, +cpu_avg_samples = 2, +default_color= 'white', +default_outline_color= 'white', +default_shade_color= 'white', +double_buffer= true, +draw_borders= false, +draw_graph_borders= true, +draw_outline= false, +draw_shades= false, +font = 'Hermit-Regular:size=14', +gap_x= 60, +gap_y= 20, +maximum_width= 440, +net_avg_samples = 1, +no_buffers= true, +out_to_x = true, +own_window= true, +own_window_class= 'conky', +own_window_type= 'override', +own_window_transparent= true, +own_window_argb_visual= true, +own_window_colour= 000000, +own_window_argb_value= 0, +update_interval= 0.6, +uppercase= false, +use_xft= true, +xftalpha= 0.8, +} + +conky.text = [[ +$color +${alignr}${font Hermit:style=Medium:pixelsize=140}${time %H:%M}${font} +${voffset 8} +${alignr}${font Hermit:style=Medium:pixelsize=24}${time %A %d %B %Y}${font} +${voffset 16} +${color grey}Info:$color ${scroll 35 Conky $conky_version - $sysname $nodename $kernel $machine} +${color grey}Uptime:${alignr}$color $uptime +${color grey}Disk Usage:${alignr}$color ${fs_used /}/${fs_size /} +${fs_bar 12 /} +$hr +${color grey}CPU Usage:${alignr}$color ${freq}MHz +$cpu% ${cpubar 12} +${cpugraph cpu1 64,100 006477 ffffff}${cpugraph cpu2 64,100 006477 ffffff}${alignr}${cpugraph cpu3 64,100 006477 ffffff}${alignr}${cpugraph cpu4 64,100 006477 ffffff} +${cpugraph cpu5 64,100 006477 ffffff}${cpugraph cpu6 64,100 006477 ffffff}${alignr}${cpugraph cpu7 64,100 006477 ffffff}${alignr}${cpugraph cpu8 64,100 006477 ffffff} +$hr +# ${exec nvidia-smi} +${color grey}RAM Usage:${alignr}$color $mem/$memmax +$memperc% ${membar 12} +# ${color grey}Swap Usage:${alignr}$color $swap/$swapmax +# $swapperc% ${swapbar 12} +$hr +${color grey}Networking: +${color grey}Download:${alignr}$color ${downspeedf enp34s0}k/s (${totaldown enp34s0}) +${downspeedgraph enp34s0 160,440 006477 ffffff} +${color grey}Upload: $color${alignr}${upspeedf enp34s0}k/s (${totalup enp34s0}) +${upspeedgraph enp34s0 160,440 006477 ffffff} +]]
\ No newline at end of file diff --git a/herbstluftwm-autostart.org b/herbstluftwm-autostart.org index 534dba0..97f8746 100755..100644 --- a/herbstluftwm-autostart.org +++ b/herbstluftwm-autostart.org @@ -16,7 +16,7 @@ * Introduction This is my literate configuration for {{{hl}}} and other programs -started at the beginning of a graphical session. {{{hl}}} is a manual +started at the beginning of a graphical session. {{{hl}}} is a manual tiling window manager and is configured via the ~herbstclient~ program. @@ -64,7 +64,7 @@ We remove all existing keybindings. hc keyunbind --all #+END_SRC -Choice of Modkey. =Mod1= is =Alt=, =Mod4= is =Super=. +Choice of Modkey. =Mod1= is =Alt=, =Mod4= is =Super=. #+BEGIN_SRC shell Mod=Mod4 @@ -222,7 +222,7 @@ Resizing frames and floating clients. The following cycles through the available layouts within a frame, but skips layouts, if the layout change wouldn't affect the actual window -positions. I.e. if there are two windows within a frame, the grid +positions. I.e. if there are two windows within a frame, the grid layout is skipped. #+BEGIN_SRC shell @@ -352,11 +352,11 @@ Copy ~inner_color~ to ~outer_color~. Gap between windows, tiled in a frame. #+BEGIN_SRC shell - hc set window_gap 32 + hc set window_gap 24 #+END_SRC We could reserve extra room on the edges common to all the tiled -windows. (Despite being a frame parameter, it really applies to the +windows. (Despite being a frame parameter, it really applies to the sum total of tiled windows in a given frame, so it belongs to this section). @@ -365,7 +365,7 @@ section). #+END_SRC If only one frame exists on a given monitor, no border gap is added to -the unique frame. But since we set the frame gap to 0, this has no +the unique frame. But since we set the frame gap to 0, this has no effect. #+BEGIN_SRC shell @@ -415,12 +415,12 @@ First, we cancel all previously bound rules. * Other programs -** Panel +** COMMENT Panel #+begin_src shell - xset +fp /home/blendux/.fonts/ - kill $(pgrep --full "panel.sh") - bash ~/.config/herbstluftwm/panel.sh + # xset +fp /home/blendux/.fonts/ + kill $(pgrep --full "panel.sh") + bash ~/.config/herbstluftwm/panel.sh #+end_src This panel is adapted from the one provided by default by {{{hl}}}, @@ -672,7 +672,7 @@ I'm using =lemonbar-xft=, which provides XFT support. #+end_src -** Dock +** COMMENT Dock #+BEGIN_SRC shell if [ $(pgrep plank) ] @@ -690,9 +690,8 @@ I'm using =lemonbar-xft=, which provides XFT support. if [ $(pgrep conky) ] then pkill conky - else - conky & fi + conky & #+end_src @@ -702,9 +701,9 @@ I'm using =lemonbar-xft=, which provides XFT support. if [ $(pgrep picom) ] then pkill picom - else - picom & fi + picom & + #+END_SRC diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..24a97cb --- /dev/null +++ b/init.vim @@ -0,0 +1,125 @@ +" ____ __ __ _ __ _ _ +" / __ )/ /__ ____ ____/ /___ (_) /( )_____ _ __(_)___ ___ __________ +" / __ / / _ \/ __ \/ __ / __ \/ / __/// ___/ | | / / / __ `__ \/ ___/ ___/ +" / /_/ / / __/ / / / /_/ / /_/ / / /_ (__ ) _| |/ / / / / / / / / / /__ +" /_____/_/\___/_/ /_/\__,_/\____/_/\__/ /____/ (_)___/_/_/ /_/ /_/_/ \___/ + +"Clear all autocommands +:autocmd! +let mapleader=";" + +"$VIMRC +autocmd bufwritepost ~/.config/nvim/init.vim source % +nnoremap <leader><leader> :e ~/.config/nvim/init.vim<CR> +"Vim files +set backup +set swapfile +set undofile +set backupdir=~/.local/share/nvim/backup// "Tilda file +set directory=~/.local/share/nvim/swap// "Swap file +set undodir=~/.local/share/nvim/undo// "Undo file +set undolevels=200 +set undoreload=2000 + +"Basic settings +filetype plugin on +syntax on +set number relativenumber +set scrolloff=4 "Show 3 lines below / above the cursor +"File encoding +set encoding=utf-8 +set fileencoding=utf-8 +"Tabs +set showtabline=2 +set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab +set autoindent +set smartindent + +"Code folding +set foldmethod=indent +set nofoldenable +set foldnestmax=10 +set foldlevel=2 + +"Navigation +"Vim +"nnoremap ZW :w<CR> +nnoremap <leader>q :q<CR> +nnoremap <leader>w :w<CR> +nnoremap <leader>x :x<CR> +"Buffer +nnoremap <leader>j :bn<CR> +nnoremap <leader>k :bp<CR> +nnoremap <leader>d :bd<CR> +nnoremap <leader>b :buffers<CR> +"Windows +"nnoremap <C-h> <C-w>h +"nnoremap <C-j> <C-w>j +"nnoremap <C-k> <C-w>k +"nnoremap <C-l> <C-w>l +"Tabs +nnoremap <leader>h :tabp<CR> +nnoremap <leader>l :tabn<CR> +nnoremap <leader>t :tabnew<CR> + +"netrw +"nnoremap <leader>e :E<CR> +"nnoremap <leader>s :S<CR> +"nnoremap <leader>v :vsplit<CR> +"nnoremap <leader>o :browse oldfiles<CR> + +"Plugins +call plug#begin('~/.local/share/nvim/vim-plug-blendoit') +Plug 'lervag/vimtex' +Plug 'vimwiki/vimwiki' +Plug 'vim-airline/vim-airline' +Plug 'vim-airline/vim-airline-themes' +Plug 'vim-pandoc/vim-pandoc' +Plug 'vim-pandoc/vim-pandoc-syntax' +Plug 'junegunn/limelight.vim' +Plug 'junegunn/goyo.vim' +Plug 'dhruvasagar/vim-table-mode' +Plug 'mbbill/undotree' +call plug#end() + +"Airline +let g:airline_theme='papercolor' +let g:airline#extensions#tabline#enabled=1 + +"Pandoc +"let g:pandoc#command#autoexec_command = "Pandoc! pdf" +let g:pandoc#filetypes#handled = ["pandoc", "markdown"] +let g:pandoc#filetypes#pandoc_markdown = 0 +let g:pandoc#command#custom_open = "zathura" + +"Goyo/Limelight +nnoremap <leader>g :Goyo<CR> +autocmd! User GoyoEnter Limelight +autocmd! User GoyoLeave Limelight! +let g:limelight_conceal_ctermfg = 'gray' +let g:limelight_conceal_ctermfg = 240 + +"Table mode +let g:table_mode_corner_corner='+' +let g:table_mode_header_fillchar='=' + +"FZF +nnoremap <leader>f :FZF<CR> + +"Undotree +nnoremap <leader>u :UndotreeToggle<CR> + +"writing shortcuts +"Jump to next tag <++> +inoremap <leader><leader> <Esc>/<++><CR>"_c4l + +"LaTeX +let g:vimtex_view_general_viewer='zathura' +autocmd FileType tex nnoremap <leader>c :VimtexCompile<CR> +"Insert mode +autocmd FileType tex inoremap <leader>i \textit{}<Space><++><Esc>T{i +autocmd FileType tex inoremap <leader>b \textbf{}<Space><++><Esc>T{i +autocmd FileType tex inoremap <leader>e \emph{}<Space><++><Esc>T{i +autocmd FileType tex inoremap <leader>t <Esc>bdwo\begin{<Esc>pa}<CR>\end{<Esc>pa}<++><Esc>O +autocmd FileType tex inoremap <leader>l \item +autocmd FileType tex inoremap <leader>s \textsc{}<Space><++><Esc>T{i
\ No newline at end of file diff --git a/scripts.org b/scripts.org index b179385..b179385 100755..100644 --- a/scripts.org +++ b/scripts.org diff --git a/void-linux-wallpaper.png b/void-linux-wallpaper.png Binary files differnew file mode 100644 index 0000000..bec6859 --- /dev/null +++ b/void-linux-wallpaper.png |