diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2022-08-25 12:30:49 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2022-08-25 12:30:49 -0400 |
commit | 798137e59b1ad68b4191cd0d66de240588733287 (patch) | |
tree | 6fc1d093715e1b5802aceb436175eb6392d07d2a | |
parent | e5858ed9e82b3dc4279df334417305c90d5586be (diff) |
2022-08-25 Update
41 files changed, 326 insertions, 408 deletions
diff --git a/.Xresources##hostname.workstation b/.Xresources##hostname.workstation index 438fd52..fb6b59e 100644 --- a/.Xresources##hostname.workstation +++ b/.Xresources##hostname.workstation @@ -31,10 +31,14 @@ !white *color7: #c0c7ca *color15: #c0c7ca -!other +! Other *background: #222d32 *foreground: #acb3b5 *cursorColor: #ebcb88 +! Slock +slock.color4: #cc3333 +slock.color6: #005577 + !other *.alpha: 0.82 diff --git a/.config/aliasrc b/.config/aliasrc index 65f126b..bb124c6 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -7,38 +7,38 @@ # # - - # #---Universal Shell Alias Configuration File---# # # First column contains the alias # Second column contains the command to execute -|---------+-----------------------------------------------------------------| -| :e | $EDITOR | -| :q | exit | -| adog | git log --all --decorate --oneline --graph | -| cdd | cd .. | -| e | $EDITOR | -| ew | nvim ./main.rnw | -| fu | fuck | -| f | vicd | -| g | git | -| goobook | goobook -c $HOME/.config/goobook/config | -| gor | go run *.go | -| info | info --vi-keys | -| mmi | make && sudo make install && [ -f config.def.h ] && rm config.h | -| op | e main.rnw | -| R | R -q | -| td | todotxt-machine -c ~/.config/todotxt-machine/config | -| tmcd | tmux attach-session -t | -| tmdd | tmux kill-session -t | -| tmls | tmux list-sessions | -| vpn | piactl get connectionstate | -| vc | piactl connect | -| vd | piactl disconnect | -| vm | piactl set region ca-montreal | -| vs | piactl set region auto | -| xx | chmod +x | -| yadog | yadm log --all --decorate --oneline --graph | -|---------+-----------------------------------------------------------------| +|---------+---------------------------------------------------------------------------------------------| +| :e | $EDITOR | +| :q | exit | +| adog | git log --all --decorate --oneline --graph | +| cdd | cd .. | +| e | $EDITOR | +| ew | nvim ./main.rnw | +| fu | fuck | +| f | vicd | +| g | git | +| goobook | goobook -c $HOME/.config/goobook/config | +| gor | go run *.go | +| info | info --vi-keys | +| mmi | make -j "$(nproc)" && sudo make -j "$(nproc)" install && [ -f config.def.h ] && rm config.h | +| op | e main.rnw | +| R | R -q | +| rs | rsync -avz | +| td | todotxt-machine -c ~/.config/todotxt-machine/config | +| tmcd | tmux attach-session -t | +| tmdd | tmux kill-session -t | +| tmls | tmux list-sessions | +| vpn | piactl get connectionstate | +| vc | piactl connect | +| vd | piactl disconnect | +| vm | piactl set region ca-montreal | +| vs | piactl set region auto | +| w | which | +| xx | chmod +x | +| yadog | yadm log --all --decorate --oneline --graph | +|---------+---------------------------------------------------------------------------------------------| diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 0025c36..e199428 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -28,14 +28,14 @@ <alias> <family>monospace</family> <prefer> - <family>Lig LinLibertineMO Nerd Font</family> - <family>Lig Linux Libertine Mono O</family> - <family>Linux Libertine Mono O</family> - <family>Brutalist Mono</family> - <family>Cartograph Mono CF</family> - <family>Maison Mono</family> - <family>Fira Code</family> - <family>Liberation Mono</family> + <family>Libertinus Mono</family> + <family>Libertinus Math</family> + <!-- <family>Font Awesome 5 Free</family> --> + <!-- <family>Font Awesome 5 Brands</family> --> + <!-- <family>Cartograph Mono CF</family> --> + <!-- <family>Maison Mono</family> --> + <!-- <family>Fira Code</family> --> + <!-- <family>Liberation Mono</family> --> </prefer> </alias> </fontconfig> diff --git a/.config/manual.part b/.config/manual.part index 92ea91c..46243f2 100644 --- a/.config/manual.part +++ b/.config/manual.part @@ -1,4 +1,4 @@ -title: dwm --- my personal configuration +title: dwm - my personal configuration rcsdate: $Date: 2021/04/08 23:51:08 $ author: Benjamin Chausse diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 2bc90e3..49df482 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -51,3 +51,4 @@ x-scheme-handler/spice=org.remmina.Remmina.desktop; x-scheme-handler/vnc=org.remmina.Remmina.desktop; x-scheme-handler/remmina=org.remmina.Remmina.desktop; application/x-remmina=org.remmina.Remmina.desktop; +application/rss+xml=chromium.desktop; diff --git a/.config/mutt/my-configs b/.config/mutt/my-configs index bd59b70..8e8ab77 100644 --- a/.config/mutt/my-configs +++ b/.config/mutt/my-configs @@ -9,11 +9,10 @@ set query_command="goobook query %s" # Add email to contacts macro index,pager a "<pipe-message>goobook add<return>" "add the sender address to Google contacts" - # Note that if you use an old version of mutt-wizard, # you will need to disable abook in it's script: # sed -i "s/^set\squery_command.*$//" /usr/share/mutt-wizard/mutt-wizard.muttrc - +# }}} # PGP Encryption: {{{ # I want pgp encryption by default when possible. # The following line makes this possible: @@ -23,7 +22,6 @@ set pgp_self_encrypt = yes set pgp_default_key = 'ABC4A5A7430D6309ACBD219044F94DD6456590C3' set pgp_import_command = "gpg --no-verbose --import -v %f" # }}} - # Muttprint: {{{ set print_command="muttprint" # Dump all headers diff --git a/.config/newsboat/urls b/.config/newsboat/urls index d43d04a..e9b27f5 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -6,32 +6,13 @@ # # #--- Podcasts ---# # -# http://feeds.wnyc.org/science-friday "Podcast" "~Podcast: Science Friday " -https://feeds.buzzsprout.com/191338.rss "Podcast" "~Podcast: Our Ludicrous Future (Tim Dodd) " -# https://carpoolcritics.libsyn.com/rss "Podcast" "~Podcast: Carpool Critics " -# https://linustechtips.libsyn.com/wanshow "Podcast" "~Podcast: The WAN Show" -# https://anchor.fm/s/3a6f26f8/podcast/rss "Podcast" "~Podcast: Total Space" -http://festivalofthespokennerd.libsyn.com/rss "Podcast" "~Podcast: A Podcast of Unnecessary Details" +https://linustechtips.libsyn.com/wanshow "Podcast" "~Podcast: The WAN Show" http://aproblemsquared.libsyn.com/rss "Podcast" "~Podcast: A Problem Squared" https://www.spreaker.com/show/4530061/episodes/feed "Podcast" "~Podcast: Talk Nerdy" http://sciencefriday.com/feed/podcast/podcast-episode "Podcast" "~Podcast: Science Friday" http://feeds.feedburner.com/SkepticallySpeaking "Podcast" "~Podcast: Science for the People" # #---Youtube---# # -# https://www.youtube.com/feeds/videos.xml?channel_id=UCtI0Hodo5o5dUb67FeUjDeA "Youtube" "~Youtube: SpaceX" -https://www.youtube.com/feeds/videos.xml?channel_id=UCxzC4EngIsMrPmbm6Nxvb-A "Youtube" "~Youtube: Scott Manley " -# https://www.youtube.com/feeds/videos.xml?channel_id=UC6uKrU_WqJ1R2HMTY3LIx5Q "Youtube" "~Youtube: Everyday Astronaut " -https://www.youtube.com/feeds/videos.xml?channel_id=UCRS3mwPLCNjuNM8qhBlsIUg "Youtube" "~Youtube: SpaceXentric " -https://www.youtube.com/feeds/videos.xml?channel_id=UC8jkbVLPvztz8TuE98OYo8Q "Youtube" "~Youtube: Front Page Tech" -# https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw "Youtube" "~Youtube: Linus Tech Tips" -https://www.youtube.com/feeds/videos.xml?channel_id=UCeeFfhMcJa1kjtfZAGskOCA "Youtube" "~Youtube: Techlinked" -# https://www.youtube.com/feeds/videos.xml?channel_id=UCdBK94H6oZT2Q7l0-b0xmMg "Youtube" "~Youtube: Short Circuit" -# https://www.youtube.com/feeds/videos.xml?channel_id=UCFLFc8Lpbwt4jPtY1_Ai5yA "Youtube" "~Youtube: LMG Clips" -https://www.youtube.com/feeds/videos.xml?channel_id=UC2eEGT06FrWFU6VBnPOR9lg "Youtube" "~Youtube: Girlfriend Reviews" -https://www.youtube.com/feeds/videos.xml?channel_id=UC6107grRI4m0o2-emgoDnAA "Youtube" "~Youtube: Smarter Everyday " -https://www.youtube.com/feeds/videos.xml?channel_id=UC3DkFux8Iv-aYnTRWzwaiBA "Youtube" "~Youtube: Peter Mckinnon " -https://www.youtube.com/feeds/videos.xml?channel_id=UCQ-AAXSt0M5Gx0-A9UGut8g "Youtube" "~Youtube: Larian Studios" -https://www.youtube.com/feeds/videos.xml?channel_id=UCBa659QWEk1AI4Tg--mrJ2A "Youtube" "~Youtube: Tom Scott" # https://www.youtube.com/feeds/videos.xml?channel_id=<++> "Youtube" "~Youtube: <++>" # #---Websites---# # @@ -39,17 +20,14 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCBa659QWEk1AI4Tg--mrJ2A "Yo https://xkcd.com/rss.xml "Website" "~Website: XKCD " https://www.archlinux.org/feeds/news/ "Website" "~Website: Arch Linux News" # https://blogues.desjardins.com/press_release/atom.xml "Website" "~Website: Desjardins - Nouvelles" -https://chausse.xyz/rss.xml "Website" "~Website: My personal Blog" -https://chausse.xyz/bp/rss.xml "Website" -# https://www.ledevoir.com/rss/section/societe/science.xml "Website" "~Website: Le Devoir Sciences" -# https://spacenews.com/feed/ "Website" "~Website: SpaceNews" http://www.usherbrooke.ca/genie/fil/3590/nouvelles.xml "Website" "~Website: USherbrooke Génie" -https://sidneyliebrand.io/feed.xml "Website" "~Website: Sidney Liebrand's Blog" https://artixlinux.org/feed.php "Website" "~Website: Artix Linux News" - -# #---Facebook---# # -# https://rss-bridge.bb8.fun/?action=display&bridge=Facebook&context=User&u=LaDebarqueEscalade&media_type=all&limit=-1&format=Atom "Facebook" "~Facebook: La Debarque" -# https://rss-bridge.bb8.fun/?action=display&bridge=Facebook&context=User&u=Poule-Sauvage-1529939780438862&media_type=all&limit=-1&format=Atom "Facebook" "~Facebook: Poule Sauvage" +https://based.cooking/atom.xml "Website" "~Website: Based Cooking" +https://www.gegi.usherbrooke.ca/nouvelles/s2eih22.xml "Website" "~Website: UdeS-S2" +https://www.gegi.usherbrooke.ca/nouvelles/s5eih22.xml "Website" "~Website: UdeS-S4" +https://www.gegi.usherbrooke.ca/nouvelles/s7h22.xml "Website" "~Website: UdeS-S7" +# https://fitgirl-repacks.site/feed "Website" "~Website: FitGirl Repack" # #---Flickr---# # https://www.flickr.com/services/feeds/photos_public.gne?id=130608600@N05&lang=en-us&format=rss_200 "Flickr" "~Flickr: Spacex Latest" +https://linustechtips.libsyn.com/wanshow/feed.xml diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5f1b2df..a140716 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -22,14 +22,28 @@ endif call plug#begin() " Bracket Completion Plug 'jiangmiao/auto-pairs' +" Copilot +Plug 'github/copilot.vim' " Smooth scrolling Plug 'psliwka/vim-smoothie' +" Sonic Pi +Plug 'lilyinstarlight/vim-sonic-pi' +" Easy ctags management +Plug 'ludovicchabant/vim-gutentags' +" Golang in vim +Plug 'fatih/vim-go' +" Add TOC to VimWiki +Plug 'preservim/tagbar' +" Vimwiki +Plug 'vimwiki/vimwiki' " Automated vim bulletpoints Plug 'dkarter/bullets.vim' " Vim css hex highlight Plug 'chrisbra/Colorizer' " Matlab inside neovim Plug 'MortenStabenau/matlab-vim' +" Easily align elements +Plug 'junegunn/vim-easy-align' " Vim todos inside the quickfix window Plug 'Dimercel/todo-vim' " Deoplete @@ -53,8 +67,14 @@ Plug 'mattn/emmet-vim', { 'for': [ 'markdown', 'html' ] } Plug 'turbio/bracey.vim', { 'for': [ 'html', 'stylesheet', 'javascript'] } " My colorscheme Plug 'ChausseBenjamin/friffle-vim' +" Xresources colorscheme +Plug 'nekonako/xresources-nvim' " Elly colorscheme -Plug 'ryuta69/elly.vim' +" Plug 'ryuta69/elly.vim' +" Relaxed theme +Plug 'ChausseBenjamin/relaxed-vim' +" PaperColor Theme +Plug 'NLKNguyen/papercolor-theme' " Vim Fugitive Plug 'tpope/vim-fugitive' " Vim-Surround @@ -92,7 +112,8 @@ call plug#end() " Sensible defaults {{{ " Aesthetics & basics syntax on -colo friffle +" colo friffle +colo xresources " colorscheme tweaks {{{ hi Normal guibg=NONE hi CursorLineNr guibg=NONE @@ -147,8 +168,9 @@ set spl=fr " French prose inoremap <leader>t <++> inoremap <leader>: <Esc>/<++><CR>"_c4l -" Quickly save -nnoremap <silent> <Leader>w :update<CR> +" Note 80 column disrespect +highlight ColorColumn guibg='#B7416E' +call matchadd('ColorColumn', '\%81v', 80) " Logical way to Y ank nnoremap Y y$ @@ -164,6 +186,7 @@ nnoremap <C-l> <C-w>l " Saving and quitting buffers nnoremap ZF ZQ +nnoremap <silent> <Leader><Space> :update<CR> nnoremap <silent> <leader>w :update<CR> " Remove trailing white spaces @@ -181,6 +204,16 @@ nnoremap <silent> <leader>t :update \| :!compiler <c-r>%<CR><CR> \| :!sage %:r.s nnoremap [c :normal! mt[s1z=`t nnoremap ]c :normal! mt]s1z=`t +" Synctex test +function! Synctex() + execute "silent !setsid zathura --synctex-forward " \ + . line('.') . ":" . col('.') . ":" . \ + bufname('%') . " " . g:syncpdf + redraw! + execute "silent !sleep 0.2 && dwmc rotatestack -1" + redraw! +endfunction +map <C-enter> :call Synctex()<cr> " Auto-enable Goyo for certain filetypes au filetype mail,todoist Goyo @@ -198,6 +231,53 @@ let todoist = { \ }, \} +" vim fugitive + + +" Vimwiki +let g:vimwiki_list = [{ +\ 'template_path': '$HOME/vimwiki/templates', +\ 'template_default': 'default', +\ 'template_ext': '.html' +\ }] +" wiki 1 +let wiki_1 = {} +let wiki_1.path = '/home/master/Dropbox/A/scholar/sherbrooke/s2/wiki' +let wiki_1.path_html = '/home/master/Dropbox/A/scholar/sherbrooke/s2/wiki-html' +" wiki 2 +let wiki_2 = {} +let wiki_2.path = '~/vimwiki/' +let wiki_2.path_html = '~/vimwiki_html/' +" list +let g:vimwiki_list = [wiki_1, wiki_2] +" custom html compiler +autocmd Filetype vimwiki nnoremap <buffer> <leader>r :VimwikiAll2HTML<CR> +autocmd Filetype vimwiki nnoremap <buffer> <leader>o :Vimwiki2HTMLBrowse<CR> +hi VimwikiHeader1 guifg=#ebcb88 +hi VimwikiHeader2 guifg=#66aabb +hi VimwikiHeader3 guifg=#ae545a +hi VimwikiHeader4 guifg=#b7416e +hi VimwikiHeader5 guifg=#b7416e +hi VimwikiHeader6 guifg=#b7416e + +" VimTagBar +let g:tagbar_type_vimwiki = { +\ 'ctagstype':'vimwiki', +\ 'kinds':['h:header'], +\ 'sro':'&&&', +\ 'kind2scope':{'h':'header'}, +\ 'sort':0, +\ 'ctagsbin':'~/vimwiki/scripts/vwtags.py', +\ 'ctagsargs': 'default' +\ } +nnoremap <c-bslash> :TagbarToggle<CR><C-w>l + + + +" EasyAlign +xmap ga <Plug>(EasyAlign) +nmap ga <Plug>(EasyAlign) + " Markdown syntax let g:vim_markdown_strikethrough = 1 let g:vim_markdown_folding_disabled = 1 @@ -228,9 +308,15 @@ let g:user_emmet_leader_key=',' let g:vimtex_view_general_viewer = 'zathura' let g:tex_flavor = 'latex' " TOC - nnoremap <C-n> :VimtexTocToggle<cr> + autocmd Filetype tex nnoremap <c-bslash> :VimtexTocToggle<cr><C-w><C-l> " Underscore errors let g:tex_no_error=1 +" No fancy math symbol substitution + let g:vimtex_syntax_conceal_disable=1 + let g:vimtex_toc_config = { + \ 'split_pos': 'vert belowright' + \} + " let vimtex_index_split_pos='vert belowright' " Nvim-R " Folding @@ -240,7 +326,7 @@ let g:user_emmet_leader_key=',' " Follow colorscheme let rout_follow_colorscheme = 0 " Run in external term -let R_external_term = 'alacritty -t Nvim-R -e' " Run R in in st + let R_external_term = 'st -t Nvim-R -e' " Run R in in st " dwm automation when starting the terminal function! s:customNvimRMappings() nmap <buffer> <Leader>sr <Plug>RStart \| :silent exec "!sleep 0.2 && dwmc rotatestack -1 && dwmc focusstack +1"<CR> @@ -276,15 +362,30 @@ let g:bullets_enabled_file_types = [ \ 'gitcommit', \ 'scratch' \] + " Vim Todo nnoremap <leader>d :TODOToggle<CR><C-w>jjj let g:todo_below = 1 let g:todo_winheight = 7 +" +inoremap << « +inoremap >> » + let g:CommentFrame_TextWidth=78 " }}} " Vim Stab {{{ + +let g:stabWidth = 50 +let g:stabHeight = 50 +let g:stabLeader = "<S-Tab>" +let g:stabEnter = "<Enter>" + +" function! StabWindow() abort +" let width = 50 +" let height = 50 + let g:bTitle = map(copy(getbufinfo()), 'v:val.name') " Initialize the number of the first preview let cBuf = bufnr('%')+1 | if cBuf > len(g:bTitle) | let cBuf = 1 | endif diff --git a/.config/shortcutrc b/.config/shortcutrc index ba48952..841899b 100644 --- a/.config/shortcutrc +++ b/.config/shortcutrc @@ -6,8 +6,6 @@ # |_____/|_| |_|\___/|_| \__\___|\__,_|\__|_| \___| # - - # #---Universal Shortcut Configuration File---# # # First column should have the directory's Label # Second column should contain the shortcut itself @@ -24,8 +22,9 @@ | Neovim | vi | $HOME/.config/nvim | | Personnal | ps | $HOME/Dropbox/A/personal/ | | Wallpapers | wp | $HOME/Dropbox/A/personal/photos/wallpapers | -| RSS | rss | $HOME/.config/newsboat | -| Scholar | sf | /home/master/Dropbox/A/scholar/sherbrooke/s1 | +| Workspace | ws | $HOME/Workspace | +| RSS | rss | $HOME/.sfeed/ | +| Scholar | sf | $HOME/Dropbox/A/scholar/sherbrooke/s2 | | Scripts | sc | $HOME/.local/bin | | Hotkeys | sx | $HOME/.config/sxhkd | | Images | im | $HOME/Dropbox/A/personal/photos/unsorted | diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 514d1f3..5b781ab 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -28,15 +28,15 @@ super + shift + q ## Toggle the dwm bar super + b dwmc togglebar -## Change layout to {tiling, monocle} +## Change layout to {tiling, bottomstack-horizontal} super + {_,shift} t - dwmc setlayoutex {0,2} + dwmc setlayoutex {0,4} ## Change layout to {grid, floating} super + {_,shift} g - dwmc setlayoutex {5,1} + dwmc setlayoutex {7,1} ## Change layout to {centeredmaster, floatingcenteredmaster} super + {_,shift} m - dwmc setlayoutex {3,4} + dwmc setlayoutex {5,6} ## Make window fullscreen super + f dwmc fullscreen @@ -63,7 +63,7 @@ super + {h,l} dwmc setmfact {-,+}0.05 ## Toggle view next tag super + Tab - dwmc view + dwmc view 1 ## Cycle forward/backward through monitor focus super + {comma,period} dwmc focusmon {-,+}1 @@ -101,13 +101,14 @@ super + shift + 0 #-# Miscellaneous #-# ## Quit Current App super + q - kill -15 `xdotool getwindowfocus getwindowpid` + dwmc killclient + # kill -15 `xdotool getwindowfocus getwindowpid` ## Change Keyboard Layout alt + Return layouttoggle ## Find your cursor super + BackSpace - find-cursor -l 4 -c "#66aabb" -s 150 + find-cursor -o 8 -O "#e29537" -c "#0a463c" -l 8 ## Toggle Compositor super + c killall picom || setsid picom @@ -130,39 +131,39 @@ super + w $BROWSER ## TUI Email Client (neomutt) super + e - killall neomutt || $TERMINAL -e neomutt && mw -Y -## TUI calendar (calendar.vim) + toggle -t=mail neomutt +## TUI calendar (calcurse) super + shift + e - $TERMINAL -t calendar -e nvim -c ":Calendar -view=week -first_day=monday" -## TUI RSS Reader (newsboat) + dropdowntoggle calendar calcurse +## TUI RSS Reader (sfeed_curses) super + n - killall newsboat || $TERMINAL -e newsboat ; kill -37 $(pidof dwmblocks) + killall sfeed_curses || st -c "terminal" -t "rss" -e sfeed_curses $HOME/.sfeed/feeds/* && kill -37 $(pidof dwmblocks) #-# Floating Apps/Utilities #-# ## Network Manager XF86WLAN - killall nmtui || dropdowntoggle network nmtui + dropdowntoggle network nmtui ## TUI Audio Mixer (alsamixer) super + p - killall alsamixer || dropdowntoggle audio alsamixer -c 0 + dropdowntoggle audio alsamixer -c 0 ## TODOs (Todoist.nvim) super + space - dropdowntoggle todoist nvim +Todoist + dropdowntoggle todoist nvim +"Todoist" ## Terminal Calculator super + a - tmux-toggle calc R --no-save + toggle-tmux calc R -q --no-save ## Terminal Shell super + shift + a - tmux-toggle terminal zsh + toggle-tmux terminal $SHELL ## TUI Youtube (youtube-viewer) -super + v - cat ~/.cache/yt-sub | dmenu -p "Query: " | ytfzf -D - -## Webcam +super + shift + v + toggle -f -t=youtube youtube-viewer +## IRC chat super + shift + w - camtoggle + toggle-tmux irc weechat ## Force Start VLC Podcast super + shift + p - tmux-toggle podcast pod-dl + toggle-tmux podcast pod-dl #-# Prompts (dmenu) #-# ## Application Launcher @@ -184,14 +185,17 @@ alt + grave alt + {_,shift} + m { mountmenu, umountmenu } ## Recording Utility -alt + r - recordmenu kill || recordmenu +# alt + r +# recordmenu kill || recordmenu ## Preview Fonts alt + f fontpreview -## Start SSH session -alt + s - pickssh +# ## Start SSH session +# alt + s +# pickssh +## Open Password Manager +alt + p + dmenu_bw ## Select bright or dark .Xresources theme alt + Escape theme="$(ls $HOME/.config/Xresources/ | dmenu)" && cat "$HOME/.config/Xresources/$theme" | xrdb -load @@ -234,13 +238,19 @@ shift + XF86MonBrightnessDown xbacklight -time 100 -set 5 && screenstatus ## Display Setup Utility (mirror or extend displays) XF86Display - arandr + killall arandr || setsid arandr ## Disable Trackpad XF86Favorites trackpadtoggle 0 ## Enable Trackpad shift + XF86Favorites trackpadtoggle 1 +## Quick Lock +super + shift + XF86Favorites + sudo loginctl lock-sessions +## Quick Hibernate +super + alt + shift + XF86Favorites + sudo loginctl hybrid-sleep ## Unmount Devices shift + XF86Tools umountmenu @@ -258,6 +268,6 @@ super + shift + {bracketright, bracketleft} ## Toggle music playback super + backslash playerctl play-pause -# ## Network Manager -# super + shift + n -# killall nmtui || dropdowntoggle network nmtui +## Network Manager +super + shift + n + toggle -f -t=network nmtui diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 2bd7626..850b124 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -147,15 +147,12 @@ set rulerformat= fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw " HTMLs -fileviewer *.html w3m -dump %c filextype *.html,*.htm firefox %f 2>/dev/null & +" fileviewer *.html highlight -O xterm256 -s edit-godot %c " Text based files -filetype <*.csv,text/*> nvim -fileviewer <*.csv,text/*> env -uCOLORTERM highlight -i %c --stdout -O ansi -" fileviewer <*.csv,text/*> env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p -fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM highlight -i %c --stdout -O ansi -" fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p +filetype <*.html, *.htm, *.csv, text/*> nvim +fileviewer <*.csv,text/*> highlight -O xterm256 -s nord %c " PDFs filextype *.pdf zathura %c %i & @@ -191,17 +188,12 @@ fileviewer <video/*> \ %pc \ vifmimg clear -" " Images -" filextype <image/*> sxiv %c %i & -" fileviewer <image/*> -" \ vifmimg draw %px %py %pw %ph %c -" \ %pc -" \ vifmimg clear - " Images -filextype <image/*> imv %c %i & +filextype <image/*> sxiv %c %i & fileviewer <image/*> - \ show-sixel %c %pw %ph %pd + \ vifmimg draw %px %py %pw %ph %c + \ %pc + \ vifmimg clear " Archives fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c @@ -236,7 +228,8 @@ nmap q :q<cr> nnoremap , : " Set highlighted image as wallpaper -nnoremap bg :!sh $SCRIPTS/setbg %c &<cr> +nnoremap bg :!sh $SCRIPTS/makewall %d/%c &<cr> +" nnoremap bg :!sh notify-send "%c" &<cr> " Upload highlighted file to 0x0.st and then save url to clipboard nnoremap 0x0 :!curl -s -F'file=@%c' https://0x0.st > /dev/null | xclip -sel clip && notify-send "vifm" "File uploaded: $(xclip -o -selection clipboard)" &<cr> diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 812741b..77da54a 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -36,6 +36,7 @@ map J zoom in map K zoom out map i recolor map p print +map space : set synctex true set synctex-editor-command "nvr --remote-silent %f -c %l" diff --git a/.local/bin/dropdowntoggle b/.local/bin/dropdowntoggle index 056a716..7e33897 100755 --- a/.local/bin/dropdowntoggle +++ b/.local/bin/dropdowntoggle @@ -6,10 +6,11 @@ # in the dropdown window. class="$1" -title="dropdown_$class" -active="$(xdotool search --name $title | wc -l)" +active="$(xdotool search --name $class | wc -l)" shift +echo "$active" + case "$active" in 0) $TERMINAL -c "dropdown" -t "$class" -e "$@" & ;; diff --git a/.local/bin/dwmbar/dwmb-battery b/.local/bin/dwmbar/dwmb-battery index 007bae4..2c581e1 100755 --- a/.local/bin/dwmbar/dwmb-battery +++ b/.local/bin/dwmbar/dwmb-battery @@ -3,13 +3,13 @@ # Prints all batteries, their percentage remaining and an emoji corresponding # to charge status. -case $BLOCK_BUTTON in - 3) notify-send " Battery module" " : discharging +case $BUTTON in + 3) notify-send -a " Battery module" " : discharging : not charging - : stagnant charge + : stagnant charge : charging : charged - : battery very low!" ;; + : battery very low!" ;; esac # acpi alternative diff --git a/.local/bin/dwmbar/dwmb-date b/.local/bin/dwmbar/dwmb-date index 1943f10..5f193a1 100755 --- a/.local/bin/dwmbar/dwmb-date +++ b/.local/bin/dwmbar/dwmb-date @@ -2,7 +2,7 @@ date +" %a %b %d " -case $BLOCK_BUTTON in +case $BUTTON in 1) notify-send -a " Calendar" "$(cal | tail -n +2)" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac diff --git a/.local/bin/dwmbar/dwmb-dotfiles b/.local/bin/dwmbar/dwmb-dotfiles index aca2727..90e311b 100755 --- a/.local/bin/dwmbar/dwmb-dotfiles +++ b/.local/bin/dwmbar/dwmb-dotfiles @@ -13,7 +13,7 @@ fi echo " $warn " -case $BLOCK_BUTTON in +case $BUTTON in 1) $TERMINAL -c dropdown -e yadm diff ;; 3) $TERMINAL -c dropdown -e dfup ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; diff --git a/.local/bin/dwmbar/dwmb-layout b/.local/bin/dwmbar/dwmb-layout index a8dbbe3..c3e72a4 100755 --- a/.local/bin/dwmbar/dwmb-layout +++ b/.local/bin/dwmbar/dwmb-layout @@ -1,7 +1,7 @@ #!/bin/sh echo " $(cat $HOME/.cache/layout) " -case $BLOCK_BUTTON in +case $BUTTON in 1) layouttoggle ;; 2) remaps && Capslock remaps reinitialized;; 3) notify-send -a " Keyboard" "Click this widget to toggle the keyboard layout between french and english. diff --git a/.local/bin/dwmbar/dwmb-mail b/.local/bin/dwmbar/dwmb-mail index bd8d56b..9c7e4fa 100755 --- a/.local/bin/dwmbar/dwmb-mail +++ b/.local/bin/dwmbar/dwmb-mail @@ -3,10 +3,10 @@ # Displays number of unread mail and an loading icon if updating. # When clicked, brings up `neomutt`. -case $BLOCK_BUTTON in +case $BUTTON in 1) setsid -f "$TERMINAL" -e neomutt && mw -Y;; 2) setsid -f mw -Y ;; - 3) notify-send " Mail module" "\- Shows unread mail + 3) notify-send -a " Mail" "\- Shows unread mail - Shows if syncing mail - Left click opens neomutt - Middle click syncs mail" ;; diff --git a/.local/bin/dwmbar/dwmb-news b/.local/bin/dwmbar/dwmb-news index b62c576..9103149 100755 --- a/.local/bin/dwmbar/dwmb-news +++ b/.local/bin/dwmbar/dwmb-news @@ -2,8 +2,8 @@ nb=$(cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ if($1>0) print " " $1}')$(cat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsboat/.update 2>/dev/null) ") echo " $nb" -case $BLOCK_BUTTON in +case $BUTTON in 1) "$TERMINAL" -e newsboat ;; - 3) newsup ;; + 3) sfeed_update && notify-send -t " News:" "Successfully updated" ;; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac diff --git a/.local/bin/dwmbar/dwmb-test b/.local/bin/dwmbar/dwmb-test index 7508072..7f9cb29 100755 --- a/.local/bin/dwmbar/dwmb-test +++ b/.local/bin/dwmbar/dwmb-test @@ -1,6 +1,10 @@ #!/bin/sh -cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 99 | head -n 1 -case $BLOCK_BUTTON in - 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac
\ No newline at end of file +date '+%b %d (%a) %I:%M%p - %N' + +case $BUTTON in + 1) notify-send "left click" && kill -34 "$(pidof dwmblocks)";; + 2) notify-send "middle click" && kill -34 "$(pidof dwmblocks)";; + 3) notify-send "right click" && kill -34 "$(pidof dwmblocks)";; +esac + diff --git a/.local/bin/dwmbar/dwmb-time b/.local/bin/dwmbar/dwmb-time index 4fb102b..54964ca 100755 --- a/.local/bin/dwmbar/dwmb-time +++ b/.local/bin/dwmbar/dwmb-time @@ -1,6 +1,6 @@ #!/bin/sh date +" %H:%M " -case $BLOCK_BUTTON in +case $BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; -esac
\ No newline at end of file +esac diff --git a/.local/bin/dwmbar/dwmb-vpn b/.local/bin/dwmbar/dwmb-vpn index 9ddb5b5..eb5e925 100755 --- a/.local/bin/dwmbar/dwmb-vpn +++ b/.local/bin/dwmbar/dwmb-vpn @@ -4,26 +4,26 @@ vpnstatus="$(piactl get connectionstate)" case "$vpnstatus" in - Disconnected) icon=" " ;; - Connecting) icon=" " ;; - Connected) icon=" " ;; - Interrupted) icon=" " ;; - Reconnecting) icon=" " ;; - DisconnectingToReconnect) icon=" ";; - Disconnecting) icon=" " ;; + Disconnected) icon=" " ;; + Connecting) icon=" " ;; + Connected) icon=" " ;; + Interrupted) icon=" " ;; + Reconnecting) icon=" " ;; + DisconnectingToReconnect) icon=" ";; + Disconnecting) icon=" " ;; esac # case "$vpnstatus" in # *"Not"*) icon="" # ;; # *"Connected"*) icon="" -# ;; + # ;; # *"Connecting"*) icon=" " -# ;; + # ;; # *) icon="" -# esac + # esac -echo " $icon" + echo " $icon" # \033]01;31\] # pink @@ -33,9 +33,13 @@ echo " $icon" # \033]01;34\] # blue # \033]01;33\] # bold yellow # s/onnected\sto\s//; -case $BLOCK_BUTTON in - 1) piactl connect && notify-send -a "VPN" "Connected" && kill -36 $(pidof dwmblocks);; - 2) vpnmenu ;; - 3) piactl disconnect && notify-send -a "VPN" "Disonnected" && kill -36 $(pidof dwmblocks);; + +case $BUTTON in + 1) piactl connect && notify-send -a "VPN" "Connected" && kill -36 $(pidof dwmblocks) && \ + sleep 5 && kill -36 $(pidof dwmblocks);; + 2) vpnmenu && kill -36 $(pidof dwmblocks) && \ + sleep 5 && kill -36 $(pidof dwmblocks);; + 3) piactl disconnect && notify-send -a "VPN" "Disonnected" && kill -36 $(pidof dwmblocks) && \ + sleep 5 && kill -36 $(pidof dwmblocks);; 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac diff --git a/.local/bin/emoji-copy b/.local/bin/emoji-copy index 84e50df..7b8ce94 100755 --- a/.local/bin/emoji-copy +++ b/.local/bin/emoji-copy @@ -8,7 +8,8 @@ choice=$( cat ~/.local/share/emoji | dmenu -i -p "Font Awesome & Emojis: ") icon=$(echo $choice | sed "s/^\(.\).*$/\1/") -printf "$icon" | wl-copy +# printf "$icon" | wl-copy +printf "$icon" | xsel -b [ -z "$icon" ] && notify-send -a "Clipboard:" "Operation Cancelled" diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index 0beb361..5671238 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -11,13 +11,14 @@ case "$1" in *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*|*video.twimg.com*) - mpv "$1" ;; + # mpv "$1" ;; + mpv "$1" --ytdl-raw-options=format='bestvideo[height<=720]+bestaudio/best[height<=720]' ;; # mpv --no-config "$1" ;; # setsid -f mpv --no-config "$1" ;; *png|*jpg|*jpe|*jpeg|*gif|*.webp) curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;; - *mp3|*flac|*opus|*mp3?source*) - setsid -f tsp curl -LO "$1" >/dev/null 2>&1 ;; + *mp3*|*flac|*opus|*mp3?source*) + toggle-tmux podcast vlc -I ncurses "$(echo "$1" | sed 's/\(\.mp3\).*/\1/')";; *) if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR $1" else setsid -f "$BROWSER" "$1" >/dev/null 2>&1; fi ;; diff --git a/.local/bin/pod-dl b/.local/bin/pod-dl index 8dfd150..b832709 100755 --- a/.local/bin/pod-dl +++ b/.local/bin/pod-dl @@ -6,5 +6,6 @@ file=$(tail -n 1 $HOME/.local/share/newsboat/queue) url=$(echo $file | sed 's/."\/home.*$//') dir=$(echo $file | sed 's/^.*"\/home/\/home/; s/.$//') -# $TERMINAL -c dropdown -t Podcast -e ~/.local/bin/tmux-vlc "$url" +[[ -z "$url" ]] && notify-send -a " Podcasts" "No podcasts in queue..." && exit + vlc -I ncurses "$url" && echo "" > $HOME/.local/share/newsboat/queue diff --git a/.local/bin/screenstatus b/.local/bin/screenstatus index 763311b..5e0623c 100755 --- a/.local/bin/screenstatus +++ b/.local/bin/screenstatus @@ -1,4 +1,4 @@ #!/bin/sh -notify-send.sh --replace-file /tmp/vol-notif -a "Screen Brightness" "$(xbacklight -get | sed 's/\..*$//g')%" +notify-send.sh --replace-file /tmp/vol-notif -a " Brightness" "$(xbacklight -get | sed 's/\..*$//g')%" diff --git a/.local/bin/setbg b/.local/bin/setbg index 052b076..bac38b9 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -15,7 +15,7 @@ bgloc="${XDG_CACHE_HOME:-$HOME/.cache/}wall.png" # # If pywal is installed, use it. # wal -s -i "$(readlink -f "$bgloc")" -o "${XDG_CONFIG_HOME:-$HOME/.config}/wal/postrun" >/dev/null 2>&1 -# xwallpaper --zoom "$bgloc" & -killall swaybg -setsid swaybg -i "$bgloc" -m "$fill" +xwallpaper --zoom "$bgloc" & +# killall swaybg +# setsid swaybg -i "$bgloc" -m "$fill" diff --git a/.local/bin/shortcutgen b/.local/bin/shortcutgen index df088e4..be1bb09 100755 --- a/.local/bin/shortcutgen +++ b/.local/bin/shortcutgen @@ -1,7 +1,7 @@ #!/bin/sh # Removing unecessary comments and documentation -raw=$(cat $HOME/.config/shortcutrc | tail -n +19 "$HOME/.config/shortcutrc" | sed "s/^|\s*//g; +raw=$(cat $HOME/.config/shortcutrc | tail -n +17 "$HOME/.config/shortcutrc" | sed "s/^|\s*//g; s/\(.*\)|\(.*\)|\(.*\)|/\1|\2|\3/g; s/\s*$//g; /^$/d" | head -n -1) diff --git a/.local/bin/sysact b/.local/bin/sysact index 5249070..a4b01ed 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -12,7 +12,7 @@ cmds="\ lock sudo loginctl lock-sessions leave dwm killall xinit renew dwm killall dwm - hibernate sudo loginctl hibernate + hibernate sudo loginctl hybrid-sleep reboot ${reb:-sudo -A reboot} shutdown ${shut:-sudo -A shutdown -h now} display off xset dpms force off" diff --git a/.local/bin/texinit b/.local/bin/texinit index 8d5adf2..12f5fb5 100755 --- a/.local/bin/texinit +++ b/.local/bin/texinit @@ -1,11 +1,6 @@ #!/bin/sh - -case form in "$1"; - rnw) - cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.rnw ;; - *) - cp $HOME/Dropbox/A/Scholar/All/Templates/LaTeX/cegep/main.tex ;; -esac - -mkdir archives - +[ -z "$1" ] && dir="./tex" || dir="$1" +[ -z "$TEX" ] && repo="https://git.chausse.xyz/sherbrooke-tex" || repo="$TEX" +git clone -b template "$repo" "$dir" +cd "$dir" +[ -z "$BIB" ] || cp -f "$BIB" ./ diff --git a/.local/bin/toggle b/.local/bin/toggle index 7b29815..cce491b 100755 --- a/.local/bin/toggle +++ b/.local/bin/toggle @@ -25,5 +25,5 @@ software="$1" shift flags="$@" -killall "$software" || foot -a "$class" -T "$title" sh -c $software $flags +killall "$software" || st -c "$class" -t "$title" -e $software $flags diff --git a/.local/bin/trackpadtoggle b/.local/bin/trackpadtoggle index 4bf01ae..0902933 100755 --- a/.local/bin/trackpadtoggle +++ b/.local/bin/trackpadtoggle @@ -4,8 +4,11 @@ # Give this 0 to disable it. input="$1" +num="$(xinput --list | \ + grep Touchpad | \ + sed "s/.*id=\([0-9]*\).*/\1/")" -xinput --set-prop 12 "Device Enabled" $input +xinput --set-prop $num "Device Enabled" $input case "$input" in 0) notify-send -i "$HOME/.fonts/svg/mouse-pointer.svg" -a Trackpad "Trackpad successfully disabled" ;; diff --git a/.local/bin/volumectl b/.local/bin/volumectl index d8766b7..b07406c 100755 --- a/.local/bin/volumectl +++ b/.local/bin/volumectl @@ -19,5 +19,5 @@ esac mute="" vol=$(awk '/%/ {gsub(/[\[\]]/,""); print $4}' <(amixer sget Master)) amixer sget Master | grep off && mute="(muted)" -notify-send.sh -t 1000 --replace-file /tmp/vol-notif -a Volume "$vol $mute" +notify-send.sh -t 1000 --replace-file /tmp/vol-notif -a " Volume" "$vol $mute" diff --git a/.local/share/applications/file.desktop b/.local/share/applications/file.desktop index 33e187f..2bba3bb 100644 --- a/.local/share/applications/file.desktop +++ b/.local/share/applications/file.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=File Manager -Exec=/usr/bin/alacritty -e lf %u +Exec=/usr/bin/st -e lf %u diff --git a/.local/share/applications/mail.desktop b/.local/share/applications/mail.desktop index 27ff82d..6894163 100644 --- a/.local/share/applications/mail.desktop +++ b/.local/share/applications/mail.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Mail -Exec=/usr/bin/alacritty -e neomutt %u +Exec=/usr/local/bin/st -c mail -e neomutt %u diff --git a/.local/share/applications/text.desktop b/.local/share/applications/text.desktop index 812da78..8c04790 100644 --- a/.local/share/applications/text.desktop +++ b/.local/share/applications/text.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Text editor -Exec=/usr/bin/alacritty -e nvim %u +Exec=/usr/bin/st -e nvim %u diff --git a/.local/share/applications/torrent.desktop b/.local/share/applications/torrent.desktop index f6d28d9..a987bcc 100644 --- a/.local/share/applications/torrent.desktop +++ b/.local/share/applications/torrent.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Torrent -Exec=/usr/bin/env transadd %U +Exec=/usr/local/bin/st -c mail -e neomutt %u diff --git a/.mozilla/firefox/jzkuxgsr.default-release-1625619065722/chrome/userChrome.css b/.mozilla/firefox/jzkuxgsr.default-release-1625619065722/chrome/userChrome.css deleted file mode 100644 index 5ba733b..0000000 --- a/.mozilla/firefox/jzkuxgsr.default-release-1625619065722/chrome/userChrome.css +++ /dev/null @@ -1,194 +0,0 @@ -:root { - --arrowpanel-border-color: #737373ff !important; - --arrowpanel-color: #3d3d3dff !important; - --arrowpanel-background: #222d32ff !important; - --autocomplete-popup-background: #222d32ff !important; - --autocomplete-popup-color: #3d3d3dff !important; - --chrome-content-separator-color: transparent !important; - --chrome-nav-bar-controls-border-color: transparent !important; - /* inactive tabs / top bar background color */ - --lwt-accent-color: #222d32ff !important; - /* tab / bookmarks bar text color */ - --lwt-text-color: #716045ff !important; - /* URL field background color */ - --lwt-toolbar-field-background-color: #222d32ff !important; - /* top bar button hover background color */ - --lwt-toolbarbutton-hover-background: #222d32ff !important; - /* top bar button fill color */ - --lwt-toolbarbutton-icon-fill: #4b8797ff !important; - --moz-menubartext: #737373ff !important; - --tab-min-height: 26px !important; - --tabs-border: transparent !important; - --toolbar-bgcolor: #222d32ff !important; - --toolbarbutton-border-radius: 0px !important; - --toolbarbutton-inner-padding: 5px !important; - --toolbarbutton-outer-padding: 0px !important; - /* --toolbox-border-bottom-color: 0px !important; */ - --urlbar-separator-color: #222d32ff !important; -} - -/* Toolbar / content area border */ -#navigator-toolbox { - border-bottom: 0px !important; -} - -/* Bookmark toolbar */ -#PersonalToolbar { - max-height: 22px !important; - padding: 0px 6px !important; - border-color: transparent !important; -} - -:root[uidensity=compact] #PersonalToolbar { - padding-inline: 0px !important; -} - -:root[uidensity=compact] #urlbar, :root[uidensity=compact] #searchbar { - min-height: 25px; -} - -:root[uidensity=compact] #nav-bar .toolbarbutton-1 { - padding: 0px !important; -} - -#TabsToolbar { - margin-bottom: -3px !important; - margin-top: -1px !important; - margin-left: 40vw !important; - margin-right: 1px !important; -} - -#tabs-newtab-button { - margin-top: 0px !important; - margin-left: 0px !important; - margin-bottom: 0px !important; -} - -#nav-bar { - margin-bottom: 0px !important; - margin-top: -27px !important; - margin-right: 6vw !important; - /* margin-right: 60vw !important; */ - border-top: 0px !important; -} - -#urlbar[focused=true], #urlbar, #urlbar-container, #nav-bar-customization-target.customization-target { - border: none !important; - min-width: 100% !important; -} - -#urlbar-container { - padding: 0px 0px !important; - margin: 0px !important; -} - -.tabbrowser-tab, .tab-background, .tab-content { - mask-image: unset !important; - margin: 0px !important; - width: 0vw !important; - height: 0vw !important; -} - -.toolbarbutton-badge-stack { - margin-left: 0px !important; -} - -stack.tab-stack { - display: none !important; -} - -/* Let's remove tabs... */ - -/* Remove padding above tabbar in compact mode */ -#main-window[sizemode=normal] > #titlebar { - -moz-appearance: initial !important; -} - -/* Move hamburger menu to the left */ -#PanelUI-button{ -visibility: collapse !important; -} -#customization-panel-container, -#customization-panelWrapper .panel-arrow, -#nav-bar-overflow-button { - -moz-box-ordinal-group: 0 !important; -} - -#appMenu-popup { - margin-right: -258px !important; -} - -#appMenu-popup .panel-arrow { - margin-right: 248px !important; -} - -/* Remove border between tabs -Delete this rule if you want separators between background tabs */ -.tabbrowser-tab::after, .tabbrowser-tab::before { - border: 0px !important; -} - -.tabbrowser-tab:hover { - background-color: #222d32ff !important; -} - -/* tab line - adjust color & size, default #0a84ff 2px */ -.tab-line { - height: 0px !important; - border-bottom: none !important; -} - -#identity-box { - max-width: 0px !important; -} - -*|*.textbox-input::-moz-placeholder { - opacity: 0 !important; -} - -#minimize-button, #restore-button, #close-button, -#appMenu-fxa-container, -#appMenu-fxa-container + toolbarseparator, -#appMenuRestoreLastSession, -#appMenu-edit-controls, -#appMenu-edit-controls + toolbarseparator, -#appMenu-customize-button, -#appMenu-customize-button + toolbarseparator, -#appMenu-open-file-button, -#appMenu-save-file-button, -#appMenu-find-button, -#urlbar-zoom-button, -#pocket-button-box, -#back-button, -#forward-button, -#reload-button, -#stop-button, -#stop-reload-button, -ar-button, -.autocomplete-history-dropmarker, -#identity-icon-labels, -#identity-icon, -.urlbar-go-button, -#sidebar-button, -.tabs-newtab-button.toolbarbutton-1, -#new-tab-button, -#pageActionSeparator, -.urlbar-history-dropmarker.urlbar-icon.chromeclass-toolbar-additional { - display: none !important; -} -#tabbrowser-tabs .tabbrowser-tab .tab-close-button { - display:none !important; - } -/*# sourceMappingURL=userChrome.css.map */ - -.browserContainer { background-color: #d4d4d4 !important; } - -.tabbrowser tabpanels { background-color: #d4d4d4 !important; } - -/* .customization-target { */ -/* display: none; */ -/* } */ - - - - @@ -10,20 +10,24 @@ export READER=/usr/bin/zathura export GTK2_RC_FILES="$HOME/.gtkrc-2.0" export QT_QPA_PLATFORMTHEME="qt5ct" export GRDB="dropbox://default@/git-private" -export TERMINAL=foot -export TERM=foot -export BIB=$HOME/Dropbox/A/Scholar/All/References -export REFERBIB=$HOME/Dropbox/A/Scholar/All/References/bibliography.refer +export TERMINAL=st +export TERM=st +export TEX=~/Dropbox/A/scholar/all/Templates/LaTeX/sherbrooke/ +export BIB=$HOME/Dropbox/A/scholar/all/references/bibliography.bib +export REFERBIB=$HOME/Dropbox/A/Scholar/All/references/bibliography.refer export DISTRIB_ID=arch export DISTRIB_RELEASE=$(uname -r) export XDG_CONFIG_HOME=$HOME/.config export R_PROFILE_USER=$HOME/.config/R/Rprofile export TODOIST_API_KEY="$(pass Todoist/API)" +export SFEED_URL_FILE=$HOME/.sfeed/urls +export SFEED_PLUMBER="$(which linkhandler)" export MOZ_ENABLE_WAYLAND=1 +export SVDIR="$HOME/.service" eval `dbus-launch --auto-syntax` # fix "xdg-open fork-bomb" export your preferred browser from here -export BROWSER=$(which firefox) +export BROWSER=/bin/firefox-developer-edition # less/man colors export LESS=-R @@ -37,12 +41,13 @@ export LESS_TERMCAP_ue=$'\e[0m' # end underline # Start Desktop Environment if on the main TTY if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then -dwl -s ~/startup.sh > ~/.cache/dwltags +# dwl -s ~/startup.sh > ~/.cache/dwltags +startx ~/.xinitrc dwm fi # gh completion eval "$(gh completion -s zsh)" # Generate shortcuts and aliases -shortcutgen -zer +shortcutgen -zerv aliasgen diff --git a/.xinitrc##hostname.workstation b/.xinitrc##hostname.workstation index 9ce4366..6588829 100644 --- a/.xinitrc##hostname.workstation +++ b/.xinitrc##hostname.workstation @@ -1,26 +1,25 @@ -xwallpaper --output "eDP1" --zoom ~/.cache/wall-0.jpg & -xwallpaper --output "HDMI1" --zoom ~/.cache/wall-1.jpg & +makewall & dropbox-cli start & sxhkd & remaps & dunst & -# echo ~/.local/share/newsboat/queue | entr -npr tmux-toggle podcast pod-dl & unclutter & -xautolock -time 5 -detectsleep -secure -locker locktoggle & -cinnamon-screensaver & +xset 600 & +xss-lock slock & picom -b & -echo "" > $HOME/.local/share/newsboat/queue echo us > $HOME/.cache/layout xrdb -load $HOME/.Xresources -flashfocus -n 30 -o 0.75 -v ERROR & +flashfocus -n 30 -o 0.75 & dwmblocks & newsup & -nohup davmail ~/.config/davmail/properties & -shairport-sync & +# nohup davmail ~/.config/davmail/properties & export _JAVA_AWT_WM_NONREPARENTING=1 & -# exec st while true; do dwm >/dev/null + # startxfce4 + # startplasma-x11 >/dev/null + # icewm >/dev/null + # gnome-session >/dev/null done -# exec icewm + # vim:filetype=sh @@ -28,6 +28,7 @@ bindkey -M menuselect 'l' vi-forward-char bindkey -M menuselect 'j' vi-down-line-or-history export KEYTIMEOUT=1 +export BATTLE="master@10.0.0.92" # Change cursor shape for different vi modes. function zle-keymap-select { @@ -84,16 +85,28 @@ source $HOME/.cache/zsh-aliases* source $HOME/.cache/zsh-shortcuts source $HOME/.cache/shell-vars +# Mkdir then cd: +mkcd(){ + if [ ! -d "$@" ]; then + mkdir -p "$@" ; + fi; + cd "$@"; +} + # Vifm with sensible cd option vicd() { - local dst="$(command vifm --choose-dir - "$@")" - [[ "$dst" == "" ]] && \ - echo 'Directory picking cancelled/failed' && \ - return 1 \ - || cd "$dst" + local dst="$(command vifmrun --choose-dir - "$@")" + [[ "$dst" == "" ]] && \ + echo 'Directory picking cancelled/failed' && \ + return 1 \ + || cd "$dst" } +# alias sf=' export SFEED_URL_FILE="$HOME/.sfeed/urls" && [ -f "$SFEED_URL_FILE" ] || touch "$SFEED_URL_FILE" && sfeed_curses ~/.sfeed/feeds/* ' + +alias zat='tabbed -cr 2 zathura -e id' + # Load zsh-syntax-highlighting; should be last. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null |