diff options
l--------- | .Xresources | 2 | ||||
-rw-r--r-- | .Xresources##hostname.workstation | 48 | ||||
-rw-r--r-- | .config/Xresources/dark-1.Xresources | 48 | ||||
-rw-r--r-- | .config/Xresources/light-1.Xresources | 54 | ||||
-rw-r--r-- | .config/Xresources/light-2.Xresources | 27 | ||||
-rw-r--r-- | .config/Xresources/light-3.Xresources | 46 | ||||
-rw-r--r-- | .config/Xresources/light-4.Xresources | 54 | ||||
-rw-r--r-- | .config/Xresources/light-5.Xresources | 30 | ||||
-rw-r--r-- | .config/mutt/my-configs | 17 | ||||
-rw-r--r-- | .config/newsboat/urls | 11 | ||||
-rw-r--r-- | .config/nvim/UltiSnips/mail.snippets | 20 | ||||
-rw-r--r-- | .config/sxhkd/sxhkdrc | 5 | ||||
-rw-r--r-- | .config/zathura/zathurarc | 3 | ||||
-rwxr-xr-x | .local/bin/compiler | 1 | ||||
-rwxr-xr-x | .local/bin/opout | 2 | ||||
-rwxr-xr-x | .local/bin/powermenu | 11 | ||||
-rwxr-xr-x | .local/bin/sysact | 22 | ||||
-rw-r--r--[l---------] | .profile | 48 | ||||
-rw-r--r-- | .zshrc | 8 |
19 files changed, 424 insertions, 33 deletions
diff --git a/.Xresources b/.Xresources index 5c8476a..2374316 120000 --- a/.Xresources +++ b/.Xresources @@ -1 +1 @@ -.Xresources##hostname.battlestation
\ No newline at end of file +.Xresources##hostname.workstation
\ No newline at end of file diff --git a/.Xresources##hostname.workstation b/.Xresources##hostname.workstation new file mode 100644 index 0000000..d11ada1 --- /dev/null +++ b/.Xresources##hostname.workstation @@ -0,0 +1,48 @@ +! __ __ +! \ \/ /_ __ ___ ___ ___ _ _ _ __ ___ ___ ___ +! \ /| '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __| +! / \| | | __/\__ \ (_) | |_| | | | (_| __/\__ \ +! /_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/ +! +! + +! X Resources: Generated with Hodler (http://github.com/matttproud/hodler) +!black +*color0: #111a1f +*color8: #868b8d +!red +*color1: #8d7856 +*color9: #810002 +!green +*color2: #798362 +*color10: #037500 +!yellow +*color3: #9b9257 +*color11: #ebcb88 +!blue +*color4: #63768a +*color12: #63768a +!magenta +*color5: #b7416e +*color13: #738c9c +!cyan +*color6: #6998b3 +*color14: #66aabb +!white +*color7: #c0c7ca +*color15: #c0c7ca +!other +*background: #222d32 +*foreground: #acb3b5 +*cursorColor: #ebcb88 +! See "highlightColorMode" and "hm" options in XTerm manual page. +*highlightTextColor: #2e333c +*highlightColor: #161f2a +! No support for cursor text coloring; would be #1e232b. +! No support for bold coloring; would be #626a73. + +!other +*.alpha: 0.69 + +Sxiv.background: #111A1F +Sxiv.foreground: #9B9257 diff --git a/.config/Xresources/dark-1.Xresources b/.config/Xresources/dark-1.Xresources new file mode 100644 index 0000000..5478e86 --- /dev/null +++ b/.config/Xresources/dark-1.Xresources @@ -0,0 +1,48 @@ +! __ __ +! \ \/ /_ __ ___ ___ ___ _ _ _ __ ___ ___ ___ +! \ /| '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __| +! / \| | | __/\__ \ (_) | |_| | | | (_| __/\__ \ +! /_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/ +! +! + +! X Resources: Generated with Hodler (http://github.com/matttproud/hodler) +!black +*color0: #111a1f +*color8: #868b8d +!red +*color1: #8d7856 +*color9: #810002 +!green +*color2: #798362 +*color10: #037500 +!yellow +*color3: #9b9257 +*color11: #ebcb88 +!blue +*color4: #63768a +*color12: #63768a +!magenta +*color5: #b7416e +*color13: #738c9c +!cyan +*color6: #6998b3 +*color14: #66aabb +!white +*color7: #c0c7ca +*color15: #c0c7ca +!other +*background: #222d32 +*foreground: #acb3b5 +*cursorColor: #ebcb88 +! See "highlightColorMode" and "hm" options in XTerm manual page. +*highlightTextColor: #2e333c +*highlightColor: #161f2a +! No support for cursor text coloring; would be #1e232b. +! No support for bold coloring; would be #626a73. + +!other +*.alpha: 0.88 + +Sxiv.background: #111A1F +Sxiv.foreground: #9B9257 diff --git a/.config/Xresources/light-1.Xresources b/.config/Xresources/light-1.Xresources new file mode 100644 index 0000000..ad70ec9 --- /dev/null +++ b/.config/Xresources/light-1.Xresources @@ -0,0 +1,54 @@ +! Base16 Atelier Estuary +! Scheme: Bram de Haan (http://atelierbramdehaan.nl) + +#define base00 #f4f3ec +#define base01 #e7e6df +#define base02 #929181 +#define base03 #878573 +#define base04 #6c6b5a +#define base05 #5f5e4e +#define base06 #302f27 +#define base07 #22221b +#define base08 #ba6236 +#define base09 #ae7313 +#define base0A #a5980d +#define base0B #7d9726 +#define base0C #5b9d48 +#define base0D #36a166 +#define base0E #5f9182 +#define base0F #9d6c7c + +*.foreground: base05 +#ifdef background_opacity +*.background: [background_opacity]base00 +#else +*.background: base00 +#endif +*.cursorColor: base05 + +*.color0: base00 +*.color1: base08 +*.color2: base0B +*.color3: base0A +*.color4: base0D +*.color5: base0E +*.color6: base0C +*.color7: base05 + +*.color8: base03 +*.color9: base08 +*.color10: base0B +*.color11: base0A +*.color12: base0D +*.color13: base0E +*.color14: base0C +*.color15: base07 + +! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt), +! use 'shell' template to set these if necessary +*.color16: base09 +*.color17: base0F +*.color18: base01 +*.color19: base02 +*.color20: base04 +*.color21: base06 diff --git a/.config/Xresources/light-2.Xresources b/.config/Xresources/light-2.Xresources new file mode 100644 index 0000000..653dc02 --- /dev/null +++ b/.config/Xresources/light-2.Xresources @@ -0,0 +1,27 @@ +! PaperColor Theme +*.foreground: #4D4D4C +*.background: #E7E8EB +! black +*.color0: #f4f3ec +*.color8: #969694 +! red +*.color1: #D7005F +*.color9: #D7005F +! green +*.color2: #718C00 +*.color10: #718C00 +! yellow / orange +*.color3: #D75F00 +*.color11: #D75F00 +! blue +*.color4: #4271AE +*.color12: #4271AE +! magenta +*.color5: #8959A8 +*.color13: #8959A8 +! cyan +*.color6: #3E999F +*.color14: #3E999F +! white +*.color7: #F5F5F5 +*.color15: #2D2D2C diff --git a/.config/Xresources/light-3.Xresources b/.config/Xresources/light-3.Xresources new file mode 100644 index 0000000..ea5f6b0 --- /dev/null +++ b/.config/Xresources/light-3.Xresources @@ -0,0 +1,46 @@ +! Base16 Atelier Dune +! Scheme: Bram de Haan (http://atelierbramdehaan.nl) + +#define base00 #fefbec +#define base01 #e8e4cf +#define base02 #a6a28c +#define base03 #999580 +#define base04 #7d7a68 +#define base05 #6e6b5e +#define base06 #292824 +#define base07 #20201d +#define base08 #d73737 +#define base09 #b65611 +#define base0A #ae9513 +#define base0B #60ac39 +#define base0C #1fad83 +#define base0D #6684e1 +#define base0E #b854d4 +#define base0F #d43552 + +*.foreground: base05 +#ifdef background_opacity +*.background: [background_opacity]base00 +#else +*.background: base00 +#endif +*.cursorColor: base05 + +*.color0: base00 +*.color1: base08 +*.color2: base0B +*.color3: base0A +*.color4: base0D +*.color5: base0E +*.color6: base0C +*.color7: base05 + +*.color8: base03 +*.color9: base09 +*.color10: base01 +*.color11: base02 +*.color12: base04 +*.color13: base06 +*.color14: base0F +*.color15: base07 + diff --git a/.config/Xresources/light-4.Xresources b/.config/Xresources/light-4.Xresources new file mode 100644 index 0000000..ad70ec9 --- /dev/null +++ b/.config/Xresources/light-4.Xresources @@ -0,0 +1,54 @@ +! Base16 Atelier Estuary +! Scheme: Bram de Haan (http://atelierbramdehaan.nl) + +#define base00 #f4f3ec +#define base01 #e7e6df +#define base02 #929181 +#define base03 #878573 +#define base04 #6c6b5a +#define base05 #5f5e4e +#define base06 #302f27 +#define base07 #22221b +#define base08 #ba6236 +#define base09 #ae7313 +#define base0A #a5980d +#define base0B #7d9726 +#define base0C #5b9d48 +#define base0D #36a166 +#define base0E #5f9182 +#define base0F #9d6c7c + +*.foreground: base05 +#ifdef background_opacity +*.background: [background_opacity]base00 +#else +*.background: base00 +#endif +*.cursorColor: base05 + +*.color0: base00 +*.color1: base08 +*.color2: base0B +*.color3: base0A +*.color4: base0D +*.color5: base0E +*.color6: base0C +*.color7: base05 + +*.color8: base03 +*.color9: base08 +*.color10: base0B +*.color11: base0A +*.color12: base0D +*.color13: base0E +*.color14: base0C +*.color15: base07 + +! Note: colors beyond 15 might not be loaded (e.g., xterm, urxvt), +! use 'shell' template to set these if necessary +*.color16: base09 +*.color17: base0F +*.color18: base01 +*.color19: base02 +*.color20: base04 +*.color21: base06 diff --git a/.config/Xresources/light-5.Xresources b/.config/Xresources/light-5.Xresources new file mode 100644 index 0000000..381e9c4 --- /dev/null +++ b/.config/Xresources/light-5.Xresources @@ -0,0 +1,30 @@ +! Lucious-light Theme +*.background: #eeeeee +*.foreground: #444444 +*.cursorColor: #5f87af +! black +*.color0: #eeeeee +*.color8: #444444 +! red +*.color1: #af0000 +*.color9: #af0000 +! green +*.color2: #008700 +*.color10: #008700 +! yellow / orange +*.color3: #af5f00 +*.color11: #af5f00 +! blue +*.color4: #005faf +*.color12: #005faf +! magenta +*.color5: #870087 +*.color13: #870087 +! cyan +*.color6: #008787 +*.color14: #008787 +! white +*.color7: #eeeeee +*.color15: #444444 +! Transparency +*.alpha: 0.86 diff --git a/.config/mutt/my-configs b/.config/mutt/my-configs index c79629c..bd59b70 100644 --- a/.config/mutt/my-configs +++ b/.config/mutt/my-configs @@ -9,18 +9,21 @@ 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: {{{ -set crypt_use_gpgme = yes -set crypt_autosign = yes -set crypt_opportunistic_encrypt = yes -set pgp_self_encrypt = yes -set pgp_default_key = 'ABC4A5A7430D6309ACBD219044F94DD6456590C3' -set pgp_import_command = "gpg --no-verbose --import -v %f" +# I want pgp encryption by default when possible. +# The following line makes this possible: +set crypt_use_gpgme=yes +set crypt_autosign = yes +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 a058dc4..fa49789 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -31,24 +31,21 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCQ-AAXSt0M5Gx0-A9UGut8g "Yo 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: <++>" -# #---Twitter---# # -http://rss-bridge.bb8.fun/?action=display&bridge=Twitter&context=By+username&u=benchausse&norep=on&nopic=on&format=Atom "Twitter" "~Twitter: Me " -# http://rss-bridge.bb8.fun/?action=display&bridge=Twitter&context=By+username&u=SpaceX&norep=on&nopic=on&format=Atom "Twitter" "~Twitter: SpaceX " -# http://rss-bridge.bb8.fun/?action=display&bridge=Twitter&context=By+username&u=Erdayastronaut&norep=on&nopic=on&format=Atom "Twitter" "~Twitter: Everyday Astronaut " - # #---Websites---# # # https://www.spacex.com/news.xml "Website" "~Website: SpaceX Feed " 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" # #---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://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" # #---Flickr---# # https://www.flickr.com/services/feeds/photos_public.gne?id=130608600@N05&lang=en-us&format=rss_200 "Flickr" "~Flickr: Spacex Latest" diff --git a/.config/nvim/UltiSnips/mail.snippets b/.config/nvim/UltiSnips/mail.snippets new file mode 100644 index 0000000..352dd31 --- /dev/null +++ b/.config/nvim/UltiSnips/mail.snippets @@ -0,0 +1,20 @@ +snippet sig-en "English email signature" +-Benjamin Chausse + +----------------- +~Website: chausse.xyz +~GPG Key: chausse.xyz/library/chaussebenjamin.asc +~Signal: (+1)-438-395-4349 +----------------- +endsnippet + +snippet sig-fr "Signature de courriel en français" +-Benjamin Chausse + +----------------- +~Site web: chausse.xyz +~Clé gpg: chausse.xyz/library/chaussebenjamin.asc +~Signal: (+1)-438-395-4349 +----------------- +endsnippet + diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 776b388..19132b2 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -173,7 +173,7 @@ alt + d j4-dmenu-desktop ## Power Utility alt + q - powermenu + sysact ## Quickly Search Google alt + shift + d websearch @@ -195,6 +195,9 @@ alt + f ## Start SSH session alt + s pickssh +## Select bright or dark .Xresources theme +alt + Escape + theme="$(ls $HOME/.config/Xresources/ | dmenu)" && cat "$HOME/.config/Xresources/$theme" | xrdb -load #-# PrintScreen Utilities #-# ## Entire Screen diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index da911a7..812741b 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -5,6 +5,7 @@ # /____\__,_|\__|_| |_|\__,_|_| \__,_| # +set adjust-open "width" set statusbar-h-padding 0 set statusbar-v-padding 0 set statusbar-basename true @@ -35,5 +36,7 @@ map J zoom in map K zoom out map i recolor map p print +set synctex true +set synctex-editor-command "nvr --remote-silent %f -c %l" # map <C-o> focus_inputbar ":exec lpr $FILE"<cr> diff --git a/.local/bin/compiler b/.local/bin/compiler index 5b4f8c4..9020284 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -36,5 +36,6 @@ case "$file" in *\.py) python "$file" ;; *\.go) go run "$file" ;; *\.sent) setsid sent "$file" 2>/dev/null & ;; + *.Xresources) xrdb -load "$file" ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; esac diff --git a/.local/bin/opout b/.local/bin/opout index 7dd5d5a..076bd16 100755 --- a/.local/bin/opout +++ b/.local/bin/opout @@ -8,4 +8,4 @@ case "$1" in *.tex|*.rnw|*.gd|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; *.html) setsid "$BROWSER" --new-window "$basename".html >/dev/null 2>&1 & ;; *.sent) setsid sent "$1" >/dev/null 2>&1 & ;; -esac && sleep 0.2 && dwmc rotatestack -1 && dwmc focusmaster & +esac && sleep 0.1 && dwmc rotatestack -1 && dwmc focusmaster & diff --git a/.local/bin/powermenu b/.local/bin/powermenu deleted file mode 100755 index 994953e..0000000 --- a/.local/bin/powermenu +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -choice=$(printf "Logout\\nShutdown\\nReboot\\nHibernate" | dmenu -i -p "Power Utility") - -case $choice in - *L*) $SCRIPTS/control/lockscreen ;; - *H*) systemctl suspend ;; - *R*) reboot ;; - *S*) shutdown -h now ;; - "") notify-send -i "$HOME/.fonts/svg/power-off.svg" -a Power "Operation suspended" -esac diff --git a/.local/bin/sysact b/.local/bin/sysact new file mode 100755 index 0000000..5249070 --- /dev/null +++ b/.local/bin/sysact @@ -0,0 +1,22 @@ +#!/bin/sh + +# A dmenu wrapper script for system functions. + +# For non-systemd init systems. +case "$(readlink -f /sbin/init)" in + *runit*) hib="sudo -A zzz" ;; + *openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;; +esac + +cmds="\ + lock sudo loginctl lock-sessions + leave dwm killall xinit + renew dwm killall dwm + hibernate sudo loginctl hibernate + reboot ${reb:-sudo -A reboot} + shutdown ${shut:-sudo -A shutdown -h now} + display off xset dpms force off" + +choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1 + +`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-` @@ -1 +1,47 @@ -.profile##hostname.battlestation
\ No newline at end of file +export GOPATH=$HOME/.go +export SCRIPTS=$HOME/.local/bin +export PATH=$PATH$( find $HOME/.local/bin/ -type d -printf ":%p" ) +export PATH=$PATH:$HOME/.cargo/bin +export PATH=$PATH:/root/.local/bin +export PATH=$PATH:$HOME/.local/bin +export QT_QPA_PLATFORMTHEME="qt5ct" +export EDITOR=/usr/bin/nvim +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=st +export TERM=st +export BIB=$HOME/Dropbox/A/Scholar/All/References +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 GOROOT=/usr/bin/go + +# fix "xdg-open fork-bomb" export your preferred browser from here +export BROWSER=$(which firefox) + +# less/man colors +export LESS=-R +export LESS_TERMCAP_md=$'\e[01;36;74m' # begin bold +export LESS_TERMCAP_mb=$'\e[01;31;4m' # begin blinking +export LESS_TERMCAP_us=$'\e[04;32;146m' # begin underline +export LESS_TERMCAP_so=$'\e[30;42;146m' # begin reverse video +export LESS_TERMCAP_se=$'\e[0m' # end reverse video +export LESS_TERMCAP_me=$'\e[0m' # end mode +export LESS_TERMCAP_ue=$'\e[0m' # end underline + +# Start Desktop Environment if on the main TTY +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then +startx +fi + +# gh completion +eval "$(gh completion -s zsh)" + +# Generate shortcuts and aliases +shortcutgen +aliasgen @@ -39,21 +39,21 @@ function zle-keymap-select { [[ ${KEYMAP} == viins ]] || [[ ${KEYMAP} = '' ]] || [[ $1 = 'beam' ]]; then - echo -ne '\e[5 q' + echo -ne '\e[4 q' fi } zle -N zle-keymap-select zle-line-init() { zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) - echo -ne "\e[5 q" + echo -ne "\e[4 q" } zle -N zle-line-init # Use beam shape cursor on startup. -echo -ne '\e[5 q' +echo -ne '\e[4 q' # Use beam shape cursor for each new prompt. -preexec() { echo -ne '\e[5 q' ;} +preexec() { echo -ne '\e[4 q' ;} # Lines configured by zsh-newuser-install |