Few minor correction for the XPS13

This commit is contained in:
Thomas Dehaeze 2019-04-04 10:27:43 +02:00
parent 370a97b8af
commit bf4948fc7c
9 changed files with 719 additions and 1049 deletions

View File

@ -312,23 +312,18 @@ COMMAND nohup qutebrowser %s </dev/null &>/dev/null &
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.xinitrc :header-args: :tangle ~/.xinitrc
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/bin/sh"
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
#!/bin/sh
# =============================================================
userresources=$HOME/.Xresources userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap sysmodmap=/etc/X11/xinit/.Xmodmap
# ============================================================= #+END_SRC
merge in defaults and keymaps
# ============================================================= #+BEGIN_SRC conf
# merge in defaults and keymaps
# =============================================================
if [ -f $sysresources ]; then if [ -f $sysresources ]; then
xrdb -merge $sysresources xrdb -merge $sysresources
fi fi
@ -344,80 +339,31 @@ fi
if [ -f "$usermodmap" ]; then if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap" xmodmap "$usermodmap"
fi fi
# ============================================================= #+END_SRC
start some nice programs
# ============================================================= #+BEGIN_SRC conf
# start some nice programs
# =============================================================
if [ -d /etc/X11/xinit/xinitrc.d ] ; then if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
done done
unset f unset f
fi fi
# ============================================================= #+END_SRC
hiDPI
# ============================================================= #+BEGIN_SRC conf
# hiDPI
# =============================================================
export GDK_SCALE=1 export GDK_SCALE=1
export GDK_DPI_SCALE=0.95 export GDK_DPI_SCALE=0.95
export QT_SCREEN_SCALE_FACTORS=0.9 export QT_SCREEN_SCALE_FACTORS=0.9
export QT_AUTO_SCREEN_SCALE_FACTOR=2 export QT_AUTO_SCREEN_SCALE_FACTOR=2
export QT_SCALE_FACTOR=2 export QT_SCALE_FACTOR=2
# ============================================================= #+END_SRC
#+BEGIN_SRC conf
# =============================================================
# Screen options
# =============================================================
# # xrandr --output eDP1 --mode 1680x1050 --dpi 192
# xrandr --dpi 192
# =============================================================
# =============================================================
# # Set repetition keyboard rate
# xset r rate 200 30
# # Set International US keyboard layout
# setxkbmap -layout us -variant intl -option caps:escape
# =============================================================
# =============================================================
# get_session(){
# local dbus_args=(--sh-syntax --exit-with-session)
# case $1 in
# awesome) dbus_args+=(awesome) ;;
# bspwm) dbus_args+=(bspwm-session) ;;
# budgie) dbus_args+=(budgie-desktop) ;;
# cinnamon) dbus_args+=(cinnamon-session) ;;
# deepin) dbus_args+=(startdde) ;;
# enlightenment) dbus_args+=(enlightenment_start) ;;
# fluxbox) dbus_args+=(startfluxbox) ;;
# gnome) dbus_args+=(gnome-session) ;;
# i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
# jwm) dbus_args+=(jwm) ;;
# kde) dbus_args+=(startkde) ;;
# lxde) dbus_args+=(startlxde) ;;
# lxqt) dbus_args+=(lxqt-session) ;;
# mate) dbus_args+=(mate-session) ;;
# xfce) dbus_args+=(xfce4-session) ;;
# openbox) dbus_args+=(openbox-session) ;;
# *) dbus_args+=($DEFAULT_SESSION) ;;
# esac
# echo "dbus-launch ${dbus_args[*]}"
# }
# exec $(get_session)
# exec i3
export XDG_CURRENT_DESKTOP=Budgie:GNOME export XDG_CURRENT_DESKTOP=Budgie:GNOME
exec budgie-desktop exec budgie-desktop
# =============================================================
#+END_SRC #+END_SRC
* Calcurse * Calcurse
@ -752,24 +698,16 @@ default-cache-ttl 60480000
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
# =============================================================
next_img L space next_img L space
prev_img BackSpace H prev_img BackSpace H
# =============================================================
# =============================================================
scroll_up k Up scroll_up k Up
scroll_down j Down scroll_down j Down
scroll_right l Right scroll_right l Right
scroll_left h Left scroll_left h Left
# =============================================================
# =============================================================
toggle_fullscreen f toggle_fullscreen f
save_filelist F save_filelist F
# =============================================================
#+END_SRC #+END_SRC
* MPV * MPV
@ -1084,152 +1022,6 @@ stop-screensaver = "yes"
# ============================================================= # =============================================================
#+END_SRC #+END_SRC
* Systemd
** Buku Git
*** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/bukugit.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Bookmarks every day
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=/home/tdehaeze/scripts/buku_git_push.sh
#+END_SRC
*** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/bukugit.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync All Mails every x hours
RefuseManualStart=no
RefuseManualStop=no
After=network.target network-online.target dbus.socket
[Timer]
OnCalendar=*-*-* 16:00:00
Persistent=true
Unit=bukugit.service
[Install]
WantedBy=default.target
#+END_SRC
** Check mail
*** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/checkmail.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Check new mails
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=/home/tdehaeze/scripts/checkmail.sh
#+END_SRC
*** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/checkmail.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Check Mail every x minutes
RefuseManualStart=no
RefuseManualStop=no
After=network.target network-online.target dbus.socket
[Timer]
Persistent=false
OnBootSec=2min
OnUnitActiveSec=5min
Unit=checkmail.service
[Install]
WantedBy=default.target
#+END_SRC
** Sync mail
*** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/syncmail.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync all mails
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=/home/tdehaeze/scripts/checkmail.sh all
#+END_SRC
*** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/syncmail.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync All Mails every x hours
RefuseManualStart=no
RefuseManualStop=no
After=network.target network-online.target dbus.socket
[Timer]
Persistent=false
OnBootSec=30min
OnUnitActiveSec=300min
Unit=syncmail.service
[Install]
WantedBy=default.target
#+END_SRC
** Emacs
*** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/emacs.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=simple
ExecStart=/usr/bin/emacs --fg-daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure
[Install]
WantedBy=default.target
#+END_SRC
* Zathura * Zathura
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/zathura/zathurarc :header-args: :tangle ~/.config/zathura/zathurarc
@ -1273,10 +1065,8 @@ map m toggle_statusbar
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:END: :END:
** Shadow
#+BEGIN_SRC conf #+BEGIN_SRC conf
# ============================================================
# Shadow
# ============================================================
shadow = false; shadow = false;
# no-dnd-shadow = true; # no-dnd-shadow = true;
no-dock-shadow = true; no-dock-shadow = true;
@ -1304,10 +1094,10 @@ shadow-exclude = [
# shadow-exclude-reg = "x10+0+0"; # shadow-exclude-reg = "x10+0+0";
# xinerama-shadow-crop = true; # xinerama-shadow-crop = true;
# ============================================================ #+END_SRC
# ============================================================ #+BEGIN_SRC conf
menu-opacity = 1.0; menu-opacity = 1.0;
inactive-opacity = 0.9; inactive-opacity = 0.9;
active-opacity = 1.0; active-opacity = 1.0;
@ -1316,21 +1106,18 @@ alpha-step = 0.0;
inactive-dim = 0.05; inactive-dim = 0.05;
blur-background = true; blur-background = true;
blur-kern = "3x3box"; blur-kern = "3x3box";
# ============================================================ #+END_SRC
** TODO Fading
# ============================================================ #+BEGIN_SRC conf
# Fading - TODO
# ============================================================
fading = false; fading = false;
fade-delta = 1; fade-delta = 1;
fade-in-step = 0.03; fade-in-step = 0.03;
fade-out-step = 0.03; fade-out-step = 0.03;
fade-exclude = [ ]; fade-exclude = [ ];
# ============================================================ #+END_SRC
#+BEGIN_SRC conf
# ============================================================
backend = "xrender"; backend = "xrender";
mark-wmwin-focused = true; mark-wmwin-focused = true;
mark-ovredir-focused = true; mark-ovredir-focused = true;
@ -1346,12 +1133,10 @@ detect-client-leader = true;
invert-color-include = [ ]; invert-color-include = [ ];
glx-copy-from-front = false; glx-copy-from-front = false;
glx-swap-method = "undefined"; glx-swap-method = "undefined";
# ============================================================ #+END_SRC
Opacity Rules for specific windows
# ============================================================ #+BEGIN_SRC conf
# Opacity Rules for specific windows
# ============================================================
#opacity-rule = [ #opacity-rule = [
#"99:name *?= 'Call'", #"99:name *?= 'Call'",
#"99:class_g = 'Chromium'", #"99:class_g = 'Chromium'",
@ -1382,10 +1167,9 @@ glx-swap-method = "undefined";
#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", #"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
#"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" #"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'"
#]; #];
# ============================================================ #+END_SRC
#+BEGIN_SRC conf
# ============================================================
wintypes : wintypes :
{ {
tooltip : tooltip :
@ -1403,7 +1187,6 @@ wintypes :
focus = true; focus = true;
}; };
}; };
# ============================================================
#+END_SRC #+END_SRC
* Locale * Locale
@ -1467,42 +1250,33 @@ application/x-bittorrent=deluge.desktop;
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/buku_run/config :header-args: :tangle ~/.config/buku_run/config
:header-args+: :comments both :mkdirp yes :header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END: :END:
#+BEGIN_SRC conf #+BEGIN_SRC conf
#!/usr/bin/env bash
# =============================================================
_rofi () { _rofi () {
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@" rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
} }
# ============================================================= #+END_SRC
display settings
# ============================================================= #+BEGIN_SRC conf
# display settings
# =============================================================
display_type=1 display_type=1
max_str_width=80 max_str_width=80
# ============================================================= #+END_SRC
keybindings
# ============================================================= #+BEGIN_SRC conf
# keybindings
# =============================================================
switch_view="Alt+Tab" switch_view="Alt+Tab"
new_bookmark="Alt+n" new_bookmark="Alt+n"
actions="Alt+a" actions="Alt+a"
edit="Alt+e" edit="Alt+e"
delete="Alt+d" delete="Alt+d"
# ============================================================= #+END_SRC
colors
# ============================================================= #+BEGIN_SRC conf
# colors
# =============================================================
help_color="#2d7ed8" help_color="#2d7ed8"
# =============================================================
#+END_SRC #+END_SRC
* Clipit - Clipboard Manager * Clipit - Clipboard Manager
@ -1538,6 +1312,7 @@ search_key=
offline_key= offline_key=
offline_mode=false offline_mode=false
#+END_SRC #+END_SRC
* Conky * Conky
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/conky/conky.conf :header-args: :tangle ~/.config/conky/conky.conf
@ -1621,6 +1396,7 @@ offline_mode=false
]] ]]
#+END_SRC #+END_SRC
* Scrot * Scrot
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.config/i3-scrot.conf :header-args: :tangle ~/.config/i3-scrot.conf
@ -1787,5 +1563,6 @@ jpeg-quality=90
png-compression=9 png-compression=9
desktop=9 desktop=9
#+END_SRC #+END_SRC
* TODO Binaries
* TODO Scripts * TODO [#A] Binaries
* TODO [#A] Scripts

View File

@ -161,7 +161,7 @@
autocrlf = input autocrlf = input
# Open vim, start Goyo and enter insert mode on the first line # Open vim, start Goyo and enter insert mode on the first line
editor = "nvim -u ~/.vim/vimrc.git -c ':Goyo' -c 'goto 1' -c 'startinsert'" editor = "nvim -c ':Goyo' -c 'goto 1' -c 'startinsert'"
#+END_SRC #+END_SRC
** Credentials using pass ** Credentials using pass
@ -173,17 +173,6 @@
username = tdehaeze username = tdehaeze
#+END_SRC #+END_SRC
** Magithub
#+BEGIN_SRC conf
[magithub]
online = false
[magithub "status"]
includeStatusHeader = false
includePullRequestsSection = false
includeIssuesSection = false
#+END_SRC
** Diff-so-fancy ** Diff-so-fancy
#+begin_src conf #+begin_src conf
[diff-so-fancy] [diff-so-fancy]

View File

@ -23,8 +23,8 @@ hide_edge_borders none
font SauceCodePro Nerd Font 11 font SauceCodePro Nerd Font 11
#+end_src #+end_src
* Multimedia keys * TODO Multimedia keys
#+begin_src conf #+begin_src conf :tangle no
# Sound # Sound
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+ bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+
@ -54,7 +54,7 @@ bindsym XF86LaunchB fullscreen toggle
# Windows Switch # Windows Switch
bindsym $mod+w exec --no-startup-id rofi -show window bindsym $mod+w exec --no-startup-id rofi -show window
# CheatSheets # CheatSheets
bindsym $mod+Shift+c exec --no-startup-id rofi -show CheatSheets -modi CheatSheets:~/scripts/rofi_cheatsheets.sh # bindsym $mod+Shift+c exec --no-startup-id rofi -show CheatSheets -modi CheatSheets:~/scripts/rofi_cheatsheets.sh
# Program Launcher with Icons # Program Launcher with Icons
# bindsym $mod+Shift+d exec --no-startup-id rofi -show drun -show-icons # bindsym $mod+Shift+d exec --no-startup-id rofi -show drun -show-icons
# Launch categorized menu # Launch categorized menu
@ -99,13 +99,13 @@ bindsym XF86LaunchB fullscreen toggle
bindsym $mod+Shift+t exec --no-startup-id ~/.config/polybar/scripts/toggle.sh top bindsym $mod+Shift+t exec --no-startup-id ~/.config/polybar/scripts/toggle.sh top
#+end_src #+end_src
* Vim Anywhere * TODO Vim Anywhere
#+begin_src conf #+begin_src conf
# bindsym $mod+t exec vim-anywhere nvim termite # bindsym $mod+t exec vim-anywhere nvim termite
#+end_src #+end_src
* TODO Screenshot - Change to simplier keys * TODO Screenshot - Change to simplier keys
#+begin_src conf #+begin_src conf :tangle no
bindsym Print exec --no-startup-id i3-scrot bindsym Print exec --no-startup-id i3-scrot
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
@ -460,10 +460,10 @@ To display names or symbols instead of plain workspace numbers you can use somet
* Autostart Background Applications * Autostart Background Applications
#+begin_src conf #+begin_src conf
# Authentication agent # Authentication agent
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# Set custom wallpaper script # Set custom wallpaper script
exec --no-startup-id $HOME/scripts/wallpaper.sh # exec --no-startup-id $HOME/scripts/wallpaper.sh
# Run Compton # Run Compton
exec --no-startup-id compton -b exec --no-startup-id compton -b
@ -485,13 +485,13 @@ To display names or symbols instead of plain workspace numbers you can use somet
exec --no-startup-id udiskie exec --no-startup-id udiskie
# Screen options # Screen options
exec --no-startup-id xrandr --output eDP1 --mode 1680x1050 --dpi 192 exec --no-startup-id xrandr --output eDP1 --mode 1920x1080 --dpi 192
# Redshift # Redshift
exec --no-startup-id redshift exec --no-startup-id redshift
# Start mopidy # Start mopidy
exec --no-startup-id mopidy # exec --no-startup-id mopidy
# Emacs Daemon # Emacs Daemon
exec --no-startup-id /usr/bin/emacs --fg-daemon exec --no-startup-id /usr/bin/emacs --fg-daemon
@ -503,7 +503,7 @@ To display names or symbols instead of plain workspace numbers you can use somet
* Start Foreground Applications * Start Foreground Applications
#+begin_src conf #+begin_src conf
# Emacs # Emacs
exec --no-startup-id i3-msg 'exec emacsclient -create-frame --alternate-editor=""' # exec --no-startup-id i3-msg 'exec emacsclient -create-frame --alternate-editor=""'
# Megasync # Megasync
exec --no-startup-id i3-msg 'exec megasync' exec --no-startup-id i3-msg 'exec megasync'

View File

@ -637,7 +637,7 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]
set sidebar_sort_method = 'unsorted' set sidebar_sort_method = 'unsorted'
#+END_SRC #+END_SRC
** TODO [#A] Searching using Mu ** Searching using Mu
#+begin_src conf #+begin_src conf
# mutt macros for mu # mutt macros for mu
macro index,pager \Cf "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search " \ macro index,pager \Cf "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search " \
@ -667,7 +667,7 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]
#+END_SRC #+END_SRC
** TODO Mailcap configuration ** TODO Mailcap configuration
** TODO Print ** TODO [#A] Print
https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
#+BEGIN_SRC conf #+BEGIN_SRC conf

View File

@ -81,7 +81,8 @@ margin-bottom = 5
modules-left = i3 modules-left = i3
modules-center = xwindow modules-center = xwindow
modules-right = unread_mail cpu battery temperature date # modules-right = unread_mail cpu battery temperature date
modules-right = date
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
@ -122,9 +123,11 @@ margin-bottom = 5
font-2 = Weather Icons:size=10;1 font-2 = Weather Icons:size=10;1
# font-3 = siji:pixelsize=10;1 # font-3 = siji:pixelsize=10;1
modules-left = mpd pulseaudio modules-left =
# modules-left = mpd pulseaudio
# modules-center = xwindow # modules-center = xwindow
modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift # modules-right = filesystem xkeyboard nordvpn chromecast screenshot weather emacs caffeine redshift
modules-right =
# tray-position = right # tray-position = right
# tray-padding = 2 # tray-padding = 2
@ -186,11 +189,11 @@ margin-bottom = 5
** TODO - Choose some nice icons ** TODO - Choose some nice icons
#+BEGIN_SRC conf #+BEGIN_SRC conf
ws-icon-default =  ws-icon-default = 
ws-icon-0 = 1; ws-icon-0 = 1;
ws-icon-1 = 2; ws-icon-1 = 2;
ws-icon-2 = 3; ws-icon-2 = 3;
ws-icon-3 = 4; ws-icon-3 = 4;
ws-icon-4 = 5; ws-icon-4 = 5;
#+END_SRC #+END_SRC
#+BEGIN_SRC conf #+BEGIN_SRC conf

View File

@ -3,6 +3,7 @@
#+PROPERTY: header-args+ :mkdirp yes #+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/termite/config #+PROPERTY: header-args+ :tangle ~/.config/termite/config
* Options
#+BEGIN_SRC conf #+BEGIN_SRC conf
[options] [options]
#allow_bold = true #allow_bold = true
@ -39,22 +40,20 @@ scrollback_lines = 10000
#scrollbar = off #scrollbar = off
highlight = #2f2f2f highlight = #2f2f2f
#+END_SRC
* Hints
#+BEGIN_SRC conf
[hints] [hints]
#padding = 2 #padding = 2
#border = #3f3f3f #border = #3f3f3f
#border_width = 0.5 #border_width = 0.5
#roundness = 2.0 #roundness = 2.0
#+END_SRC
# Scheme: Chris Kempson (http://chriskempson.com) * Colors
#+BEGIN_SRC conf
### END COLORS
[colors] [colors]
# Base16 Solarized Light
# Author: Ethan Schoonover (modified by aramisgithub)
foreground = #586e75 foreground = #586e75
foreground_bold = #073642 foreground_bold = #073642
cursor = #073642 cursor = #073642

View File

@ -1,5 +1,5 @@
#+TITLE: Vim Config #+TITLE: Vim Config
#+PROPERTY: header-args+ :comments both #+PROPERTY: header-args+ :comments none
#+PROPERTY: header-args+ :mkdirp yes #+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.vimrc #+PROPERTY: header-args+ :tangle ~/.vimrc

View File

@ -47,7 +47,7 @@ http://www.howardism.org/Technical/Emacs/literate-devops.html
https://github.com/Jguer/yay https://github.com/Jguer/yay
** Installation ** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
sudo pacman -S yay sudo pacman -S yay
#+END_SRC #+END_SRC
@ -65,11 +65,12 @@ sudo pacman -S yay
https://git-scm.com/ https://git-scm.com/
** Installation ** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S git yay -S git
#+END_SRC #+END_SRC
** Configuration ** Configuration
[[file:dotfiles/git.org][dotfiles/git.org]]
- =~/.gitconfig= - =~/.gitconfig=
- =~/.gitignore_global= - =~/.gitignore_global=
@ -85,12 +86,6 @@ yay -S diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
#+end_src #+end_src
** TODO Github interface - Hub
*** Installation
#+begin_src bash
yay -S hub
#+end_src
** Credential Helper setup with Pass ** Credential Helper setup with Pass
This is explained in a further part: [[*Integration with Git][Integration of Pass with Git]]. This is explained in a further part: [[*Integration with Git][Integration of Pass with Git]].
@ -98,11 +93,12 @@ This is explained in a further part: [[*Integration with Git][Integration of Pas
https://github.com/thestinger/termite https://github.com/thestinger/termite
** Termite ** Termite
*** Installation *** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S termite yay -S termite
#+END_SRC #+END_SRC
*** Configuration *** Configuration
[[file:dotfiles/termite.org][termite.org]]
- =~/.config/termite/config= - =~/.config/termite/config=
*** Cheatsheet *** Cheatsheet
@ -121,7 +117,7 @@ yay -S termite
** TODO [#C] Unicode Rxvt ** TODO [#C] Unicode Rxvt
*** Installation *** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S rxvt-unicode yay -S rxvt-unicode
#+END_SRC #+END_SRC
@ -132,7 +128,7 @@ Most of Urxvt configuration is done in =~/.Xresources=
https://wiki.archlinux.org/index.php/Bash https://wiki.archlinux.org/index.php/Bash
** Bash Completion ** Bash Completion
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S bash-completion yay -S bash-completion
#+END_SRC #+END_SRC
@ -146,10 +142,16 @@ yay -S bash-completion
https://github.com/tmux/tmux https://github.com/tmux/tmux
** Installation ** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S tmux yay -S tmux
#+END_SRC #+END_SRC
** Configuration
After configuration is generated.
#+begin_src bash
tmux source-file ~/.tmux.conf
#+end_src
** Session Manager - Tmuxinator ** Session Manager - Tmuxinator
https://github.com/tmuxinator/tmuxinator https://github.com/tmuxinator/tmuxinator
@ -170,8 +172,10 @@ This is used with rofi.
** TODO [#A] Multiple Tmux configuration ** TODO [#A] Multiple Tmux configuration
- one with no line for neomutt - one with no line for neomutt
- one complete for coding - one complete for coding
** TODO [#B] Configuration: theme ** TODO [#B] Configuration: theme
https://github.com/seebi/tmux-colors-solarized https://github.com/seebi/tmux-colors-solarized
** TODO [#A] To check ** TODO [#A] To check
- https://github.com/gpakosz/.tmux - https://github.com/gpakosz/.tmux
- https://gist.github.com/MohamedAlaa/2961058 - https://gist.github.com/MohamedAlaa/2961058
@ -187,8 +191,8 @@ https://github.com/seebi/tmux-colors-solarized
* TODO [#C] Fonts * TODO [#C] Fonts
** Installation ** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S ttf-inconsolata nerd-font-complete ttf-linux-libertine yay -S ttf-inconsolata nerd-fonts-complete ttf-linux-libertine ttf-emojione
#+END_SRC #+END_SRC
** TODO [#C] Default fonts ** TODO [#C] Default fonts
@ -199,13 +203,6 @@ Maybe use:
- Serif Font: Libertine - Serif Font: Libertine
- Sans Font: Linux Biolinum - Sans Font: Linux Biolinum
** Nice fonts
- https://github.com/be5invis/Iosevka
** Emojis
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
yay -S ttf-emojione
#+END_SRC
** Cheatsheet ** Cheatsheet
| Command | Usage | | Command | Usage |
|-----------+--------------------------| |-----------+--------------------------|
@ -216,7 +213,7 @@ yay -S ttf-emojione
https://github.com/neovim/neovim https://github.com/neovim/neovim
*** Installation *** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S neovim yay -S neovim
#+END_SRC #+END_SRC
@ -244,7 +241,7 @@ https://github.com/daeyun/vim-matlab/
https://www.gnu.org/software/emacs/ https://www.gnu.org/software/emacs/
*** Installation *** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S emacs yay -S emacs
#+END_SRC #+END_SRC
@ -266,7 +263,7 @@ Then, add a shortcut to i3 config to open an emacsclient.
[[file:~/.spacemacs.d/spacemacs.org][file:~/.spacemacs.d/spacemacs.org]] [[file:~/.spacemacs.d/spacemacs.org][file:~/.spacemacs.d/spacemacs.org]]
*** SpellCheck with Aspell *** SpellCheck with Aspell
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh #+BEGIN_SRC bash
yay -S aspell aspell-en aspell-fr yay -S aspell aspell-en aspell-fr
#+END_SRC #+END_SRC
@ -307,6 +304,43 @@ max-cache-ttl 60480000
default-cache-ttl 60480000 default-cache-ttl 60480000
#+END_SRC #+END_SRC
* Launcher - Rofi
https://github.com/DaveDavenport/rofi
** Installation
#+BEGIN_SRC bash
yay -S rofi
#+END_SRC
** Setup rofi as a dmenu replacement
Setup rofi as a dmenu replacement in =~/.i3/config=:
#+BEGIN_SRC
bindsym $mod+d exec --no-startup-id rofi -show run
#+END_SRC
** Run sudo commands with rofi
https://github.com/DaveDavenport/rofi/issues/584#issuecomment-384555551
Use ~sudo -A~, that will open a rofi prompt to ask for the password.
For that to work, we need to add the following code to =~/.profile=:
#+BEGIN_SRC bash
export SUDO_ASKPASS=~/bin/askpass-rofi
#+END_SRC
The =askpass= script is:
#+BEGIN_SRC bash
#!/bin/sh
# Take password prompt from STDIN, print password to STDOUT
# the sed piece just removes the colon from the provided
# prompt: rofi -p already gives us a colon
rofi -dmenu \
-password \
-no-fixed-num-lines \
-p "$(printf "$1" | sed s/://)"
#+END_SRC
* Password Manager: Pass * Password Manager: Pass
https://www.passwordstore.org/ https://www.passwordstore.org/
@ -315,8 +349,6 @@ https://www.passwordstore.org/
yay -S pass yay -S pass
#+END_SRC #+END_SRC
** TODO Connect the GPG key
** Initialize the password store as a git repository ** Initialize the password store as a git repository
#+BEGIN_SRC bash #+BEGIN_SRC bash
pass git init pass git init
@ -385,7 +417,7 @@ https://github.com/jarun/Buku
** Installation ** Installation
#+BEGIN_SRC bash #+BEGIN_SRC bash
yaourt -S buku yay -S buku
#+END_SRC #+END_SRC
** Integration with Rofi ** Integration with Rofi
@ -483,7 +515,7 @@ When opening a pdf file on qutebrowser, you'll be ask for options:
Add the key-binding on =~/.config/qutebrowser/config.py= Add the key-binding on =~/.config/qutebrowser/config.py=
#+BEGIN_SRC #+BEGIN_SRC
config.bind('<Ctrl-p>', 'spawn --userscript password_fill') config.bind(',p', 'spawn --userscript password_fill')
#+END_SRC #+END_SRC
The =password_fill= script can be found on [[https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/password_fill][github.com]]. The =password_fill= script can be found on [[https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/password_fill][github.com]].
@ -708,11 +740,6 @@ This looks for contacts in your emails.
** TODO Integration with Mutt ** TODO Integration with Mutt
* TODO Chat Application * TODO Chat Application
** Gui Chat Application - Franz
https://github.com/meetfranz/franz
*** Installation
Download the AppImage and run it.
** Weechat ** Weechat
https://weechat.org/files/doc/stable/weechat_user.en.html https://weechat.org/files/doc/stable/weechat_user.en.html
@ -733,7 +760,6 @@ Enable mouse support:
*** TODO Theme *** TODO Theme
https://www.bfoliver.com/technology/2017/07/15/weechat/ https://www.bfoliver.com/technology/2017/07/15/weechat/
https://alexjj.com/blog/2016/9/setting-up-weechat/ https://alexjj.com/blog/2016/9/setting-up-weechat/
#+begin_src conf #+begin_src conf
/set weechat.look.prefix_same_nick "⤷" /set weechat.look.prefix_same_nick "⤷"
@ -772,6 +798,7 @@ Then alt-enter is bound to insert a new line:
/set plugins.var.perl.multiline.magic_paste_only on /set plugins.var.perl.multiline.magic_paste_only on
/key bind meta-ctrl-M /input insert \x0a /key bind meta-ctrl-M /input insert \x0a
#+end_src #+end_src
And enter is bound to =magic_enter= that directly sends the message if its one line, and if its multiple line, waits a little bit and then sends the message: And enter is bound to =magic_enter= that directly sends the message if its one line, and if its multiple line, waits a little bit and then sends the message:
#+begin_src conf #+begin_src conf
/key bind ctrl-M /input magic_enter /key bind ctrl-M /input magic_enter
@ -803,11 +830,6 @@ Dependency:
yay -S python2-websocket-client yay -S python2-websocket-client
#+end_src #+end_src
** TODO Terminal Based - Slack-Term
https://github.com/erroneousboat/slack-term
*** Installation
** TODO Using Emacs ** TODO Using Emacs
* Redshift * Redshift
http://jonls.dk/redshift/ http://jonls.dk/redshift/
@ -991,7 +1013,6 @@ yay -S nnn
https://wiki.archlinux.org/index.php/PCManFM https://wiki.archlinux.org/index.php/PCManFM
* TODO [#B] Image viewer * TODO [#B] Image viewer
** TODO Write a script to open any type of image using the corresponding program ** TODO Write a script to open any type of image using the corresponding program
| Filetype | png | pdf | svg | | Filetype | png | pdf | svg |
|----------+-----+---------+---------| |----------+-----+---------+---------|
@ -1051,17 +1072,6 @@ https://github.com/i3/i3/blob/next/contrib/per-workspace-layout.pl
For instance, default to tabbed windows for workspace dealing with matlab figures. For instance, default to tabbed windows for workspace dealing with matlab figures.
*** Figures / Matlab *** Figures / Matlab
** TODO [#C] Scratchpad
This mode is activated using =cmd-s=.
| Command | Usage |
|---------+------------------------|
| =p= | Music Player - ncmpcpp |
| =m= | Mail Reader - neomutt |
| =c= | Calculator - insect |
To close the current Scratchpad, use =cmd-bsp=
** TODO [#B] CheatSheet ** TODO [#B] CheatSheet
| Command | Usage | | Command | Usage |
|---------+-------| |---------+-------|
@ -1086,26 +1096,6 @@ Polybar is launched automatically from i3 config.
- [ ] switch theme (dark/light) - [ ] switch theme (dark/light)
- [ ] suspend, restart, hibernate, lock - [ ] suspend, restart, hibernate, lock
** Display unread emails
Let's say we want to display unread emails, and when clicking on that we open our mail client.
#+BEGIN_SRC
[module/unread_mail]
type = custom/script
label-font = 2
format-underline = ${colors.background}
click-left = termite -e "tmuxinator start neomutt" &
format = <label>
exec = ~/.config/polybar/scripts/unread_mails.sh
interval = 1
#+END_SRC
A custom script =~/.config/polybar/scripts/unread_mails.sh= is just returning the unread emails.
** TODO [#C] Create multiple bars
https://www.reddit.com/r/unixporn/comments/92guq6/i3polybar_animated_polybar_drop_down_menus/?utm_name=u_tdehaeze
** TODO [#C] Add Conky to polybar ** TODO [#C] Add Conky to polybar
* TODO [#C] Compositor - Compton * TODO [#C] Compositor - Compton
https://wiki.archlinux.org/index.php/Compton https://wiki.archlinux.org/index.php/Compton
@ -1119,7 +1109,7 @@ yay -S compton
** TODO [#B] Configuration ** TODO [#B] Configuration
=~/.config/compton.conf= =~/.config/compton.conf=
** GUI Configuration ** TODO GUI Configuration
To install: To install:
#+begin_src bash #+begin_src bash
yay -S compton-conf yay -S compton-conf
@ -1189,60 +1179,7 @@ Run ~qt5ct~ to manage QT Themes.
** XFT Themes ** XFT Themes
Some configuration are located in =~/.Xresources=. Some configuration are located in =~/.Xresources=.
* Launcher - Rofi
https://github.com/DaveDavenport/rofi
** Installation
#+BEGIN_SRC bash
yay -S rofi
#+END_SRC
** Setup rofi as a dmenu replacement
Setup rofi as a dmenu replacement in =~/.i3/config=:
#+BEGIN_SRC
bindsym $mod+d exec --no-startup-id rofi -show run
#+END_SRC
** Run sudo commands with rofi
https://github.com/DaveDavenport/rofi/issues/584#issuecomment-384555551
Use ~sudo -A~, that will open a rofi prompt to ask for the password.
For that to work, we need to add the following code to =~/.profile=:
#+BEGIN_SRC bash
export SUDO_ASKPASS=~/bin/askpass-rofi
#+END_SRC
The =askpass= script is:
#+BEGIN_SRC bash
#!/bin/sh
# Take password prompt from STDIN, print password to STDOUT
# the sed piece just removes the colon from the provided
# prompt: rofi -p already gives us a colon
rofi -dmenu \
-password \
-no-fixed-num-lines \
-p "$(printf "$1" | sed s/://)"
#+END_SRC
* TODO [#A] Advanced config * TODO [#A] Advanced config
** TODO [#A] Deactivate startup mac sound
#+BEGIN_SRC bash
sudo nvram SystemAudioVolume=%80
#+END_SRC
** TODO [#B] Webcam
https://github.com/patjak/bcwc_pcie/wiki/Get-Started
Explain how this is working now
** TODO [#C] Trackpad
The configuration is here: =/etc/X11/xorg.conf.d/30-touchpad.conf=
** TODO [#A] Startup programs
Should I use i3 or systemd for that?
https://www.reddit.com/r/linux/comments/132gle/eli5_the_systemd_vs_initupstart_controversy/
** TODO [#C] Printer ** TODO [#C] Printer
https://wiki.archlinux.org/index.php/CUPS https://wiki.archlinux.org/index.php/CUPS
Web based administration: http://localhost:631/ Web based administration: http://localhost:631/
@ -1283,19 +1220,6 @@ https://wiki.archlinux.org/index.php/Powertop
Alternative: pm-utils Alternative: pm-utils
** TODO [#A] Suspend / Hibernate
https://bbs.archlinux.org/viewtopic.php?id=215091
https://loicpefferkorn.net/2015/01/arch-linux-sur-macbook-pro-retina-2014-avec-dm-crypt-lvm-et-hibernation/
https://0xadada.pub/2016/03/05/install-encrypted-arch-linux-on-apple-macbook-pro/#configuring-wireless
https://medium.com/@tigersoldier/macbook-pro-2015-with-arch-linux-4f8d3a2c0de5
To work around this problem, disable the driver before suspend: =sudo rmmod brcmfmac=
On wake up, re-enable the driver: =sudo modprobe brcmfmac=
*** Current behavior
Actually, it seems that the first suspend is working. After that the macbook go out of the suspend after few seconds
** TODO [#A] Lid open/close ** TODO [#A] Lid open/close
Should automatic show lock screen Should automatic show lock screen
@ -1308,18 +1232,6 @@ https://wiki.archlinux.org/index.php/USB_storage_devices
https://wiki.manjaro.org/index.php?title=ExFAT_file_system https://wiki.manjaro.org/index.php?title=ExFAT_file_system
AUR package: bash mount AUR package: bash mount
** TODO [#C] NAS Synology
*** Script to mount and umount
https://blog.whabash.com/posts/mounting_synology_nas_shared_folder_nfs_ubuntu_16_10
=~/bin/nas=
*** TODO Automatic Backup of folders?
AUR package: synology backup
*** TODO Automatic Mount of NAS folder
https://wiki.archlinux.org/index.php/NFS
https://hoarding.me/rclone-scripts/
https://blog.whabash.com/posts/mounting_synology_nas_shared_folder_nfs_ubuntu_16_10
*** TODO [#A] Install beets on the nas?
** TODO [#C] Format disks ** TODO [#C] Format disks
https://gparted.org/ https://gparted.org/
@ -1328,15 +1240,8 @@ https://gparted.org/
** TODO [#B] Bluetooth ** TODO [#B] Bluetooth
Bluetooth: Gui: https://github.com/blueman-project/blueman Bluetooth: Gui: https://github.com/blueman-project/blueman
*** TODO Bluetooth mouse MX Anywhere
https://blog.onee3.org/2016/09/how-to-get-logitech-mx-anywhere-2-to-work-with-ubuntu/
*** TODO Bluetooth headset
** TODO [#B] Wifi
https://0xadada.pub/2016/03/05/install-encrypted-arch-linux-on-apple-macbook-pro/#ref:note:1
** TODO [#B] Temperature and Fan control ** TODO [#B] Temperature and Fan control
https://github.com/dgraziotin/mbpfan https://github.com/dgraziotin/mbpfan
https://0xadada.pub/2016/03/05/install-encrypted-arch-linux-on-apple-macbook-pro/#fine-tuning
Fan are controlled by mbpfan. The config file is =/etc/mbpfan.conf= Fan are controlled by mbpfan. The config file is =/etc/mbpfan.conf=
#+BEGIN_SRC bash #+BEGIN_SRC bash
@ -1352,11 +1257,6 @@ sudo systemctl enable thermald
sudo systemctl start thermald sudo systemctl start thermald
#+END_SRC #+END_SRC
** TODO [#B] Refind / Grub
https://github.com/EvanPurkhiser/rEFInd-minimal
https://www.pclosmag.com/html/Issues/200709/page07.html
*** TODO Switch from Refind to Grub
https://www.reddit.com/r/archlinux/comments/a2euuz/switching_from_refind_to_grub/?utm_name=u_tdehaeze
** TODO [#B] Lock Screen ** TODO [#B] Lock Screen
https://github.com/pavanjadhaw/betterlockscreen https://github.com/pavanjadhaw/betterlockscreen
@ -1430,6 +1330,8 @@ https://wiki.archlinux.org/index.php/MATLAB#Installation
yay -S matlab yay -S matlab
#+END_SRC #+END_SRC
If there is a problem when opening a Simulink file, check the solution [[https://fr.mathworks.com/matlabcentral/answers/361053-can-t-reload-usr-local-matlab-r2017b-bin-glnxa64-libmwdastudio-so][here]].
** SageMath ** SageMath
http://www.sagemath.org/ http://www.sagemath.org/
https://wiki.archlinux.org/index.php/SageMath https://wiki.archlinux.org/index.php/SageMath