Compare commits
20 commits
b879332a86
...
207d55a04e
Author | SHA1 | Date | |
---|---|---|---|
|
207d55a04e | ||
|
da9ca7e8a5 | ||
|
0f59d5f636 | ||
|
0b477057b2 | ||
|
aa157b648f | ||
|
33769c95d0 | ||
|
ce7724e6c1 | ||
|
00da33f238 | ||
|
407081f6b7 | ||
|
ec5fd3cb6a | ||
|
d2fd114995 | ||
|
3d6d5a9ae2 | ||
|
075c59ec4c | ||
|
7cdb673bb4 | ||
|
4d22f92c76 | ||
|
c0896ee09d | ||
|
ad01f94bdb | ||
|
02c351baa7 | ||
|
231211b7c4 | ||
|
8d38397249 |
24 changed files with 67 additions and 48 deletions
4
bin/docker-browse_volume
Executable file
4
bin/docker-browse_volume
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
mount_point="/mnt/${1}"
|
||||
docker run --rm -it -v "${1}:${mount_point}" -w "$mount_point" busybox sh
|
||||
|
|
@ -4,7 +4,7 @@ exec-once = waybar
|
|||
exec-once = hyprpaper
|
||||
exec-once = artix-pipewire-launcher
|
||||
exec-once = /usr/lib/xdg-desktop-portal-hyprland
|
||||
exec-once = swayosd
|
||||
exec-once = swayosd-server
|
||||
exec-once = $terminal & $terminal -e sudo -i
|
||||
exec-once = webcord
|
||||
exec-once = joplin-desktop
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
vim.cmd [[ source ~/.vimrc ]]
|
||||
|
||||
-- Modules
|
||||
require('core.plugins')
|
||||
require('core.opts')
|
||||
require('core.keymaps')
|
||||
require('core.style')
|
||||
|
||||
require('core.lsp')
|
||||
|
|
7
config/nvim/lua/core/lsp/init.lua
Normal file
7
config/nvim/lua/core/lsp/init.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
nvim_lsp = require'lspconfig'
|
||||
|
||||
on_attach = function(client)
|
||||
require'completion'.on_attach(client)
|
||||
end
|
||||
|
||||
require('core.lsp.rust_analyzer')
|
21
config/nvim/lua/core/lsp/rust_analyzer.lua
Normal file
21
config/nvim/lua/core/lsp/rust_analyzer.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
nvim_lsp.rust_analyzer.setup({
|
||||
on_attach=on_attach,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
imports = {
|
||||
granularity = {
|
||||
group = "module",
|
||||
},
|
||||
prefix = "self",
|
||||
},
|
||||
cargo = {
|
||||
buildScripts = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
procMacro = {
|
||||
enable = true
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
|
@ -1,3 +0,0 @@
|
|||
require("core.plugin_config.lualine")
|
||||
require("core.plugin_config.nvim-tree")
|
||||
|
3
config/nvim/lua/core/plugins/init.lua
Normal file
3
config/nvim/lua/core/plugins/init.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
require("nvim-web-devicons")
|
||||
require("core.plugins.lualine")
|
||||
require("core.plugins.nvim_tree")
|
|
@ -1,6 +1,6 @@
|
|||
exec --no-startup-id swaybg -i $wallpaper
|
||||
exec --no-startup-id swaync
|
||||
exec --no-startup-id swayosd
|
||||
exec --no-startup-id swayosd-server
|
||||
exec --no-startup-id xdg-session-start
|
||||
exec --no-startup-id $term
|
||||
exec --no-startup-id $term -e sudo -i
|
||||
|
|
|
@ -64,11 +64,11 @@ bindsym $mod+space focus mode_toggle
|
|||
bindsym $mod+a focus parent
|
||||
|
||||
# Control
|
||||
bindsym XF86AudioLowerVolume exec swayosd --output-volume=lower
|
||||
bindsym XF86AudioRaiseVolume exec swayosd --output-volume=raise
|
||||
bindsym XF86AudioMute exec swayosd --output-volume=mute-toggle
|
||||
bindsym XF86MonBrightnessUp exec swayosd --brightness=raise
|
||||
bindsym XF86MonBrightnessDown exec swayosd --brightness=lower
|
||||
bindsym XF86AudioLowerVolume exec swayosd-client --output-volume=lower
|
||||
bindsym XF86AudioRaiseVolume exec swayosd-client --output-volume=raise
|
||||
bindsym XF86AudioMute exec swayosd-client --output-volume=mute-toggle
|
||||
bindsym XF86MonBrightnessUp exec swayosd-client --brightness=raise
|
||||
bindsym XF86MonBrightnessDown exec swayosd-client --brightness=lower
|
||||
|
||||
# Modes
|
||||
# Resize
|
||||
|
|
|
@ -70,8 +70,8 @@
|
|||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol -t 3",
|
||||
"on-scroll-up": "swayosd --output-volume=raise",
|
||||
"on-scroll-down": "swayosd --output-volume=lower"
|
||||
"on-scroll-up": "swayosd-client --output-volume=raise",
|
||||
"on-scroll-down": "swayosd-client --output-volume=lower"
|
||||
},
|
||||
"pulseaudio#input": {
|
||||
"format": "{format_source}",
|
||||
|
@ -87,8 +87,8 @@
|
|||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol -t 4",
|
||||
"on-scroll-up": "swayosd --input-volume=raise",
|
||||
"on-scroll-down": "swayosd --input-volume=lower"
|
||||
"on-scroll-up": "swayosd-client --input-volume=raise",
|
||||
"on-scroll-down": "swayosd-client --input-volume=lower"
|
||||
},
|
||||
"temperature": {
|
||||
"thermal-zone": 2,
|
||||
|
|
3
etc/bash/bashrc.d/30-ahrc--laptop.bashrc
Normal file
3
etc/bash/bashrc.d/30-ahrc--laptop.bashrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
ps1_brackets='()'
|
||||
ps1_color_1=32
|
||||
ps1_color_2=34
|
3
etc/bash/bashrc.d/30-ahrc--pc.bashrc
Normal file
3
etc/bash/bashrc.d/30-ahrc--pc.bashrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
ps1_brackets='[]'
|
||||
ps1_color_1=35
|
||||
ps1_color_2=34
|
5
etc/bash/bashrc.d/30-tera--io.bashrc
Normal file
5
etc/bash/bashrc.d/30-tera--io.bashrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
ps1_brackets='{}'
|
||||
ps1_color_1=36
|
||||
ps1_color_2=34
|
||||
|
||||
export SYSTEMD_PAGER=
|
7
etc/bash/bashrc.d/50-ps1.bashrc
Normal file
7
etc/bash/bashrc.d/50-ps1.bashrc
Normal file
|
@ -0,0 +1,7 @@
|
|||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=31
|
||||
ps1_color_2=32
|
||||
fi
|
||||
|
||||
PS1='\[\033[0m\]'"${ps1_brackets:0:1}"'\[\033[1;'"${ps1_color_1}"'m\]\u@\h\[\033[0m\] \[\033[1;'"${ps1_color_2}"'m\]\W\[\033[0m\]'"${ps1_brackets:1:1}"'\$ '
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
ps1_color_2=10
|
||||
else
|
||||
ps1_color_1=2
|
||||
ps1_color_2=4
|
||||
fi
|
||||
export PS1="(\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\])\\$ \[$(tput sgr0)\]"
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
ps1_color_2=10
|
||||
else
|
||||
ps1_color_1=5
|
||||
ps1_color_2=4
|
||||
fi
|
||||
export PS1="[\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\]]\\$ \[$(tput sgr0)\]"
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
ps1_color_2=10
|
||||
else
|
||||
ps1_color_1=6
|
||||
ps1_color_2=4
|
||||
fi
|
||||
export PS1="{\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\]}\\$ \[$(tput sgr0)\]"
|
||||
|
||||
export SYSTEMD_PAGER=
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
name = Hippolyte Chauvin
|
||||
email = hchauvin38@outlook.fr
|
||||
[core]
|
||||
editor = hx
|
||||
editor = nvim
|
||||
[init]
|
||||
defaultbranch = main
|
||||
[pull]
|
||||
|
|
Loading…
Reference in a new issue