Compare commits

...

14 commits

Author SHA1 Message Date
Hippolyte Chauvin
64dd218a47 Mise à jour : éditeur par défaut de git helix -> hx 2023-10-12 17:35:04 +02:00
Hippolyte Chauvin
e6d73b1eda Ajout : fichier de configuration pour artix-pipewire-launcher 2023-10-12 17:31:28 +02:00
Hippolyte Chauvin
5310e0ce43 Suppression : alias helix 2023-10-12 11:24:19 +02:00
Hippolyte Chauvin
e311cc9dc7 Ajout : variable XDG_CONFIG_HOME dans le wrapper Hyprland 2023-10-12 11:23:20 +02:00
Hippolyte Chauvin
e88e749b39 Correction : configuration de Sway - flag -e pour prendre en compte la commande 2023-10-11 18:26:12 +02:00
Hippolyte Chauvin
d3e505709e Mise à jour : utilisation de helix comme éditeur de messages dans Git 2023-10-11 09:53:11 +02:00
Hippolyte Chauvin
45ef77c920 Ajout : thème catppuccin dans la configuration de Helix 2023-10-11 09:52:13 +02:00
Hippolyte Chauvin
33d83c6a46 Ajout : fichier de configuration de Helix 2023-10-10 21:43:14 +02:00
Hippolyte Chauvin
fca0f0d3aa Ajout : alias hx=helix dans les aliases shell 2023-10-10 21:19:51 +02:00
Hippolyte Chauvin
d82f3eabee Ajout : opacité dans la configuration de alacritty 2023-10-10 21:09:13 +02:00
Hippolyte Chauvin
d6e918f5f0 Ajout : taille de la police de caractères dans la configuration de Alacritty 2023-10-10 19:11:53 +02:00
Hippolyte Chauvin
26476225fd Ajout : theme.yml dans la configuration de alacritty 2023-10-10 18:53:00 +02:00
Hippolyte Chauvin
22b3c6a707 Mise à jour : utiliser alacritty comme terminal 2023-10-10 18:37:57 +02:00
Hippolyte Chauvin
d02491d6a3 Ajout : configuration de Alacritty 2023-10-10 18:33:18 +02:00
11 changed files with 196 additions and 5 deletions

View file

@ -3,6 +3,9 @@
# cd to home # cd to home
cd cd
# XDG
export XDG_CONFIG_HOME="${HOME}/.config"
# Execution # Execution
exec ssh-agent \ exec ssh-agent \
dbus-launch --exit-with-session \ dbus-launch --exit-with-session \

View file

@ -0,0 +1,9 @@
window:
opacity: 0.5
font:
size: 11.5
import:
- ~/.config/alacritty/theme.yml

View file

@ -0,0 +1,24 @@
colors:
primary:
background: '0x000000'
foreground: '0xffffff'
normal:
black: '0x000000'
red: '0xff0040'
green: '0x13ec49'
yellow: '0xffff4d'
blue: '0x794dff'
magenta: '0xcc33ff'
cyan: '0x33ccff'
white: '0xffffff'
bright:
red: '0xff809f'
green: '0x89f5a4'
yellow: '0xffffb3'
blue: '0xb399ff'
magenta: '0xe699ff'
cyan: '0x99e6ff'
white: '0xffffff'

View file

@ -0,0 +1,3 @@
ARTIX_PIPEWIRE_LOG="${HOME}/.local/state/pipewire/pipewire.log"
ARTIX_PIPEWIRE_PULSE_LOG="${HOME}/.local/state/pipewire/pipewire-pulse.log"
ARTIX_WIREPLUMBER_LOG="${HOME}/.local/state/wireplumber/wireplumber.log"

151
config/helix/config.toml Normal file
View file

