summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2021-05-01 11:04:19 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2021-05-01 11:04:19 -0400
commit9ed9de5006d437e126c5871dc0cf38a02825aabb (patch)
treed92d4b6ad254626312ed84c78063dffb73dfa639
parentaf79f164cc50ae0299b3820e9cab290cb6fbcd82 (diff)
workstation Files
l---------[-rw-r--r--].Xresources51
-rw-r--r--.Xresources##hostname.workstation48
-rw-r--r--.config/Xresources/dark-1.Xresources48
-rw-r--r--.config/Xresources/light-1.Xresources54
-rw-r--r--.config/Xresources/light-2.Xresources27
-rw-r--r--.config/Xresources/light-3.Xresources46
-rw-r--r--.config/Xresources/light-4.Xresources54
-rw-r--r--.config/Xresources/light-5.Xresources30
-rw-r--r--.config/mutt/my-configs6
-rw-r--r--.config/newsboat/urls11
-rw-r--r--.config/sxhkd/sxhkdrc5
-rw-r--r--.config/zathura/zathurarc3
-rwxr-xr-x.local/bin/compiler1
-rwxr-xr-x.local/bin/opout2
-rwxr-xr-x.local/bin/powermenu11
-rwxr-xr-x.local/bin/sysact22
-rw-r--r--.profile2
-rw-r--r--.zshrc8
18 files changed, 352 insertions, 77 deletions
diff --git a/.Xresources b/.Xresources
index 809693f..2374316 100644..120000
--- a/.Xresources
+++ b/.Xresources
@@ -1,50 +1 @@
-! __ __
-! \ \/ /_ __ ___ ___ ___ _ _ _ __ ___ ___ ___
-! \ /| '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
-! / \| | | __/\__ \ (_) | |_| | | | (_| __/\__ \
-! /_/\_\_| \___||___/\___/ \__,_|_| \___\___||___/
-!
-!
-
-! 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.92
-! SXIV COLORS
-Sxiv.background: #111A1F
-Sxiv.foreground: #9B9257
-
-Xft.dpi: 144
+.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 066e9dc..69576b5 100644
--- a/.config/mutt/my-configs
+++ b/.config/mutt/my-configs
@@ -17,8 +17,10 @@ macro index,pager a "<pipe-message>goobook add<return>" "add the sender address
# I want pgp encryption by default when possible.
# The following line makes this possible:
set crypt_use_gpgme=yes
-set crypt_autosign
-set pgp_auto_decode
+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"
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/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 1a2e5e6..3535d7b 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 25a8aa0..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 1 && 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-`
diff --git a/.profile b/.profile
index 84d57d2..5db1d7d 100644
--- a/.profile
+++ b/.profile
@@ -18,7 +18,7 @@ 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 TODOIST_API_KEY="$(pass Todoist/API)"
# export GOROOT=/usr/bin/go
# fix "xdg-open fork-bomb" export your preferred browser from here
diff --git a/.zshrc b/.zshrc
index baa293b..d6f7290 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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