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

@ -117,26 +117,26 @@ URxvt.keysym.C-S-v: perl:clipboard:paste
:END:
#+BEGIN_SRC conf
# define the font for dmenu to be used
DMENU_FN="Noto-10.5"
# define the font for dmenu to be used
DMENU_FN="Noto-10.5"
# background colour for unselected menu-items
DMENU_NB="#222D31"
# background colour for unselected menu-items
DMENU_NB="#222D31"
# textcolour for unselected menu-items
DMENU_NF="#F9FAF9"
# textcolour for unselected menu-items
DMENU_NF="#F9FAF9"
# background colour for selected menu-items
DMENU_SB="#16A085"
# background colour for selected menu-items
DMENU_SB="#16A085"
# textcolour for selected menu-items
DMENU_SF="#F9FAF9"
# textcolour for selected menu-items
DMENU_SF="#F9FAF9"
# command for the terminal application to be used:
TERMINAL_CMD="terminal -e"
# command for the terminal application to be used:
TERMINAL_CMD="terminal -e"
# export our variables
DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"
# export our variables
DMENU_OPTIONS="-fn $DMENU_FN -nb $DMENU_NB -nf $DMENU_NF -sf $DMENU_SF -sb $DMENU_SB"
#+END_SRC
* GTK
@ -312,112 +312,58 @@ 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
#+BEGIN_SRC conf
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
# =============================================================
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# =============================================================
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
# =============================================================
# merge in defaults and keymaps
# =============================================================
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
#+END_SRC
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
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
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
hiDPI
#+BEGIN_SRC conf
export GDK_SCALE=1
export GDK_DPI_SCALE=0.95
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# =============================================================
export QT_SCREEN_SCALE_FACTORS=0.9
export QT_AUTO_SCREEN_SCALE_FACTOR=2
export QT_SCALE_FACTOR=2
#+END_SRC
# =============================================================
# start some nice programs
# =============================================================
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
# =============================================================
# =============================================================
# hiDPI
# =============================================================
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
# =============================================================
# =============================================================
# 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
exec budgie-desktop
# =============================================================
#+BEGIN_SRC conf
export XDG_CURRENT_DESKTOP=Budgie:GNOME
exec budgie-desktop
#+END_SRC
* Calcurse
@ -427,33 +373,33 @@ exec budgie-desktop
:END:
#+BEGIN_SRC conf
appearance.calendarview=monthly
appearance.compactpanels=no
appearance.defaultpanel=calendar
appearance.layout=1
appearance.notifybar=yes
appearance.sidebarwidth=0
appearance.theme=red on default
appearance.todoview=show-completed
appearance.headingpos=right-justified
daemon.enable=no
daemon.log=no
format.inputdate=1
format.notifydate=%a %F
format.notifytime=%T
format.outputdate=%D
format.dayheading=%B %-d, %Y
general.autogc=no
general.autosave=yes
general.confirmdelete=yes
general.confirmquit=yes
general.firstdayofweek=monday
general.periodicsave=0
general.progressbar=yes
general.systemdialogs=yes
notification.command=printf '\a'
notification.notifyall=flagged-only
notification.warning=300
appearance.calendarview=monthly
appearance.compactpanels=no
appearance.defaultpanel=calendar
appearance.layout=1
appearance.notifybar=yes
appearance.sidebarwidth=0
appearance.theme=red on default
appearance.todoview=show-completed
appearance.headingpos=right-justified
daemon.enable=no
daemon.log=no
format.inputdate=1
format.notifydate=%a %F
format.notifytime=%T
format.outputdate=%D
format.dayheading=%B %-d, %Y
general.autogc=no
general.autosave=yes
general.confirmdelete=yes
general.confirmquit=yes
general.firstdayofweek=monday
general.periodicsave=0
general.progressbar=yes
general.systemdialogs=yes
notification.command=printf '\a'
notification.notifyall=flagged-only
notification.warning=300
#+END_SRC
* GnuPG
@ -463,8 +409,8 @@ notification.warning=300
:END:
#+BEGIN_SRC conf
max-cache-ttl 60480000
default-cache-ttl 60480000
max-cache-ttl 60480000
default-cache-ttl 60480000
#+END_SRC
* Dunst
@ -752,24 +698,16 @@ default-cache-ttl 60480000
:END:
#+BEGIN_SRC conf
# =============================================================
next_img L space
prev_img BackSpace H
# =============================================================
next_img L space
prev_img BackSpace H
scroll_up k Up
scroll_down j Down
scroll_right l Right
scroll_left h Left
# =============================================================
scroll_up k Up
scroll_down j Down
scroll_right l Right
scroll_left h Left
# =============================================================
# =============================================================
toggle_fullscreen f
save_filelist F
# =============================================================
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
@ -1237,34 +1029,34 @@ WantedBy=default.target
:END:
#+BEGIN_SRC conf
# Include the theme file
include zathurarc.theme
# Include the theme file
include zathurarc.theme
# Use clipboard
set selection-clipboard clipboard
# Use clipboard
set selection-clipboard clipboard
# Remove padding
set statusbar-h-padding 0
set statusbar-v-padding 0
# Remove padding
set statusbar-h-padding 0
set statusbar-v-padding 0
# Padding between pages
set page-padding 1
# Padding between pages
set page-padding 1
map u scroll half-up
map d scroll half-down
map u scroll half-up
map d scroll half-down
map D toggle_page_mode
map D toggle_page_mode
map r reload
map R rotate
map r reload
map R rotate
map L zoom in
map H zoom out
map L zoom in
map H zoom out
map i recolor
map p print
map i recolor
map p print
map m toggle_statusbar
map m toggle_statusbar
#+END_SRC
* Compton
@ -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
@ -1413,20 +1196,20 @@ wintypes :
:END:
#+BEGIN_SRC conf
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
#+END_SRC
* Mime applications
@ -1436,73 +1219,64 @@ LC_ALL=
:END:
#+BEGIN_SRC conf
[Default Applications]
image/jpeg=feh.desktop
image/png=feh.desktop;
text/plain=nvim.desktop
x-scheme-handler/mailto=neomutt.desktop
message/rfc822=neomutt.desktop
application/x-bittorrent=deluge.desktop
application/pdf=zathura.desktop
x-scheme-handler/http=qutebrowser.desktop
x-scheme-handler/https=qutebrowser.desktop
x-scheme-handler/ftp=qutebrowser.desktop
x-scheme-handler/chrome=qutebrowser.desktop
text/html=qutebrowser.desktop
application/x-extension-htm=qutebrowser.desktop
application/x-extension-html=qutebrowser.desktop
application/x-extension-shtml=qutebrowser.desktop
application/xhtml+xml=qutebrowser.desktop
application/x-extension-xhtml=qutebrowser.desktop
application/x-extension-xht=qutebrowser.desktop
[Default Applications]
image/jpeg=feh.desktop
image/png=feh.desktop;
text/plain=nvim.desktop
x-scheme-handler/mailto=neomutt.desktop
message/rfc822=neomutt.desktop
application/x-bittorrent=deluge.desktop
application/pdf=zathura.desktop
x-scheme-handler/http=qutebrowser.desktop
x-scheme-handler/https=qutebrowser.desktop
x-scheme-handler/ftp=qutebrowser.desktop
x-scheme-handler/chrome=qutebrowser.desktop
text/html=qutebrowser.desktop
application/x-extension-htm=qutebrowser.desktop
application/x-extension-html=qutebrowser.desktop
application/x-extension-shtml=qutebrowser.desktop
application/xhtml+xml=qutebrowser.desktop
application/x-extension-xhtml=qutebrowser.desktop
application/x-extension-xht=qutebrowser.desktop
[Added Associations]
image/jpeg=viewnior.desktop;gpicview.desktop;
image/png=viewnior.desktop;gpicview.desktop;
text/plain=mousepad.desktop;
application/x-bittorrent=deluge.desktop;
[Added Associations]
image/jpeg=viewnior.desktop;gpicview.desktop;
image/png=viewnior.desktop;gpicview.desktop;
text/plain=mousepad.desktop;
application/x-bittorrent=deluge.desktop;
#+END_SRC
* Bukurun
: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
@ -1512,32 +1286,33 @@ help_color="#2d7ed8"
:END:
#+BEGIN_SRC conf
[rc]
use_copy=true
use_primary=false
synchronize=false
automatic_paste=false
show_indexes=false
save_uris=false
use_rmb_menu=false
save_history=false
history_limit=50
items_menu=20
statics_show=false
statics_items=10
hyperlinks_only=false
confirm_clear=false
single_line=false
reverse_history=false
item_length=50
ellipsize=2
history_key=
actions_key=
menu_key=
search_key=
offline_key=
offline_mode=false
[rc]
use_copy=true
use_primary=false
synchronize=false
automatic_paste=false
show_indexes=false
save_uris=false
use_rmb_menu=false
save_history=false
history_limit=50
items_menu=20
statics_show=false
statics_items=10
hyperlinks_only=false
confirm_clear=false
single_line=false
reverse_history=false
item_length=50
ellipsize=2
history_key=
actions_key=
menu_key=
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
@ -1628,7 +1404,7 @@ offline_mode=false
:END:
#+BEGIN_SRC conf
scrot_dir=$HOME/Pictures
scrot_dir=$HOME/Pictures
#+END_SRC
* Khal
@ -1638,15 +1414,15 @@ scrot_dir=$HOME/Pictures
:END:
#+BEGIN_SRC conf
[calendars]
[calendars]
[[home]]
path = ~/.calendars/google/dehaeze.thomas@gmail.com/
color = dark green
path = ~/.calendars/google/dehaeze.thomas@gmail.com/
color = dark green
[[work]]
path = ~/.calendars/google/8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com/
color = dark red
path = ~/.calendars/google/8kjmhe2ar0abnm054ill1fb0gc@group.calendar.google.com/
color = dark red
#+END_SRC
* Nitrogen
:PROPERTIES:
@ -1676,8 +1452,8 @@ scrot_dir=$HOME/Pictures
:END:
#+BEGIN_SRC conf
[github.com*]
target=github.com/tdehaeze
[github.com*]
target=github.com/tdehaeze
#+END_SRC
* Pavu Control
@ -1687,14 +1463,14 @@ target=github.com/tdehaeze
:END:
#+BEGIN_SRC conf
[window]
width=500
height=400
sinkInputType=1
sourceOutputType=1
sinkType=0
sourceType=1
showVolumeMeters=1
[window]
width=500
height=400
sinkInputType=1
sourceOutputType=1
sinkType=0
sourceType=1
showVolumeMeters=1
#+END_SRC
* PCmanfm
@ -1704,32 +1480,32 @@ showVolumeMeters=1
:END:
#+BEGIN_SRC conf
[config]
bm_open_method=0
[config]
bm_open_method=0
[volume]
mount_on_startup=1
mount_removable=1
autorun=1
[volume]
mount_on_startup=1
mount_removable=1
autorun=1
[ui]
always_show_tabs=0
max_tab_chars=32
win_width=1263
win_height=690
splitter_pos=150
media_in_new_tab=0
desktop_folder_new_win=0
change_tab_on_drop=1
close_on_unmount=1
focus_previous=0
side_pane_mode=places
view_mode=icon
show_hidden=0
sort=mtime;descending;
toolbar=newtab;navigation;home;
show_statusbar=1
pathbar_mode_buttons=0
[ui]
always_show_tabs=0
max_tab_chars=32
win_width=1263
win_height=690
splitter_pos=150
media_in_new_tab=0
desktop_folder_new_win=0
change_tab_on_drop=1
close_on_unmount=1
focus_previous=0
side_pane_mode=places
view_mode=icon
show_hidden=0
sort=mtime;descending;
toolbar=newtab;navigation;home;
show_statusbar=1
pathbar_mode_buttons=0
#+END_SRC
* Vdirsyncer
@ -1767,25 +1543,26 @@ pathbar_mode_buttons=0
:END:
#+BEGIN_SRC conf
[prefs]
zoom-mode=0
fit-on-fullscreen=true
show-hidden=false
smooth-images=true
confirm-delete=true
reload-on-save=false
show-menu-bar=false
show-toolbar=true
show-scrollbar=true
start-maximized=false
slideshow-timeout=5
auto-resize=false
behavior-wheel=1
behavior-click=0
behavior-modify=0
jpeg-quality=90
png-compression=9
desktop=9
[prefs]
zoom-mode=0
fit-on-fullscreen=true
show-hidden=false
smooth-images=true
confirm-delete=true
reload-on-save=false
show-menu-bar=false
show-toolbar=true
show-scrollbar=true
start-maximized=false
slideshow-timeout=5
auto-resize=false
behavior-wheel=1
behavior-click=0
behavior-modify=0
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
@ -171,32 +171,32 @@ bindsym $mod+f fullscreen toggle
** TODO Toggle tiling / floating
#+begin_src conf
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+space floating toggle
#+end_src
** TODO Change focus between tiling / floating windows
#+begin_src conf
# bindsym $mod+space focus mode_toggle
# bindsym $mod+space focus mode_toggle
#+end_src
** TODO Toggle sticky
#+begin_src conf
bindsym $mod+Shift+s sticky toggle
bindsym $mod+Shift+s sticky toggle
#+end_src
** TODO Focus the parent container
#+begin_src conf
bindsym $mod+a focus parent
bindsym $mod+a focus parent
#+end_src
* Scratchpad
#+begin_src conf
# move the currently focused window to the scratchpad
bindsym $mod+Shift+BackSpace move scratchpad
# move the currently focused window to the scratchpad
bindsym $mod+Shift+BackSpace move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+BackSpace scratchpad show
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+BackSpace scratchpad show
#+end_src
* Custom Cratchpad for Quick Access
@ -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