@ -0,0 +1,151 @@
theme = "catppuccin_macchiato"
[editor]
line-number = "relative"
cursorline = true
color-modes = true
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.indent-guides]
render = true
[keys.normal]
# Quick iteration on config changes
C-o = ":config-open"
C-r = ":config-reload"
# Some nice Helix stuff
C-h = "select_prev_sibling"
C-j = "shrink_selection"
C-k = "expand_selection"
C-l = "select_next_sibling"
# Personal preference
o = ["open_below", "normal_mode"]
O = ["open_above", "normal_mode"]
# Muscle memory
"{" = ["goto_prev_paragraph", "collapse_selection"]
"}" = ["goto_next_paragraph", "collapse_selection"]
0 = "goto_line_start"
"$" = "goto_line_end"
"^" = "goto_first_nonwhitespace"
G = "goto_file_end"
"%" = "match_brackets"
V = ["select_mode", "extend_to_line_bounds"]
C = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection", "insert_mode"]
D = ["extend_to_line_end", "yank_main_selection_to_clipboard", "delete_selection"]
S = "surround_add" # Would be nice to be able to do something after this but it isn't chainable
# Clipboards over registers ye ye
x = "delete_selection"
p = ["paste_clipboard_after", "collapse_selection"]
P = ["paste_clipboard_before", "collapse_selection"]
# Would be nice to add ya and yi, but the surround commands can't be chained
Y = ["extend_to_line_end", "yank_main_selection_to_clipboard", "collapse_selection"]
# Uncanny valley stuff, this makes w and b behave as they do Vim
w = ["move_next_word_start", "move_char_right", "collapse_selection"]
W = ["move_next_long_word_start", "move_char_right", "collapse_selection"]
e = ["move_next_word_end", "collapse_selection"]
E = ["move_next_long_word_end", "collapse_selection"]
b = ["move_prev_word_start", "collapse_selection"]
B = ["move_prev_long_word_start", "collapse_selection"]
# If you want to keep the selection-while-moving behaviour of Helix, this two lines will help a lot,
# especially if you find having text remain selected while you have switched to insert or append mode
#
# There is no real difference if you have overridden the commands bound to 'w', 'e' and 'b' like above
# But if you really want to get familiar with the Helix way of selecting-while-moving, comment the
# bindings for 'w', 'e', and 'b' out and leave the bindings for 'i' and 'a' active below. A world of difference!
i = ["insert_mode", "collapse_selection"]
a = ["append_mode", "collapse_selection"]
# Undoing the 'd' + motion commands restores the selection which is annoying
u = ["undo", "collapse_selection"]
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
esc = ["collapse_selection", "keep_primary_selection"]
# Search for word under cursor
"*" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_next"]
"#" = ["move_char_right", "move_prev_word_start", "move_next_word_end", "search_selection", "search_prev"]
# Make j and k behave as they do Vim when soft-wrap is enabled
j = "move_line_down"
k = "move_line_up"
# Extend and select commands that expect a manual input can't be chained
# I've kept d[X] commands here because it's better to at least have the stuff you want to delete
# selected so that it's just a keystroke away to delete
[keys.normal.d]
d = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "delete_selection"]
t = ["extend_till_char"]
s = ["surround_delete"]
i = ["select_textobject_inner"]
a = ["select_textobject_around"]
j = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
down = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
k = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
up = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
G = ["select_mode", "extend_to_line_bounds", "goto_last_line", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"]
w = ["move_next_word_start", "yank_main_selection_to_clipboard", "delete_selection"]
W = ["move_next_long_word_start", "yank_main_selection_to_clipboard", "delete_selection"]
g = { g = ["select_mode", "extend_to_line_bounds", "goto_file_start", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "delete_selection", "normal_mode"] }
[keys.normal.y]
y = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "normal_mode", "collapse_selection"]
j = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
down = ["select_mode", "extend_to_line_bounds", "extend_line_below", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
k = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
up = ["select_mode", "extend_to_line_bounds", "extend_line_above", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
G = ["select_mode", "extend_to_line_bounds", "goto_last_line", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
w = ["move_next_word_start", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
W = ["move_next_long_word_start", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"]
g = { g = ["select_mode", "extend_to_line_bounds", "goto_file_start", "extend_to_line_bounds", "yank_main_selection_to_clipboard", "collapse_selection", "normal_mode"] }
[keys.insert]
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
esc = ["collapse_selection", "normal_mode"]
[keys.select]
# Muscle memory
"{" = ["extend_to_line_bounds", "goto_prev_paragraph"]
"}" = ["extend_to_line_bounds", "goto_next_paragraph"]
0 = "goto_line_start"
"$" = "goto_line_end"
"^" = "goto_first_nonwhitespace"
G = "goto_file_end"
D = ["extend_to_line_bounds", "delete_selection", "normal_mode"]
C = ["goto_line_start", "extend_to_line_bounds", "change_selection"]
"%" = "match_brackets"
S = "surround_add" # Basically 99% of what I use vim-surround for
u = ["switch_to_lowercase", "collapse_selection", "normal_mode"]
U = ["switch_to_uppercase", "collapse_selection", "normal_mode"]
# Visual-mode specific muscle memory
i = "select_textobject_inner"
a = "select_textobject_around"
# Some extra binds to allow us to insert/append in select mode because it's nice with multiple cursors
tab = ["insert_mode", "collapse_selection"] # tab is read by most terminal editors as "C-i"
C-a = ["append_mode", "collapse_selection"]
# Make selecting lines in visual mode behave sensibly
k = ["extend_line_up", "extend_to_line_bounds"]
j = ["extend_line_down", "extend_to_line_bounds"]
# Clipboards over registers ye ye
d = ["yank_main_selection_to_clipboard", "delete_selection"]
x = ["yank_main_selection_to_clipboard", "delete_selection"]
y = ["yank_main_selection_to_clipboard", "normal_mode", "flip_selections", "collapse_selection"]
Y = ["extend_to_line_bounds", "yank_main_selection_to_clipboard", "goto_line_start", "collapse_selection", "normal_mode"]
p = "replace_selections_with_clipboard" # No life without this
P = "paste_clipboard_before"
# Escape the madness! No more fighting with the cursor! Or with multiple cursors!
esc = ["collapse_selection", "keep_primary_selection", "normal_mode"]

View file

@ -91,6 +91,7 @@ device:epic mouse V1 {
# Variables # Variables
$browser = librewolf $browser = librewolf
$terminal = alacritty
# Modular sourcing # Modular sourcing
$confDir = ~/.config/hypr/hyprland.conf.d $confDir = ~/.config/hypr/hyprland.conf.d

View file

@ -95,7 +95,7 @@ bind = SHIFT ALT, Print, exec, glurp area file
# Launchers # Launchers
bind = $mainMod, D, exec, rofi -show drun bind = $mainMod, D, exec, rofi -show drun
bind = $mainMod, 36, exec, kitty bind = $mainMod, 36, exec, $terminal
bind = $mainMod, F1, exec, $browser bind = $mainMod, F1, exec, $browser
bind = $mainMod, F2, exec, joplin-desktop bind = $mainMod, F2, exec, joplin-desktop
bind = $mainMod, F3, exec, webcord bind = $mainMod, F3, exec, webcord

View file

@ -5,7 +5,7 @@ exec-once = hyprpaper
exec-once = artix-pipewire-launcher exec-once = artix-pipewire-launcher
exec-once = /usr/lib/xdg-desktop-portal-hyprland exec-once = /usr/lib/xdg-desktop-portal-hyprland
exec-once = swayosd exec-once = swayosd
exec-once = kitty & kitty sudo -i exec-once = $terminal & $terminal -e sudo -i
exec-once = webcord exec-once = webcord
exec-once = joplin-desktop exec-once = joplin-desktop

View file

@ -3,7 +3,7 @@ set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
set $term kitty set $term alacritty
set $menu rofi -show drun set $menu rofi -show drun
set $browser librewolf set $browser librewolf
set $discord webcord set $discord webcord

View file

@ -3,5 +3,5 @@ exec --no-startup-id swaync
exec --no-startup-id swayosd exec --no-startup-id swayosd
exec --no-startup-id xdg-session-start exec --no-startup-id xdg-session-start
exec --no-startup-id $term exec --no-startup-id $term
exec --no-startup-id $term sudo -i exec --no-startup-id $term -e sudo -i

View file

@ -2,7 +2,7 @@
name = Hippolyte Chauvin name = Hippolyte Chauvin
email = hchauvin38@outlook.fr email = hchauvin38@outlook.fr
[core] [core]
editor = nvim editor = hx
[init] [init]
defaultbranch = main defaultbranch = main
[pull] [pull]