Compare commits
No commits in common. "c7d5a229d75d955ac157c8f77a04ef21f9254b67" and "d0c743ec3094b2630fb198df90cdd6b3c5768869" have entirely different histories.
c7d5a229d7
...
d0c743ec30
1
config/Xresources/.gitignore
vendored
Normal file
1
config/Xresources/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
theme
|
4
config/Xresources/main
Normal file
4
config/Xresources/main
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#include ".config/Xresources/xft"
|
||||||
|
#include ".config/Xresources/theme"
|
||||||
|
#include ".config/Xresources/xterm"
|
||||||
|
#include ".config/Xresources/urxvt"
|
61
config/Xresources/urxvt
Normal file
61
config/Xresources/urxvt
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
! Scrollback position
|
||||||
|
! TODO Does not work
|
||||||
|
|
||||||
|
! do not scroll with output
|
||||||
|
URxvt*scrollTtyOutput: false
|
||||||
|
|
||||||
|
! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
|
||||||
|
URxvt*scrollWithBuffer: true
|
||||||
|
|
||||||
|
! scroll back to the bottom on keypress
|
||||||
|
URxvt*scrollTtyKeypress: true
|
||||||
|
|
||||||
|
|
||||||
|
! Scrollback buffer in secondary screen
|
||||||
|
! TODO Does not work
|
||||||
|
URxvt.secondaryScreen: 1
|
||||||
|
URxvt.secondaryScroll: 0
|
||||||
|
|
||||||
|
|
||||||
|
! No scroll bar
|
||||||
|
URxvt*scrollBar: false
|
||||||
|
|
||||||
|
|
||||||
|
! Font declaration
|
||||||
|
URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=12:antialias=true,xft:Twemoji:size=12:antialias=true,xft:symbola:size=12:minspace=False
|
||||||
|
|
||||||
|
! Font spacing
|
||||||
|
URxvt.letterSpace: 0
|
||||||
|
|
||||||
|
! Disable Ctrl+Shift default bindings
|
||||||
|
URxvt.iso14755: false
|
||||||
|
URxvt.iso14755_52: false
|
||||||
|
|
||||||
|
! Copy/Paste CLIPBOARD selection with Ctrl+Shift+C/V
|
||||||
|
URxvt.keysym.C-S-C: eval:selection_to_clipboard
|
||||||
|
URxvt.keysym.C-S-V: eval:paste_clipboard
|
||||||
|
|
||||||
|
|
||||||
|
! Extensions
|
||||||
|
URxvt.perl-ext-common: resize-font,bell-command,readline,selection
|
||||||
|
|
||||||
|
! Changing font size on the fly (extension: resize-font, package: urxvt-resize-font-git)
|
||||||
|
URxvt.keysym.C-KP_Subtract: resize-font:smaller
|
||||||
|
URxvt.keysym.C-KP_Add: resize-font:bigger
|
||||||
|
|
||||||
|
! Fake transparency (without compositing manager)
|
||||||
|
urxvt*transparent: true
|
||||||
|
urxvt*shading: 30
|
||||||
|
|
||||||
|
! True transparency (with compositing manager)
|
||||||
|
!urxvt*depth: 32
|
||||||
|
!urxvt*background: rgba:2700/2800/2200/c800
|
||||||
|
|
||||||
|
! Bell command (extension: bell-command)
|
||||||
|
URxvt.bell-command: play -n synth sine C5 sine E4 remix 1-2 fade 0.1 0.2 0.1 &> /dev/null
|
||||||
|
|
||||||
|
! Open URL in browser (extension: matcher)
|
||||||
|
! URxvt.url-launcher: o
|
||||||
|
! URxvt.matcher.button: 1
|
||||||
|
! URxvt.matcher.rend.0: Uline Bold fg5
|
||||||
|
|
9
config/Xresources/xft
Normal file
9
config/Xresources/xft
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Xft.dpi: 96
|
||||||
|
Xft.antialias: true
|
||||||
|
Xft.hinting: true
|
||||||
|
Xft.rgba: rgb
|
||||||
|
Xft.autohint: false
|
||||||
|
Xft.hintstyle: hintslight
|
||||||
|
Xft.lcdfilter: lcddefault
|
||||||
|
Xcursor.theme: Menda-Cursor
|
||||||
|
Xcursor.size: 0
|
15
config/Xresources/xterm
Normal file
15
config/Xresources/xterm
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
xterm*faceName : DejaVuSansMono Nerd Font Mono:size=12:antialias=true
|
||||||
|
xterm*dynamicColors: true
|
||||||
|
xterm*utf8: 2
|
||||||
|
xterm*eightBitInput: true
|
||||||
|
xterm*saveLines: 512
|
||||||
|
xterm*scrollKey: true
|
||||||
|
xterm*scrollTtyOutput: false
|
||||||
|
xterm*scrollBar: false
|
||||||
|
xterm*rightScrollBar: false
|
||||||
|
xterm*jumpScroll: true
|
||||||
|
xterm*multiScroll: true
|
||||||
|
xterm*toolBar: false
|
||||||
|
XTerm.vt100.translations: #override \n\
|
||||||
|
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
|
||||||
|
Ctrl Shift <Key>V: insert-selection(CLIPBOARD)
|
|
@ -117,6 +117,7 @@ in
|
||||||
gdb = "gdb -x ${config.xdg.configHome}/gdbinit";
|
gdb = "gdb -x ${config.xdg.configHome}/gdbinit";
|
||||||
iftop = "iftop -c ${config.xdg.configHome}/iftoprc";
|
iftop = "iftop -c ${config.xdg.configHome}/iftoprc";
|
||||||
lmms = "lmms --config ${config.xdg.configHome}/lmmsrc.xml";
|
lmms = "lmms --config ${config.xdg.configHome}/lmmsrc.xml";
|
||||||
|
tmux = "tmux -f ${config.xdg.configHome}/tmux/tmux.conf";
|
||||||
|
|
||||||
# Preference
|
# Preference
|
||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
|
@ -309,31 +310,6 @@ in
|
||||||
};
|
};
|
||||||
extraConfig = builtins.readFile ./inputrc;
|
extraConfig = builtins.readFile ./inputrc;
|
||||||
};
|
};
|
||||||
tmux =
|
|
||||||
let
|
|
||||||
themepack = pkgs.tmuxPlugins.mkTmuxPlugin
|
|
||||||
rec {
|
|
||||||
pluginName = "tmux-themepack";
|
|
||||||
version = "1.1.0";
|
|
||||||
rtpFilePath = "themepack.tmux";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "jimeh";
|
|
||||||
repo = "tmux-themepack";
|
|
||||||
rev = "${version}";
|
|
||||||
sha256 = "f6y92kYsKDFanNx5ATx4BkaB/E7UrmyIHU/5Z01otQE=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
mouse = false;
|
|
||||||
clock24 = true;
|
|
||||||
# TODO Vim mode?
|
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
|
||||||
sensible
|
|
||||||
];
|
|
||||||
extraConfig = builtins.readFile ./tmux.conf + "source-file ${themepack}/share/tmux-plugins/tmux-themepack/powerline/default/green.tmuxtheme\n";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
gpg-agent = {
|
gpg-agent = {
|
||||||
|
@ -474,8 +450,6 @@ in
|
||||||
NODE_REPL_HISTORY = "${config.xdg.cacheHome}/node_repl_history";
|
NODE_REPL_HISTORY = "${config.xdg.cacheHome}/node_repl_history";
|
||||||
PYTHONSTARTUP = "${config.xdg.configHome}/pythonstartup.py";
|
PYTHONSTARTUP = "${config.xdg.configHome}/pythonstartup.py";
|
||||||
RXVT_SOCKET = "${config.xdg.stateHome}/urxvtd"; # Used to want -$HOME suffix, hopefullt this isn't needed
|
RXVT_SOCKET = "${config.xdg.stateHome}/urxvtd"; # Used to want -$HOME suffix, hopefullt this isn't needed
|
||||||
# TODO I think we're not using the urxvt daemon on purpose?
|
|
||||||
# TODO this should be desktop only, as a few things are too.
|
|
||||||
SCREENRC = "${config.xdg.configHome}/screenrc";
|
SCREENRC = "${config.xdg.configHome}/screenrc";
|
||||||
SQLITE_HISTFILE = "${config.xdg.stateHome}/sqlite_history";
|
SQLITE_HISTFILE = "${config.xdg.stateHome}/sqlite_history";
|
||||||
YARN_DISABLE_SELF_UPDATE_CHECK = "true"; # This also disable the creation of a ~/.yarnrc file
|
YARN_DISABLE_SELF_UPDATE_CHECK = "true"; # This also disable the creation of a ~/.yarnrc file
|
||||||
|
|
|
@ -426,22 +426,6 @@
|
||||||
urxvt = {
|
urxvt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rxvt-unicode-emoji;
|
package = pkgs.rxvt-unicode-emoji;
|
||||||
scroll = {
|
|
||||||
bar.enable = false;
|
|
||||||
};
|
|
||||||
iso14755 = false; # Disable Ctrl+Shift default bindings
|
|
||||||
keybindings = {
|
|
||||||
"Shift-Control-C" = "eval:selection_to_clipboard";
|
|
||||||
"Shift-Control-V" = "eval:paste_clipboard";
|
|
||||||
# TODO Not sure resizing works, Nix doesn't have the package (urxvt-resize-font-git on Arch)
|
|
||||||
"Control-KP_Subtract" = "resize-font:smaller";
|
|
||||||
"Control-KP_Add" = "resize-font:bigger";
|
|
||||||
};
|
|
||||||
extraConfig = {
|
|
||||||
"letterSpace" = 0;
|
|
||||||
"perl-ext-common" = "resize-font,bell-command,readline,selection";
|
|
||||||
"bell-command" = "${pkgs.sox}/bin/play -n synth sine C5 sine E4 remix 1-2 fade 0.1 0.2 0.1 &> /dev/null";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
rofi = {
|
rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -611,6 +595,7 @@
|
||||||
|
|
||||||
# x11-exclusive
|
# x11-exclusive
|
||||||
numlockx
|
numlockx
|
||||||
|
# TODO urxvt-resize-font-git
|
||||||
simplescreenrecorder
|
simplescreenrecorder
|
||||||
trayer
|
trayer
|
||||||
xclip
|
xclip
|
||||||
|
|
|
@ -28,11 +28,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
targets = {
|
targets.vim.enable = false; # FIXME Not compatible with nixvim for now (there's a MR)
|
||||||
vim.enable = false; # FIXME Not compatible with nixvim for now (there's a MR)
|
# targets.i3.enable = false; # I prefer my own styles
|
||||||
i3.enable = false; # I prefer my own styles
|
|
||||||
tmux.enable = false; # Using another theme
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fix https://nix-community.github.io/home-manager/index.html#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
|
# Fix https://nix-community.github.io/home-manager/index.html#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
|
||||||
|
@ -40,5 +37,4 @@ in
|
||||||
dconf.enable = false; # Otherwise standalone home-manager complains it can't find /etc/dbus-1/session.conf on Arch.
|
dconf.enable = false; # Otherwise standalone home-manager complains it can't find /etc/dbus-1/session.conf on Arch.
|
||||||
# Symlinking it to /usr/share/dbus-1/session.conf goes further but not much.
|
# Symlinking it to /usr/share/dbus-1/session.conf goes further but not much.
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,24 @@ bind-key -n M-7 select-window -t 7
|
||||||
bind-key -n M-8 select-window -t 8
|
bind-key -n M-8 select-window -t 8
|
||||||
bind-key -n M-9 select-window -t 9
|
bind-key -n M-9 select-window -t 9
|
||||||
|
|
||||||
|
set -g mouse off
|
||||||
# https://superuser.com/a/1007721
|
# https://superuser.com/a/1007721
|
||||||
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
|
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
|
||||||
|
|
||||||
# Inform tmux that alacritty supports RGB
|
# Inform tmux that alacritty supports RGB
|
||||||
# (because for some reason terminfo doesn't?)
|
# (because for some reason terminfo doesn't?)
|
||||||
set -ga terminal-overrides ',alacritty*:RGB'
|
set -ga terminal-overrides ',alacritty*:RGB'
|
||||||
|
|
||||||
|
# List of plugins
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
|
||||||
|
set -g @plugin 'jimeh/tmux-themepack'
|
||||||
|
set -g @themepack 'powerline/block/green'
|
||||||
|
|
||||||
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.cache/tmuxplugins/'
|
||||||
|
|
||||||
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
|
if "test ! -d ~/.cache/tmuxplugins/tpm" \
|
||||||
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.cache/tmuxplugins/tpm && ~/.cache/tmuxplugins/tpm/bin/install_plugins'"
|
||||||
|
run -b '~/.cache/tmuxplugins/tpm/tpm'
|
15
config/user-dirs.dirs
Normal file
15
config/user-dirs.dirs
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# This file is written by xdg-user-dirs-update
|
||||||
|
# If you want to change or add directories, just edit the line you're
|
||||||
|
# interested in. All local changes will be retained on the next run
|
||||||
|
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||||
|
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||||
|
# absolute path. No other format is supported.
|
||||||
|
#
|
||||||
|
XDG_DESKTOP_DIR="$HOME/Bureau"
|
||||||
|
XDG_DOWNLOAD_DIR="$HOME/Téléchargements"
|
||||||
|
XDG_TEMPLATES_DIR="$HOME/Modèles"
|
||||||
|
XDG_PUBLICSHARE_DIR="$HOME/Public"
|
||||||
|
XDG_DOCUMENTS_DIR="$HOME/Documents"
|
||||||
|
XDG_MUSIC_DIR="$HOME/Musique"
|
||||||
|
XDG_PICTURES_DIR="$HOME/Images"
|
||||||
|
XDG_VIDEOS_DIR="$HOME/Vidéos"
|
1
config/user-dirs.locale
Executable file
1
config/user-dirs.locale
Executable file
|
@ -0,0 +1 @@
|
||||||
|
fr_FR
|
4
config/ycm_extra_conf.py
Normal file
4
config/ycm_extra_conf.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
def FlagsForFile(filename, **kwargs):
|
||||||
|
return {
|
||||||
|
'flags': ['-Wall', '-Wextra', '-lm'],
|
||||||
|
}
|
Loading…
Reference in a new issue