@ -45,9 +45,9 @@ black = ${#000000}
* VM
#+begin_src conf
[global/wm]
margin-top = 5
margin-bottom = 5
[global/wm]
margin-top = 5
margin-bottom = 5
#+end_src
* Top Bar
@ -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
@ -185,17 +188,17 @@ 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-default = 
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
format = <label-state> <label-mode>
index-sort = true
format = <label-state> <label-mode>
index-sort = true
#+END_SRC
** Colors

View File

@ -3,101 +3,100 @@
#+PROPERTY: header-args+ :mkdirp yes
#+PROPERTY: header-args+ :tangle ~/.config/termite/config
* Options
#+BEGIN_SRC conf
[options]
#allow_bold = true
#audible_bell = false
#bold_is_bright = true
clickable_url = true
#dynamic_title = true
font = SauceCodePro Nerd Font Mono 10
#fullscreen = true
#icon_name = terminal
mouse_autohide = true
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
[options]
#allow_bold = true
#audible_bell = false
#bold_is_bright = true
clickable_url = true
#dynamic_title = true
font = SauceCodePro Nerd Font Mono 10
#fullscreen = true
#icon_name = terminal
mouse_autohide = true
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = false
# set size hints for the window
#size_hints = false
# "off", "left" or "right"
#scrollbar = off
# "off", "left" or "right"
#scrollbar = off
highlight = #2f2f2f
[hints]
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
# Scheme: Chris Kempson (http://chriskempson.com)
### END COLORS
[colors]
# Base16 Solarized Light
# Author: Ethan Schoonover (modified by aramisgithub)
foreground = #586e75
foreground_bold = #073642
cursor = #073642
cursor_foreground = #fdf6e3
background = rgb(253, 246, 227)
# 16 color space
# Black, Gray, Silver, White
color0 = #fdf6e3
color8 = #839496
color7 = #586e75
color15 = #002b36
# Red
color1 = #dc322f
color9 = #dc322f
# Green
color2 = #859900
color10 = #859900
# Yellow
color3 = #b58900
color11 = #b58900
# Blue
color4 = #268bd2
color12 = #268bd2
# Purple
color5 = #6c71c4
color13 = #6c71c4
# Teal
color6 = #2aa198
color14 = #2aa198
# Extra colors
color16 = #cb4b16
color17 = #d33682
color18 = #eee8d5
color19 = #93a1a1
color20 = #657b83
color21 = #073642
highlight = #2f2f2f
#+END_SRC
* Hints
#+BEGIN_SRC conf
[hints]
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
#+END_SRC
* Colors
#+BEGIN_SRC conf
[colors]
foreground = #586e75
foreground_bold = #073642
cursor = #073642
cursor_foreground = #fdf6e3
background = rgb(253, 246, 227)
# 16 color space
# Black, Gray, Silver, White
color0 = #fdf6e3
color8 = #839496
color7 = #586e75
color15 = #002b36
# Red
color1 = #dc322f
color9 = #dc322f
# Green
color2 = #859900
color10 = #859900
# Yellow
color3 = #b58900
color11 = #b58900
# Blue
color4 = #268bd2
color12 = #268bd2
# Purple
color5 = #6c71c4
color13 = #6c71c4
# Teal
color6 = #2aa198
color14 = #2aa198
# Extra colors
color16 = #cb4b16
color17 = #d33682
color18 = #eee8d5
color19 = #93a1a1
color20 = #657b83
color21 = #073642
#+END_SRC

View File

@ -5,315 +5,315 @@
* Line
** Define colors
#+BEGIN_SRC conf
t_red="#ef5253" # red
t_red_light="#eb9798" # light red
t_red_dark="#c22627" # dark red
t_red="#ef5253" # red
t_red_light="#eb9798" # light red
t_red_dark="#c22627" # dark red
t_blue="#579cde" # blue
t_blue="#579cde" # blue
t_orange="#de9a57"
t_green="#57de9a"
t_orange="#de9a57"
t_green="#57de9a"
t_grey_dark="#393939" # dark grey
t_grey_light="#d9d9d9" # light grey
t_grey="#ababab" # grey
t_grey_dark="#393939" # dark grey
t_grey_light="#d9d9d9" # light grey
t_grey="#ababab" # grey
t_1l_bg="#ef5253" # red
t_1l_fg="#393939" # dark grey
t_2l_bg="#4e4e4e" # dark grey
t_2l_fg="#e8e8e8" # grey
t_3l_bg="#ababab" # grey
t_3l_fg="#393939" # dark grey
t_4l_bg="#579cde" # blue
t_4l_fg="#393939" # dark grey
t_1l_bg="#ef5253" # red
t_1l_fg="#393939" # dark grey
t_2l_bg="#4e4e4e" # dark grey
t_2l_fg="#e8e8e8" # grey
t_3l_bg="#ababab" # grey
t_3l_fg="#393939" # dark grey
t_4l_bg="#579cde" # blue
t_4l_fg="#393939" # dark grey
t_1r_bg="#909090"
t_1r_fg="#393939"
t_2r_bg="#4e4e4e"
t_2r_fg="#a0a0a0"
t_3r_bg="#ababab" # grey
t_3r_fg="#393939" # dark grey
t_1r_bg="#909090"
t_1r_fg="#393939"
t_2r_bg="#4e4e4e"
t_2r_fg="#a0a0a0"
t_3r_bg="#ababab" # grey
t_3r_fg="#393939" # dark grey
t_line_bg="#18262f" # dark blue
t_line_fg="#393939" # dark grey
t_line_bg="#18262f" # dark blue
t_line_fg="#393939" # dark grey
t_win_bg="#18262f" # dark blue
t_win_fg="#d9d9d9" # light grey
t_win_bg="#18262f" # dark blue
t_win_fg="#d9d9d9" # light grey
t_win_bg_active="#ef5253" # red
t_win_fg_active="#393939" # dark grey
t_win_bg_active="#ef5253" # red
t_win_fg_active="#393939" # dark grey
t_text_fg="#d9d9d9" # light grey
t_text_bg="#393939" # dark grey
t_text_fg="#d9d9d9" # light grey
t_text_bg="#393939" # dark grey
#+END_SRC
** General config
#+BEGIN_SRC conf
set -g status "on" # Activate the status bar
set -g status-attr "none"
set -g status-interval "2" # update status every x seconds
set -g status "on" # Activate the status bar
set -g status-attr "none"
set -g status-interval "2" # update status every x seconds
set -g status-justify "centre" # center the list of windows
set -g status-justify "centre" # center the list of windows
set -g status-bg "$t_line_bg"
set -g status-fg "$t_line_fg"
set -g status-bg "$t_line_bg"
set -g status-fg "$t_line_fg"
#+END_SRC
** Contents of right and light status
#+BEGIN_SRC conf
t_1_l="#S"
t_2_l="%H:%M"
# t_3_l="#($HOME/.config/.tmux/bin/tmux_left_status)"
t_4_l="C"
t_1_r="%d/%m"
# t_2_r="#($HOME/.config/.tmux/bin/tmux_right_status)"
# t_3_r=""
t_1_l="#S"
t_2_l="%H:%M"
# t_3_l="#($HOME/.config/.tmux/bin/tmux_left_status)"
t_4_l="C"
t_1_r="%d/%m"
# t_2_r="#($HOME/.config/.tmux/bin/tmux_right_status)"
# t_3_r=""
#+END_SRC
** Status left and right
#+BEGIN_SRC conf
set -g status-left "#[fg=$t_1l_fg,bg=$t_1l_bg] $t_1_l #[fg=$t_1l_bg,bg=$t_2l_bg]#[fg=$t_2l_fg,bg=$t_2l_bg] $t_2_l #{?client_prefix,#[fg=$t_2l_bg]#[bg=$t_4l_bg]#[fg=$t_4l_fg]#[bg=$t_4l_bg] $t_4_l #[fg=$t_4l_bg]#[bg=$t_line_bg],#[fg=$t_2l_bg]#[bg=$t_line_bg]}"
# set -g status-left "#[fg=$t_1l_fg,bg=$t_1l_bg] $t_1_l #[fg=$t_1l_bg,bg=$t_2l_bg]#[fg=$t_2l_fg,bg=$t_2l_bg] $t_2_l #[fg=$t_2l_bg,bg=$t_3l_bg]#[fg=$t_2l_bg, bg=$t_3l_bg]$t_3_l#{?client_prefix,#[fg=$t_3l_bg]#[bg=$t_4l_bg]#[fg=$t_4l_fg]#[bg=$t_4l_bg] $t_4_l #[fg=$t_4l_bg]#[bg=$t_line_bg],#[fg=$t_3l_bg]#[bg=$t_line_bg]}"
set -g status-left-length "90"
set -g status-left-attr "none"
set -g status-left "#[fg=$t_1l_fg,bg=$t_1l_bg] $t_1_l #[fg=$t_1l_bg,bg=$t_2l_bg]#[fg=$t_2l_fg,bg=$t_2l_bg] $t_2_l #{?client_prefix,#[fg=$t_2l_bg]#[bg=$t_4l_bg]#[fg=$t_4l_fg]#[bg=$t_4l_bg] $t_4_l #[fg=$t_4l_bg]#[bg=$t_line_bg],#[fg=$t_2l_bg]#[bg=$t_line_bg]}"
# set -g status-left "#[fg=$t_1l_fg,bg=$t_1l_bg] $t_1_l #[fg=$t_1l_bg,bg=$t_2l_bg]#[fg=$t_2l_fg,bg=$t_2l_bg] $t_2_l #[fg=$t_2l_bg,bg=$t_3l_bg]#[fg=$t_2l_bg, bg=$t_3l_bg]$t_3_l#{?client_prefix,#[fg=$t_3l_bg]#[bg=$t_4l_bg]#[fg=$t_4l_fg]#[bg=$t_4l_bg] $t_4_l #[fg=$t_4l_bg]#[bg=$t_line_bg],#[fg=$t_3l_bg]#[bg=$t_line_bg]}"
set -g status-left-length "90"
set -g status-left-attr "none"
set -g status-right "#[fg=$t_1r_bg]#[fg=$t_1r_fg,bg=$t_1r_bg] $t_1_r "
# set -g status-right "#[fg=$t_3r_bg,bg=$t_line_bg]#[fg=$t_3r_fg, bg=$t_3r_bg] $t_3_r #[fg=$t_2r_bg,bg=$t_3r_bg]#[fg=$t_2r_fg,bg=$t_2r_bg] $t_2_r #[fg=$t_1r_bg,bg=$t_2r_bg]#[fg=$t_1r_fg,bg=$t_1r_bg] $t_1_r "
set -g status-right-length "90"
set -g status-right-attr "none"
set -g status-right "#[fg=$t_1r_bg]#[fg=$t_1r_fg,bg=$t_1r_bg] $t_1_r "
# set -g status-right "#[fg=$t_3r_bg,bg=$t_line_bg]#[fg=$t_3r_fg, bg=$t_3r_bg] $t_3_r #[fg=$t_2r_bg,bg=$t_3r_bg]#[fg=$t_2r_fg,bg=$t_2r_bg] $t_2_r #[fg=$t_1r_bg,bg=$t_2r_bg]#[fg=$t_1r_fg,bg=$t_1r_bg] $t_1_r "
set -g status-right-length "90"
set -g status-right-attr "none"
#+END_SRC
** Message and commands
#+BEGIN_SRC conf
set -g message-fg "$t_text_fg"
set -g message-bg "$t_text_bg"
set -g message-fg "$t_text_fg"
set -g message-bg "$t_text_bg"
set -g message-command-fg "$t_text_fg"
set -g message-command-bg "$t_text_bg"
set -g message-command-fg "$t_text_fg"
set -g message-command-bg "$t_text_bg"
#+END_SRC
** Panes
#+BEGIN_SRC conf
set -g pane-border-fg "$t_grey_dark" # Color of the separation between panes
set -g pane-active-border-fg "$t_red_light" # Color of the active separation
set -g pane-border-fg "$t_grey_dark" # Color of the separation between panes
set -g pane-active-border-fg "$t_red_light" # Color of the active separation
#+END_SRC
** Windows
#+BEGIN_SRC conf
setw -g window-status-fg "$t_red"
setw -g window-status-bg "$t_grey_light"
setw -g window-status-attr "none"
setw -g window-status-fg "$t_red"
setw -g window-status-bg "$t_grey_light"
setw -g window-status-attr "none"
setw -g window-status-activity-fg "$t_grey_dark"
setw -g window-status-activity-bg "$t_red"
setw -g window-status-activity-attr "bold"
setw -g window-status-activity-fg "$t_grey_dark"
setw -g window-status-activity-bg "$t_red"
setw -g window-status-activity-attr "bold"
setw -g window-status-separator " "
setw -g window-status-format "#[fg=$t_win_fg,bg=$t_win_bg] #I | #W "
setw -g window-status-current-format "#[fg=$t_win_bg_active,bg=$t_line_bg]#[fg=$t_win_fg_active,bg=$t_win_bg_active] #I | #W #[fg=$t_win_bg_active,bg=$t_line_bg]"
setw -g window-status-separator " "
setw -g window-status-format "#[fg=$t_win_fg,bg=$t_win_bg] #I | #W "
setw -g window-status-current-format "#[fg=$t_win_bg_active,bg=$t_line_bg]#[fg=$t_win_fg_active,bg=$t_win_bg_active] #I | #W #[fg=$t_win_bg_active,bg=$t_line_bg]"
#+END_SRC
* Bindings
#+BEGIN_SRC conf
# Set prefix to 'C-Space'
unbind C-b
set -g prefix C-Space
# Set prefix to 'C-Space'
unbind C-b
set -g prefix C-Space
# Reload the config using 'C-Space + r'
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Reload the config using 'C-Space + r'
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Simulate 'C-l' to clear the terminal
bind C-l send-keys C-l \; clear-history
# Simulate 'C-l' to clear the terminal
bind C-l send-keys C-l \; clear-history
# Open new panes with the path of the current pane.
unbind c
bind c new-window -c '#{pane_current_path}'
# Open new panes with the path of the current pane.
unbind c
bind c new-window -c '#{pane_current_path}'
# Vim-like key bindings for pane navigation (default uses cursor keys).
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l # normally used for last-window
bind l select-pane -R
# Vim-like key bindings for pane navigation (default uses cursor keys).
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l # normally used for last-window
bind l select-pane -R
# Move Panes
unbind L
bind L swap-pane -D
unbind H
bind H swap-pane -U
# Move Panes
unbind L
bind L swap-pane -D
unbind H
bind H swap-pane -U
# Resizing (mouse also works).
unbind Left
bind -r Left resize-pane -L 5
unbind Right
bind -r Right resize-pane -R 5
unbind Down
bind -r Down resize-pane -D 5
unbind Up
bind -r Up resize-pane -U 5
# Resizing (mouse also works).
unbind Left
bind -r Left resize-pane -L 5
unbind Right
bind -r Right resize-pane -R 5
unbind Down
bind -r Down resize-pane -D 5
unbind Up
bind -r Up resize-pane -U 5
# Fast toggle (normally prefix-l).
bind ^space last-window
# Fast toggle (normally prefix-l).
bind ^space last-window
# Intuitive window-splitting keys.
bind / split-window -h -c '#{pane_current_path}' # normally prefix-%
bind - split-window -v -c '#{pane_current_path}' # normally prefix-"
# Intuitive window-splitting keys.
bind / split-window -h -c '#{pane_current_path}' # normally prefix-%
bind - split-window -v -c '#{pane_current_path}' # normally prefix-"
# Swap windows
bind-key -r "<" swap-window -t -1
bind-key -r ">" swap-window -t +1
# Swap windows
bind-key -r "<" swap-window -t -1
bind-key -r ">" swap-window -t +1
# Smart pane switching with awareness of Vim splits
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
# Smart pane switching with awareness of Vim splits
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
# Set 'C-Space + v' to enter copy-mode
unbind [
bind-key v copy-mode
# Set 'C-Space + v' to enter copy-mode
unbind [
bind-key v copy-mode
# Set 'C-Space + C-v' to paste
unbind ]
bind-key C-v paste-buffer
# Set 'C-Space + C-v' to paste
unbind ]
bind-key C-v paste-buffer
# Setup 'v' to begin selection as in Vim and 'y' to yank
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi 'Escape' send -X cancel
bind-key -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle
# Setup 'v' to begin selection as in Vim and 'y' to yank
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi 'Escape' send -X cancel
bind-key -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle
#+END_SRC
* Settings
#+BEGIN_SRC conf
# Activity monitoring
set -g visual-activity off
# Activity monitoring
set -g visual-activity off
# Automatically renumber window numbers on closing a pane (tmux >= 1.7).
set -g renumber-windows on
# Automatically renumber window numbers on closing a pane (tmux >= 1.7).
set -g renumber-windows on
# Mouse can be used to select panes, select windows (by clicking on the status bar), resize panes
set -g mouse on
# Mouse can be used to select panes, select windows (by clicking on the status bar), resize panes
set -g mouse on
set -g default-terminal "screen-256color"
set -ga terminal-overrides ',xterm-256color:Tc'
set -g default-terminal "screen-256color"
set -ga terminal-overrides ',xterm-256color:Tc'
set -g history-limit 262144
set -g history-limit 262144
# Start window and pane numbering at 1, (0 is too hard to reach)
set -g base-index 1
set -g pane-base-index 1
# Start window and pane numbering at 1, (0 is too hard to reach)
set -g base-index 1
set -g pane-base-index 1
# Don't wait for an escape sequence after seeing C-a
set -s escape-time 0
# Don't wait for an escape sequence after seeing C-a
set -s escape-time 0
# Dynamically update iTerm tab and window titles
set -g set-titles on
# Dynamically update iTerm tab and window titles
set -g set-titles on
# Needed as on tmux 1.9 and up (defaults to off)
set -g focus-events on
# Needed as on tmux 1.9 and up (defaults to off)
set -g focus-events on
# But don't change tmux's own window titles
set-option -g allow-rename off
# But don't change tmux's own window titles
set-option -g allow-rename off
# Don't wrap searches; it's super confusing given tmux's reverse-ordering of position info in copy mode
set -w -g wrap-search off
# Don't wrap searches; it's super confusing given tmux's reverse-ordering of position info in copy mode
set -w -g wrap-search off
# Restore pre-2.1 behavior of scrolling with the scrollwheel in Vim, less, copy mode etc, otherwise entering copy mode if not already in it.
bind-key -T root WheelUpPane \
if-shell -Ft= '#{?pane_in_mode,1,#{mouse_any_flag}}' \
'send -Mt=' \
'if-shell -Ft= "#{alternate_on}" "send -t= Up" "copy-mode -et="'
bind-key -T root WheelDownPane \
if-shell -Ft = '#{?pane_in_mode,1,#{mouse_any_flag}}' \
'send -Mt=' \
'if-shell -Ft= "#{alternate_on}" "send -t= Down" "send -Mt="'
# Restore pre-2.1 behavior of scrolling with the scrollwheel in Vim, less, copy mode etc, otherwise entering copy mode if not already in it.
bind-key -T root WheelUpPane \
if-shell -Ft= '#{?pane_in_mode,1,#{mouse_any_flag}}' \
'send -Mt=' \
'if-shell -Ft= "#{alternate_on}" "send -t= Up" "copy-mode -et="'
bind-key -T root WheelDownPane \
if-shell -Ft = '#{?pane_in_mode,1,#{mouse_any_flag}}' \
'send -Mt=' \
'if-shell -Ft= "#{alternate_on}" "send -t= Down" "send -Mt="'
# Stay in copy mode on drag end, but otherwise exit for mouse up.
# Requires patch from https://github.com/tmux/tmux/issues/326
# unbind-key -t vi-copy MouseDragEnd1Pane
# bind-key -t vi-copy MouseUp1Pane cancel
# Stay in copy mode on drag end, but otherwise exit for mouse up.
# Requires patch from https://github.com/tmux/tmux/issues/326
# unbind-key -t vi-copy MouseDragEnd1Pane
# bind-key -t vi-copy MouseUp1Pane cancel
bind-key -n MouseDrag1Status swap-window -t=
# bind-key -n MouseDown3Status new-window -a -t=
bind-key -n MouseDrag1Status swap-window -t=
# bind-key -n MouseDown3Status new-window -a -t=
bind-key -n MouseDrag1Status swap-window -t=
# bind-key -n MouseDown3Status new-window -a -t=
bind-key -n MouseDrag1Status swap-window -t=
# bind-key -n MouseDown3Status new-window -a -t=
# #T = standard window title (last command, see ~/.bash_profile)
# #h = short hostname
# #S = session name
# #W = tmux window name
set -g set-titles-string "#T : #h > #S > #W"
# #T = standard window title (last command, see ~/.bash_profile)
# #h = short hostname
# #S = session name
# #W = tmux window name
set -g set-titles-string "#T : #h > #S > #W"
# Show bells in window titles
set -g window-status-bell-style fg=yellow,bold,underscore
# Show bells in window titles
set -g window-status-bell-style fg=yellow,bold,underscore
#+END_SRC
* Plugins
** Install plugins
#+BEGIN_SRC conf
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sessionist'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sessionist'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'seebi/tmux-colors-solarized'
#+END_SRC
** Configuration
#+BEGIN_SRC conf
# =============================================================
# tmux-resurrect
# =============================================================
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# =============================================================
# tmux-resurrect
# =============================================================
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# Restoring pane contents
set -g @resurrect-capture-pane-contents 'on'
# Restoring pane contents
set -g @resurrect-capture-pane-contents 'on'
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
# =============================================================
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
# =============================================================
# =============================================================
# tmux-continuum
# =============================================================
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm,fullscreen'
set -g @continuum-save-interval '15'
# =============================================================
# tmux-continuum
# =============================================================
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm,fullscreen'
set -g @continuum-save-interval '15'
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
# =============================================================
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
# =============================================================
# =============================================================
# tmux-battery
# =============================================================
set -g @batt_charged_icon "="
set -g @batt_charging_icon "+"
set -g @batt_discharging_icon "-"
set -g @batt_attached_icon "o"
# =============================================================
# =============================================================
# tmux-battery
# =============================================================
set -g @batt_charged_icon "="
set -g @batt_charging_icon "+"
set -g @batt_discharging_icon "-"
set -g @batt_attached_icon "o"
# =============================================================
#+END_SRC
* Colors
#+BEGIN_SRC conf
set -g @colors-solarized 'light'
set -g @colors-solarized 'light'
#+END_SRC
* Initialize TMUX plugin manager
#+BEGIN_SRC conf
run '~/.tmux/plugins/tpm/tpm'
run '~/.tmux/plugins/tpm/tpm'
#+END_SRC

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
yay -S git
#+BEGIN_SRC bash
yay -S git
#+END_SRC
** Configuration
[[file:dotfiles/git.org][dotfiles/git.org]]
- =~/.gitconfig=
- =~/.gitignore_global=
@ -77,7 +78,7 @@ yay -S git
https://github.com/so-fancy/diff-so-fancy
*** Installation
#+begin_src bash
yay -S diff-so-fancy
yay -S diff-so-fancy
#+end_src
*** Configuration
@ -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
yay -S termite
#+BEGIN_SRC bash
yay -S termite
#+END_SRC
*** Configuration
[[file:dotfiles/termite.org][termite.org]]
- =~/.config/termite/config=
*** Cheatsheet
@ -121,8 +117,8 @@ yay -S termite
** TODO [#C] Unicode Rxvt
*** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
yay -S rxvt-unicode
#+BEGIN_SRC bash
yay -S rxvt-unicode
#+END_SRC
*** Configuration
@ -132,8 +128,8 @@ Most of Urxvt configuration is done in =~/.Xresources=
https://wiki.archlinux.org/index.php/Bash
** Bash Completion
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
yay -S bash-completion
#+BEGIN_SRC bash
yay -S bash-completion
#+END_SRC
** TODO [#B] Configuration
@ -146,16 +142,22 @@ yay -S bash-completion
https://github.com/tmux/tmux
** Installation
#+BEGIN_SRC bash :tangle ~/dotfiles-install.sh
yay -S tmux
#+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
*** Installation
#+BEGIN_SRC bash
yay -S tmuxinator
yay -S tmuxinator
#+END_SRC
*** Special sessions
@ -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
@ -254,8 +251,8 @@ Add a systemd service to automatically run Emacs deamon in the background on sta
Then run:
#+BEGIN_SRC bash
systemctl enable --user emacs
systemctl start --user emacs
systemctl enable --user emacs
systemctl start --user emacs
#+END_SRC
In order to open the emacs client: =emacsclient -create-frame --alternate-editor=""=
@ -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
@ -335,7 +367,7 @@ https://github.com/carnager/rofi-pass
*** Installation
#+BEGIN_SRC bash
yay -S rofi-pass
yay -S rofi-pass
#+END_SRC
Then we can add a shortcut to =rofi-pass= on i3 config.
@ -354,7 +386,7 @@ This is explained [[*Integration with Pass: the password manager][here]].
https://github.com/languitar/pass-git-helper
*** Installation
#+BEGIN_SRC bash
yay -S pass-git-helper
yay -S pass-git-helper
#+END_SRC
*** Configuration
@ -385,7 +417,7 @@ https://github.com/jarun/Buku
** Installation
#+BEGIN_SRC bash
yaourt -S buku
yay -S buku
#+END_SRC
** Integration with Rofi
@ -460,13 +492,13 @@ https://github.com/qutebrowser/qutebrowser
** Installation
#+BEGIN_SRC bash
yay -S qutebrowser
yay -S qutebrowser
#+END_SRC
** View Pdf inside qutebrowser with pdfjs
*** Installation
#+BEGIN_SRC bash
yay -S pdfjs
yay -S pdfjs
#+END_SRC
*** Usage
@ -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,54 +740,48 @@ 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
Installation
#+begin_src bash
yay -S weechat
yay -S weechat
#+end_src
Then we install some dependencies
#+begin_src bash
yay -S tcl lua ruby
yay -S tcl lua ruby
#+end_src
Enable mouse support:
#+begin_src text
/mouse enable
/mouse enable
#+end_src
*** 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 "⤷"
/set weechat.look.prefix_error "⚠"
/set weechat.look.prefix_action "⚡"
/set weechat.look.bar_more_down "▼▼"
/set weechat.look.bar_more_left "◀◀"
/set weechat.look.bar_more_right "▶▶"
/set weechat.look.bar_more_up "▲▲"
/set weechat.look.prefix_suffix "╡"
/set weechat.color.chat_nick_colors red,green,brown,blue,magenta,cyan,white,lightred,lightgreen,yellow,lightblue,lightmagenta,lightcyan
/set weechat.color.separator 31
/set buffers.color.current_fg 31
/set buffers.color.current_bg white
/set buffers.color.hotlist_message_fg 229
/set buffers.color.hotlist_private_fg 121
/set buffers.color.hotlist_highlight_fg 163
/set buffers.color.number 239
/set buffers.color.number_char 245
/set weechat.bar.title.conditions "${inactive}"
/set weechat.bar.title.color_fg black
/set weechat.bar.title.color_bg 31 #Or white if 31 does nothing
/set weechat.look.prefix_same_nick "⤷"
/set weechat.look.prefix_error "⚠"
/set weechat.look.prefix_action "⚡"
/set weechat.look.bar_more_down "▼▼"
/set weechat.look.bar_more_left "◀◀"
/set weechat.look.bar_more_right "▶▶"
/set weechat.look.bar_more_up "▲▲"
/set weechat.look.prefix_suffix "╡"
/set weechat.color.chat_nick_colors red,green,brown,blue,magenta,cyan,white,lightred,lightgreen,yellow,lightblue,lightmagenta,lightcyan
/set weechat.color.separator 31
/set buffers.color.current_fg 31
/set buffers.color.current_bg white
/set buffers.color.hotlist_message_fg 229
/set buffers.color.hotlist_private_fg 121
/set buffers.color.hotlist_highlight_fg 163
/set buffers.color.number 239
/set buffers.color.number_char 245
/set weechat.bar.title.conditions "${inactive}"
/set weechat.bar.title.color_fg black
/set weechat.bar.title.color_bg 31 #Or white if 31 does nothing
#+end_src
*** TODO Configuration
@ -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
@ -800,14 +827,9 @@ https://github.com/wee-slack/wee-slack
Dependency:
#+begin_src bash
yay -S python2-websocket-client
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/
@ -824,7 +846,7 @@ https://wiki.archlinux.org/index.php/Isync
*** Installation
#+BEGIN_SRC bash
yay -S isync
yay -S isync
#+END_SRC
*** TODO Configuration
@ -861,7 +883,7 @@ https://marlam.de/msmtp/
*** Installation
#+BEGIN_SRC bash
yay -S msmtp
yay -S msmtp
#+END_SRC
** Mail Indexer - Notmuch
@ -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 |
|----------+-----+---------+---------|
@ -1036,7 +1057,7 @@ yay -S sxiv
* TODO [#B] Windows Manager - i3
** TODO Installation
#+BEGIN_SRC bash
yay -S i3-gaps
yay -S i3-gaps
#+END_SRC
** TODO Packages to install/understand
@ -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 |
|---------+-------|
@ -1071,7 +1081,7 @@ https://polybar.github.io/
** Installation
#+BEGIN_SRC bash
yay -S polybar
yay -S polybar
#+END_SRC
** TODO [#C] Configuration
@ -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
@ -1113,16 +1103,16 @@ https://github.com/chjj/compton
** Installation
#+begin_src bash
yay -S compton
yay -S compton
#+end_src
** TODO [#B] Configuration
=~/.config/compton.conf=
** GUI Configuration
** TODO GUI Configuration
To install:
#+begin_src bash
yay -S compton-conf
yay -S compton-conf
#+end_src
Then run =compton-conf=
@ -1130,7 +1120,7 @@ Then run =compton-conf=
** Automatic run as daemon
Compton is run from i3 config in the background (=-b= option)
#+BEGIN_SRC bash
exec --no-startup-id compton -b
exec --no-startup-id compton -b
#+END_SRC
* TODO [#C] Notification Manager - Dunst
@ -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,33 +1257,28 @@ 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
*** Installation
#+begin_src bash
yay -S betterlockscreen
yay -S betterlockscreen
#+end_src
* TODO [#C] LaTeX
** Installation
#+BEGIN_SRC bash
yay -S texlive-most
yay -S texlive-most
#+END_SRC
Biber support for the bibliography:
#+BEGIN_SRC bash
yay -S biber
yay -S biber
#+END_SRC
Support for source code using minted:
#+BEGIN_SRC bash
yay -S minted
yay -S minted
#+END_SRC
** Personnal classes/packages
@ -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
@ -1563,11 +1465,11 @@ sudo pip3 install papis
** TODO Vdirsyncer - Sync calendars
*** Installation
#+BEGIN_SRC bash
yay -S vdirsyncer
yay -S vdirsyncer
#+END_SRC
#+BEGIN_SRC bash
sudo pip install requests-oauthlib
sudo pip install requests-oauthlib
#+END_SRC
*** Cheatsheet
@ -1579,13 +1481,13 @@ sudo pip install requests-oauthlib
http://vdirsyncer.pimutils.org/en/stable/tutorials/systemd-timer.html?highlight=systemd
#+BEGIN_SRC bash
systemctl --user enable vdirsyncer.timer
systemctl --user start vdirsyncer.timer
systemctl --user enable vdirsyncer.timer
systemctl --user start vdirsyncer.timer
#+END_SRC
To check the status of the service:
#+BEGIN_SRC bash
systemctl --user status vdirsyncer.service
systemctl --user status vdirsyncer.service
#+END_SRC
** TODO Calendar Client - Khal
@ -1701,12 +1603,12 @@ https://github.com/l3ib/nitrogen/
https://pwmt.org/projects/zathura/
** Installation
#+BEGIN_SRC bash
yay -S zathura
yay -S zathura
#+END_SRC
Then add dependecies to view specific files:
#+BEGIN_SRC bash
yay -S zathura-pdf-mupdf zathura-djvu zathura-ps zathura-cb
yay -S zathura-pdf-mupdf zathura-djvu zathura-ps zathura-cb
#+END_SRC
It seems that mupdf is better that poppler to view pdf.