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:
:header-args: :tangle ~/.xinitrc
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/bin/sh"
:END:
#+BEGIN_SRC conf
#!/bin/sh
# =============================================================
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# =============================================================
#+END_SRC
# =============================================================
# merge in defaults and keymaps
# =============================================================
merge in defaults and keymaps
#+BEGIN_SRC conf
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
@ -344,80 +339,31 @@ fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# =============================================================
#+END_SRC
# =============================================================
# start some nice programs
# =============================================================
start some nice programs
#+BEGIN_SRC conf
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# =============================================================
#+END_SRC
# =============================================================
# hiDPI
# =============================================================
hiDPI
#+BEGIN_SRC conf
export GDK_SCALE=1
export GDK_DPI_SCALE=0.95
export QT_SCREEN_SCALE_FACTORS=0.9
export QT_AUTO_SCREEN_SCALE_FACTOR=2
export QT_SCALE_FACTOR=2
# =============================================================
#+END_SRC
# =============================================================
# 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
#+BEGIN_SRC conf
export XDG_CURRENT_DESKTOP=Budgie:GNOME
exec budgie-desktop
# =============================================================
#+END_SRC
* Calcurse
@ -752,24 +698,16 @@ default-cache-ttl 60480000
:END:
#+BEGIN_SRC conf
# =============================================================
next_img L space
prev_img BackSpace H
# =============================================================
# =============================================================
scroll_up k Up
scroll_down j Down
scroll_right l Right
scroll_left h Left
# =============================================================
# =============================================================
toggle_fullscreen f
save_filelist F
# =============================================================
#+END_SRC
* MPV
@ -1084,152 +1022,6 @@ stop-screensaver = "yes"
# =============================================================
#+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
:PROPERTIES:
:header-args: :tangle ~/.config/zathura/zathurarc
@ -1273,10 +1065,8 @@ map m toggle_statusbar
:header-args+: :comments both :mkdirp yes
:END:
** Shadow
#+BEGIN_SRC conf
# ============================================================
# Shadow
# ============================================================
shadow = false;
# no-dnd-shadow = true;
no-dock-shadow = true;
@ -1304,10 +1094,10 @@ shadow-exclude = [
# shadow-exclude-reg = "x10+0+0";
# xinerama-shadow-crop = true;
# ============================================================
#+END_SRC
# ============================================================
#+BEGIN_SRC conf
menu-opacity = 1.0;
inactive-opacity = 0.9;
active-opacity = 1.0;
@ -1316,21 +1106,18 @@ alpha-step = 0.0;
inactive-dim = 0.05;
blur-background = true;
blur-kern = "3x3box";
# ============================================================
#+END_SRC
# ============================================================
# Fading - TODO
# ============================================================
** TODO Fading
#+BEGIN_SRC conf
fading = false;
fade-delta = 1;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];
# ============================================================
#+END_SRC
# ============================================================
#+BEGIN_SRC conf
backend = "xrender";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
@ -1346,12 +1133,10 @@ detect-client-leader = true;
invert-color-include = [ ];
glx-copy-from-front = false;
glx-swap-method = "undefined";
# ============================================================
#+END_SRC
# ============================================================
# Opacity Rules for specific windows
# ============================================================
Opacity Rules for specific windows
#+BEGIN_SRC conf
#opacity-rule = [
#"99:name *?= 'Call'",
#"99:class_g = 'Chromium'",
@ -1382,10 +1167,9 @@ glx-swap-method = "undefined";
#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
#"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'"
#];
# ============================================================
#+END_SRC
# ============================================================
#+BEGIN_SRC conf
wintypes :
{
tooltip :
@ -1403,7 +1187,6 @@ wintypes :
focus = true;
};
};
# ============================================================
#+END_SRC
* Locale
@ -1467,42 +1250,33 @@ application/x-bittorrent=deluge.desktop;
:PROPERTIES:
:header-args: :tangle ~/.config/buku_run/config
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+BEGIN_SRC conf
#!/usr/bin/env bash
# =============================================================
_rofi () {
rofi -dmenu -i -no-levenshtein-sort -width 1000 "$@"
}
# =============================================================
#+END_SRC
# =============================================================
# display settings
# =============================================================
display settings
#+BEGIN_SRC conf
display_type=1
max_str_width=80
# =============================================================
#+END_SRC
# =============================================================
# keybindings
# =============================================================
keybindings
#+BEGIN_SRC conf
switch_view="Alt+Tab"
new_bookmark="Alt+n"
actions="Alt+a"
edit="Alt+e"
delete="Alt+d"
# =============================================================
#+END_SRC
# =============================================================
# colors
# =============================================================
colors
#+BEGIN_SRC conf
help_color="#2d7ed8"
# =============================================================
#+END_SRC
* Clipit - Clipboard Manager
@ -1538,6 +1312,7 @@ search_key=
offline_key=
offline_mode=false
#+END_SRC
* Conky
:PROPERTIES:
:header-args: :tangle ~/.config/conky/conky.conf
@ -1621,6 +1396,7 @@ offline_mode=false
]]
#+END_SRC
* Scrot
:PROPERTIES:
:header-args: :tangle ~/.config/i3-scrot.conf
@ -1787,5 +1563,6 @@ jpeg-quality=90
png-compression=9
desktop=9
#+END_SRC
* TODO Binaries
* TODO Scripts
* TODO [#A] Binaries
* TODO [#A] Scripts

View File

@ -161,7 +161,7 @@
autocrlf = input
# 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
** Credentials using pass
@ -173,17 +173,6 @@
username = tdehaeze
#+END_SRC
** Magithub
#+BEGIN_SRC conf
[magithub]
online = false
[magithub "status"]
includeStatusHeader = false
includePullRequestsSection = false
includeIssuesSection = false
#+END_SRC
** Diff-so-fancy
#+begin_src conf
[diff-so-fancy]

View File

@ -23,8 +23,8 @@ hide_edge_borders none
font SauceCodePro Nerd Font 11
#+end_src
* Multimedia keys
#+begin_src conf
* TODO Multimedia keys
#+begin_src conf :tangle no
# Sound
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 5%+
@ -54,7 +54,7 @@ bindsym XF86LaunchB fullscreen toggle
# Windows Switch
bindsym $mod+w exec --no-startup-id rofi -show window
# 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
# bindsym $mod+Shift+d exec --no-startup-id rofi -show drun -show-icons
# 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
#+end_src
* Vim Anywhere
* TODO Vim Anywhere
#+begin_src conf
# bindsym $mod+t exec vim-anywhere nvim termite
#+end_src
* TODO Screenshot - Change to simplier keys
#+begin_src conf
#+begin_src conf :tangle no
bindsym Print exec --no-startup-id i3-scrot
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
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
#+begin_src conf
# 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
exec --no-startup-id $HOME/scripts/wallpaper.sh
# exec --no-startup-id $HOME/scripts/wallpaper.sh
# Run Compton
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
# 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
exec --no-startup-id redshift
# Start mopidy
exec --no-startup-id mopidy
# exec --no-startup-id mopidy
# Emacs 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
#+begin_src conf
# 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
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'
#+END_SRC
** TODO [#A] Searching using Mu
** Searching using Mu
#+begin_src conf
# mutt macros for mu
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
** TODO Mailcap configuration
** TODO Print
** TODO [#A] Print
https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
#+BEGIN_SRC conf

View File

@ -81,7 +81,8 @@ margin-bottom = 5
modules-left = i3
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-padding = 2
@ -122,9 +123,11 @@ margin-bottom = 5
font-2 = Weather Icons:size=10;1
# font-3 = siji:pixelsize=10;1
modules-left = mpd pulseaudio
modules-left =
# modules-left = mpd pulseaudio
# 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-padding = 2
@ -186,11 +189,11 @@ margin-bottom = 5
** TODO - Choose some nice icons
#+BEGIN_SRC conf
ws-icon-default = 
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-4 = 5;
#+END_SRC
#+BEGIN_SRC conf

View File

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

View File

@ -1,5 +1,5 @@
#+TITLE: Vim Config
#+PROPERTY: header-args+ :comments both
#+PROPERTY: header-args+ :comments none
#+PROPERTY: header-args+ :mkdirp yes
#+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
** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
sudo pacman -S yay
#+END_SRC
@ -65,11 +65,12 @@ sudo pacman -S yay
https://git-scm.com/
** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S git
#+END_SRC
** Configuration
[[file:dotfiles/git.org][dotfiles/git.org]]
- =~/.gitconfig=
- =~/.gitignore_global=
@ -85,12 +86,6 @@ yay -S diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
#+end_src
** TODO Github interface - Hub
*** Installation
#+begin_src bash
yay -S hub
#+end_src
** Credential Helper setup with Pass
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
** Termite
*** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S termite
#+END_SRC
*** Configuration
[[file:dotfiles/termite.org][termite.org]]
- =~/.config/termite/config=
*** Cheatsheet
@ -121,7 +117,7 @@ yay -S termite
** TODO [#C] Unicode Rxvt
*** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S rxvt-unicode
#+END_SRC
@ -132,7 +128,7 @@ Most of Urxvt configuration is done in =~/.Xresources=
https://wiki.archlinux.org/index.php/Bash
** Bash Completion
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S bash-completion
#+END_SRC
@ -146,10 +142,16 @@ yay -S bash-completion
https://github.com/tmux/tmux
** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S tmux
#+END_SRC
** Configuration
After configuration is generated.
#+begin_src bash
tmux source-file ~/.tmux.conf
#+end_src
** Session Manager - Tmuxinator
https://github.com/tmuxinator/tmuxinator
@ -170,8 +172,10 @@ This is used with rofi.
** TODO [#A] Multiple Tmux configuration
- one with no line for neomutt
- one complete for coding
** TODO [#B] Configuration: theme
https://github.com/seebi/tmux-colors-solarized
** TODO [#A] To check
- https://github.com/gpakosz/.tmux
- https://gist.github.com/MohamedAlaa/2961058
@ -187,8 +191,8 @@ https://github.com/seebi/tmux-colors-solarized
* TODO [#C] Fonts
** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
yay -S ttf-inconsolata nerd-font-complete ttf-linux-libertine
#+BEGIN_SRC bash
yay -S ttf-inconsolata nerd-fonts-complete ttf-linux-libertine ttf-emojione
#+END_SRC
** TODO [#C] Default fonts
@ -199,13 +203,6 @@ Maybe use:
- Serif Font: Libertine
- 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
| Command | Usage |
|-----------+--------------------------|
@ -216,7 +213,7 @@ yay -S ttf-emojione
https://github.com/neovim/neovim
*** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S neovim
#+END_SRC
@ -244,7 +241,7 @@ https://github.com/daeyun/vim-matlab/
https://www.gnu.org/software/emacs/
*** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S emacs
#+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]]
*** SpellCheck with Aspell
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
#+BEGIN_SRC bash
yay -S aspell aspell-en aspell-fr
#+END_SRC
@ -307,6 +304,43 @@ max-cache-ttl 60480000
default-cache-ttl 60480000
#+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
https://www.passwordstore.org/
@ -315,8 +349,6 @@ https://www.passwordstore.org/
yay -S pass
#+END_SRC
** TODO Connect the GPG key
** Initialize the password store as a git repository
#+BEGIN_SRC bash
pass git init
@ -385,7 +417,7 @@ https://github.com/jarun/Buku
** Installation
#+BEGIN_SRC bash
yaourt -S buku
yay -S buku
#+END_SRC
** 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=
#+BEGIN_SRC
config.bind('<Ctrl-p>', 'spawn --userscript password_fill')
config.bind(',p', 'spawn --userscript password_fill')
#+END_SRC
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 Chat Application
** Gui Chat Application - Franz
https://github.com/meetfranz/franz
*** Installation
Download the AppImage and run it.
** Weechat
https://weechat.org/files/doc/stable/weechat_user.en.html
@ -733,7 +760,6 @@ Enable mouse support:
*** TODO Theme
https://www.bfoliver.com/technology/2017/07/15/weechat/
https://alexjj.com/blog/2016/9/setting-up-weechat/
#+begin_src conf
/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
/key bind meta-ctrl-M /input insert \x0a
#+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:
#+begin_src conf
/key bind ctrl-M /input magic_enter
@ -803,11 +830,6 @@ Dependency:
yay -S python2-websocket-client
#+end_src
** TODO Terminal Based - Slack-Term
https://github.com/erroneousboat/slack-term
*** Installation
** TODO Using Emacs
* Redshift
http://jonls.dk/redshift/
@ -991,7 +1013,6 @@ yay -S nnn
https://wiki.archlinux.org/index.php/PCManFM
* TODO [#B] Image viewer
** TODO Write a script to open any type of image using the corresponding program
| 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.
*** 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
| Command | Usage |
|---------+-------|
@ -1086,26 +1096,6 @@ Polybar is launched automatically from i3 config.
- [ ] switch theme (dark/light)
- [ ] 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] Compositor - Compton
https://wiki.archlinux.org/index.php/Compton
@ -1119,7 +1109,7 @@ yay -S compton
** TODO [#B] Configuration
=~/.config/compton.conf=
** GUI Configuration
** TODO GUI Configuration
To install:
#+begin_src bash
yay -S compton-conf
@ -1189,60 +1179,7 @@ Run ~qt5ct~ to manage QT Themes.
** XFT Themes
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] 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
https://wiki.archlinux.org/index.php/CUPS
Web based administration: http://localhost:631/
@ -1283,19 +1220,6 @@ https://wiki.archlinux.org/index.php/Powertop
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
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
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
https://gparted.org/
@ -1328,15 +1240,8 @@ https://gparted.org/
** TODO [#B] Bluetooth
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
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=
#+BEGIN_SRC bash
@ -1352,11 +1257,6 @@ sudo systemctl enable thermald
sudo systemctl start thermald
#+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
https://github.com/pavanjadhaw/betterlockscreen
@ -1430,6 +1330,8 @@ https://wiki.archlinux.org/index.php/MATLAB#Installation
yay -S matlab
#+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
http://www.sagemath.org/
https://wiki.archlinux.org/index.php/SageMath