migrate dotfiles to this repository
This commit is contained in:
16
home/.clang-format
Normal file
16
home/.clang-format
Normal file
@@ -0,0 +1,16 @@
|
||||
BasedOnStyle: LLVM
|
||||
|
||||
IndentWidth: 8
|
||||
TabWidth: 8
|
||||
UseTab: Always
|
||||
|
||||
ColumnLimit: 80
|
||||
|
||||
IndentCaseLabels: false
|
||||
IndentGotoLabels: false
|
||||
|
||||
BreakBeforeBraces: Custom
|
||||
BraceWrapping:
|
||||
AfterFunction: false
|
||||
|
||||
AlwaysBreakAfterDefinitionReturnType: false
|
||||
37
home/.config/alacritty/alacritty.toml
Normal file
37
home/.config/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,37 @@
|
||||
[general]
|
||||
live_config_reload = false
|
||||
import = ["~/.config/alacritty/themes/kanagawa_wave.toml"]
|
||||
|
||||
[font]
|
||||
size = 14
|
||||
|
||||
[font.bold]
|
||||
family = "Jetbrains Mono NF"
|
||||
style = "Bold"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "Jetbrains Mono NF"
|
||||
style = "Bold Italic"
|
||||
|
||||
[font.italic]
|
||||
family = "Jetbrains Mono NF"
|
||||
style = "Italic"
|
||||
|
||||
[font.normal]
|
||||
family = "Jetbrains Mono NF"
|
||||
style = "Regular"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
action = "CreateNewWindow"
|
||||
key = "Return"
|
||||
mods = "Control|Shift"
|
||||
|
||||
[mouse]
|
||||
hide_when_typing = true
|
||||
|
||||
[window]
|
||||
opacity = 1.0
|
||||
|
||||
[window.padding]
|
||||
x = 4
|
||||
y = 4
|
||||
35
home/.config/alacritty/themes/kanagawa_lotus.toml
Normal file
35
home/.config/alacritty/themes/kanagawa_lotus.toml
Normal file
@@ -0,0 +1,35 @@
|
||||
[colors.primary]
|
||||
background = '#f2ecbc'
|
||||
foreground = '#545464'
|
||||
|
||||
[colors.normal]
|
||||
black = "#1f1f28"
|
||||
red = "#c84053"
|
||||
green = "#6f894e"
|
||||
yellow = "#77713f"
|
||||
blue = "#4d699b"
|
||||
magenta = "#b35b79"
|
||||
cyan = "#597b75"
|
||||
white = "#545464"
|
||||
|
||||
[colors.bright]
|
||||
black = "#8a8980"
|
||||
red = "#d7474b"
|
||||
green = "#6e915f"
|
||||
yellow = "#836f4a"
|
||||
blue = "#6693bf"
|
||||
magenta = "#624c83"
|
||||
cyan = "#5e857a"
|
||||
white = "#43436c"
|
||||
|
||||
[colors.selection]
|
||||
background = '#c9cbd1'
|
||||
foreground = '#dcd7ba'
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 16
|
||||
color = '#e98a00'
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
index = 17
|
||||
color = '#e82424'
|
||||
35
home/.config/alacritty/themes/kanagawa_wave.toml
Normal file
35
home/.config/alacritty/themes/kanagawa_wave.toml
Normal file
@@ -0,0 +1,35 @@
|
||||
[[colors.indexed_colors]]
|
||||
color = "0xffa066"
|
||||
index = 16
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
color = "0xff5d62"
|
||||
index = 17
|
||||
|
||||
[colors.bright]
|
||||
black = "0x727169"
|
||||
blue = "0x7fb4ca"
|
||||
cyan = "0x7aa89f"
|
||||
green = "0x98bb6c"
|
||||
magenta = "0x938aa9"
|
||||
red = "0xe82424"
|
||||
white = "0xdcd7ba"
|
||||
yellow = "0xe6c384"
|
||||
|
||||
[colors.normal]
|
||||
black = "0x090618"
|
||||
blue = "0x7e9cd8"
|
||||
cyan = "0x6a9589"
|
||||
green = "0x76946a"
|
||||
magenta = "0x957fb8"
|
||||
red = "0xc34043"
|
||||
white = "0xc8c093"
|
||||
yellow = "0xc0a36e"
|
||||
|
||||
[colors.primary]
|
||||
background = "0x1f1f28"
|
||||
foreground = "0xdcd7ba"
|
||||
|
||||
[colors.selection]
|
||||
background = "0x2d4f67"
|
||||
foreground = "0xc8c093"
|
||||
1
home/.config/bat/config
Normal file
1
home/.config/bat/config
Normal file
@@ -0,0 +1 @@
|
||||
--theme gruvbox-dark
|
||||
29
home/.config/dotfiles/clone.sh
Normal file
29
home/.config/dotfiles/clone.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
DOTFILES_GIT_URL='git@git.sr.ht:~rpqt/dotfiles'
|
||||
|
||||
# The first argument can be the destination folder
|
||||
if [ $# -eq 1 ]; then
|
||||
DOTFILES_DIR="$1"
|
||||
else
|
||||
DOTFILES_DIR="$HOME/.dotfiles"
|
||||
fi
|
||||
|
||||
echo "$DOTFILES_DIR" >> "$HOME/.gitignore"
|
||||
|
||||
git clone --bare "$DOTFILES_GIT_URL" "$DOTFILES_DIR"
|
||||
|
||||
alias dotfiles='/usr/bin/git --git-dir=$DOTFILES_DIR --work-tree=$HOME'
|
||||
|
||||
dotfiles config --local status.showUntrackedFiles no
|
||||
|
||||
dotfiles checkout
|
||||
|
||||
tee "$HOME/.config/git/config" >/dev/null <<EOT
|
||||
[include]
|
||||
path = ~/.config/git/common.gitconfig
|
||||
path = ~/.config/git/local.gitconfig
|
||||
EOT
|
||||
|
||||
unset DOTFILES_DIR
|
||||
unset DOTFILES_GIT_URL
|
||||
2
home/.config/ghostty/config
Normal file
2
home/.config/ghostty/config
Normal file
@@ -0,0 +1,2 @@
|
||||
font-family = JetBrains Mono NF
|
||||
theme = Kanagawa Wave
|
||||
54
home/.config/git/common.gitconfig
Normal file
54
home/.config/git/common.gitconfig
Normal file
@@ -0,0 +1,54 @@
|
||||
[user]
|
||||
email = rpqt@rpqt.fr
|
||||
name = Romain Paquet
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[core]
|
||||
excludesfile = ~/.config/git/ignore
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[color]
|
||||
ui = auto
|
||||
[sendemail]
|
||||
smtpserver = smtp.migadu.com
|
||||
smtpuser = rpqt@rpqt.fr
|
||||
smtpencryption = ssl
|
||||
smtpserverport = 465
|
||||
[diff]
|
||||
colormoved = "default"
|
||||
colormovedws = "allow-indentation-change"
|
||||
[alias]
|
||||
a = add
|
||||
s = status
|
||||
c = commit
|
||||
news = -c diff.external=difft log -p HEAD@{1}..HEAD@{0} --ext-diff
|
||||
dlog = -c diff.external=difft log -p --ext-diff
|
||||
dshow = -c diff.external=difft show --ext-diff
|
||||
dft = -c diff.external=difft diff
|
||||
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all
|
||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
|
||||
[column]
|
||||
ui = auto
|
||||
[branch]
|
||||
sort = -committerdate
|
||||
[tag]
|
||||
sort = version:refname
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
followTags = true
|
||||
[help]
|
||||
autocorrect = prompt
|
||||
[commit]
|
||||
verbose = true
|
||||
[rerere]
|
||||
enabled = true
|
||||
autoupdate = true
|
||||
[rebase]
|
||||
autoSquash = true
|
||||
autoStash = true
|
||||
updateRefs = true
|
||||
[pull]
|
||||
rebase = true
|
||||
5
home/.config/git/config
Normal file
5
home/.config/git/config
Normal file
@@ -0,0 +1,5 @@
|
||||
[include]
|
||||
path = ~/.config/git/common.gitconfig
|
||||
path = ~/.config/git/local.gitconfig
|
||||
[includeIf "gitdir:~/imag/"]
|
||||
path = ~/.config/git/ensimag.gitconfig
|
||||
3
home/.config/git/ensimag.gitconfig
Normal file
3
home/.config/git/ensimag.gitconfig
Normal file
@@ -0,0 +1,3 @@
|
||||
[user]
|
||||
name = "Romain Paquet"
|
||||
email = romain.paquet@grenoble-inp.org
|
||||
4
home/.config/git/ignore
Normal file
4
home/.config/git/ignore
Normal file
@@ -0,0 +1,4 @@
|
||||
/.direnv
|
||||
/.helix
|
||||
/.settings
|
||||
/.classpath
|
||||
21
home/.config/helix/config.toml
Normal file
21
home/.config/helix/config.toml
Normal file
@@ -0,0 +1,21 @@
|
||||
theme = "kanagawa"
|
||||
|
||||
[editor]
|
||||
line-number = "absolute"
|
||||
auto-completion = true
|
||||
auto-format = true
|
||||
end-of-line-diagnostics = "hint"
|
||||
|
||||
[editor.cursor-shape]
|
||||
insert = "bar"
|
||||
normal = "block"
|
||||
|
||||
[editor.statusline]
|
||||
left = ["mode", "spinner", "file-name"]
|
||||
right = ["diagnostics", "file-encoding", "file-type", "position"]
|
||||
mode.normal = "NORMAL"
|
||||
mode.insert = "INSERT"
|
||||
mode.select = "SELECT"
|
||||
|
||||
[editor.inline-diagnostics]
|
||||
cursor-line = "error"
|
||||
59
home/.config/helix/languages.toml
Normal file
59
home/.config/helix/languages.toml
Normal file
@@ -0,0 +1,59 @@
|
||||
[[language]]
|
||||
name = "c"
|
||||
scope = "source.c"
|
||||
file-types = ["c", "h"]
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
auto-format = true
|
||||
language-servers = [ { name = "clangd" } ]
|
||||
|
||||
[language-server.clangd]
|
||||
command = "clangd"
|
||||
args = ["--header-insertion=never"]
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
language-servers = [ "rust-analyzer" ]
|
||||
|
||||
[language-server.rust-analyzer.config]
|
||||
check.command = "clippy"
|
||||
|
||||
[language-server.deno-lsp]
|
||||
command = "deno"
|
||||
args = ["lsp"]
|
||||
|
||||
[language-server.deno-lsp.config.deno]
|
||||
enable = true
|
||||
lint = true
|
||||
suggest.imports.hosts = { "https://deno.land" = true }
|
||||
|
||||
[[language]]
|
||||
name = "typescript"
|
||||
file-types = ["ts"]
|
||||
language-servers = ["deno-lsp"]
|
||||
|
||||
[[language]]
|
||||
name = "djot"
|
||||
scope = "source.djot"
|
||||
file-types = ["dj"]
|
||||
|
||||
[[grammar]]
|
||||
name = "djot"
|
||||
source = { git = "https://github.com/treeman/tree-sitter-djot", rev = "master" }
|
||||
|
||||
[[language]]
|
||||
name = "nix"
|
||||
formatter = { command = "nixfmt" }
|
||||
|
||||
[[language]]
|
||||
name = "java"
|
||||
formatter = { command = "google-java-format", args = ["--aosp"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "hcl"
|
||||
formatter = { command = "tofu", args = ["fmt", "-"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "vento"
|
||||
indent = { tab-width = 2, unit = "\t" }
|
||||
3
home/.config/hut/config
Normal file
3
home/.config/hut/config
Normal file
@@ -0,0 +1,3 @@
|
||||
instance "sr.ht" {
|
||||
access-token-cmd pass oauth/sr.ht-hut@haze
|
||||
}
|
||||
6
home/.config/i3bar-river/bottom-config.toml
Normal file
6
home/.config/i3bar-river/bottom-config.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
font = "JetBrains Mono NF Bold 12"
|
||||
height = 24
|
||||
background = "#000000"
|
||||
command = "i3status-rs ~/.config/i3status-rust/bottom-config.toml"
|
||||
position = "bottom"
|
||||
show_tags = false
|
||||
10
home/.config/i3bar-river/config.toml
Normal file
10
home/.config/i3bar-river/config.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
font = "JetBrains Mono NF Bold 12"
|
||||
height = 24
|
||||
background = "#000000"
|
||||
command = "i3status-rs"
|
||||
tags_margin = 0.0
|
||||
tags_padding = 8.0
|
||||
tag_fg = "#727169"
|
||||
tag_bg = "#000000"
|
||||
tag_focused_fg = "#dcd7ba"
|
||||
tag_focused_bg = "#000000"
|
||||
53
home/.config/i3status-rust/bottom-config.toml
Normal file
53
home/.config/i3status-rust/bottom-config.toml
Normal file
@@ -0,0 +1,53 @@
|
||||
[theme]
|
||||
theme = "kanagawa"
|
||||
[theme.overrides]
|
||||
separator = "<span size='13000'></span>"
|
||||
|
||||
[icons]
|
||||
icons = "material-nf"
|
||||
|
||||
[[block]]
|
||||
block = "privacy"
|
||||
[[block.driver]]
|
||||
name = "pipewire"
|
||||
|
||||
[[block]]
|
||||
block = "music"
|
||||
format = " $icon {$combo.str(max_w:70) $prev $next |}"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
action = "play_pause"
|
||||
|
||||
[[block]]
|
||||
block = "bluetooth"
|
||||
mac = "20:74:CF:B5:B7:7A"
|
||||
format = " $icon $name{ $percentage|} "
|
||||
disconnected_format = ""
|
||||
|
||||
[[block]]
|
||||
block = "bluetooth"
|
||||
mac = "28:11:A5:6B:44:8B"
|
||||
format = " $icon $name{ $percentage|} "
|
||||
disconnected_format = ""
|
||||
|
||||
[[block]]
|
||||
block = "bluetooth"
|
||||
mac = "00:1E:7C:50:24:8F"
|
||||
format = " $icon $name{ $percentage|} "
|
||||
disconnected_format = ""
|
||||
|
||||
[[block]]
|
||||
block = "toggle"
|
||||
format = " $icon ensivpn "
|
||||
command_state = 'nmcli -f general.state con show Ensimag-VPN-ETU-udp | grep -v deactivated'
|
||||
command_on = "pass show web/ensimag.fr | head -n 1 | nmcli c up Ensimag-VPN-ETU-udp --ask"
|
||||
command_off = "nmcli c down Ensimag-VPN-ETU-udp"
|
||||
|
||||
[[block]]
|
||||
block = "net"
|
||||
interval = 10
|
||||
device = "wlan0"
|
||||
format = " $icon {$ssid|$device} "
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "iwgtk"
|
||||
78
home/.config/i3status-rust/config.toml
Normal file
78
home/.config/i3status-rust/config.toml
Normal file
@@ -0,0 +1,78 @@
|
||||
[theme]
|
||||
theme = "kanagawa"
|
||||
[theme.overrides]
|
||||
separator = "<span size='17000'></span>"
|
||||
|
||||
[icons]
|
||||
icons = "material-nf"
|
||||
[icons.overrides]
|
||||
sleep = ""
|
||||
no_sleep = ""
|
||||
|
||||
[[block]]
|
||||
block = "toggle"
|
||||
format = " $icon "
|
||||
command_state = "pgrep swayidle"
|
||||
command_on = "swaymsg 'exec swayidle -w'"
|
||||
command_off = "pkill swayidle"
|
||||
icon_on = "sleep"
|
||||
icon_off = "no_sleep"
|
||||
|
||||
[[block]]
|
||||
block = "toggle"
|
||||
format = " $icon "
|
||||
command_state = 'if [ "$($HOME/bin/darkmode status)" = "dark" ]; then echo y; fi'
|
||||
command_on = "$HOME/bin/darkmode toggle"
|
||||
command_off = "$HOME/bin/darkmode toggle"
|
||||
|
||||
[[block]]
|
||||
block = "hueshift"
|
||||
format = " {$temperature} "
|
||||
click_temp = 4000
|
||||
|
||||
[[block]]
|
||||
block = "backlight"
|
||||
format = " $icon $brightness.eng(width:1) "
|
||||
step_width = 1
|
||||
minimum = 1
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
driver = "pulseaudio"
|
||||
headphones_indicator = true
|
||||
show_volume_when_muted = true
|
||||
format = " $icon $volume.eng(width:1) "
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "pavucontrol"
|
||||
[block.theme_overrides]
|
||||
warning_bg = { link = "idle_bg" }
|
||||
warning_fg = { link = "idle_fg"}
|
||||
idle_bg = { link = "info_bg" }
|
||||
idle_fg = { link = "info_fg"}
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
interval = 30
|
||||
format = " $icon $percentage "
|
||||
full_format = " $icon $percentage "
|
||||
|
||||
[[block]]
|
||||
block = "keyboard_layout"
|
||||
driver = "sway"
|
||||
sway_kb_identifier = "1267:12613:ASUE140C:00_04F3:3145_Keyboard"
|
||||
format = " $layout "
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "swaymsg input '1267:12613:ASUE140C:00_04F3:3145_Keyboard' xkb_switch_layout next"
|
||||
[block.mappings]
|
||||
"French (N/A)" = "fr"
|
||||
"English (Colemak-DH)" = "colemak-dh"
|
||||
"English (US)" = "en"
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 10
|
||||
[block.format]
|
||||
full = " $icon $timestamp.datetime(f:'%a %d/%m/%y %R', l:fr_FR) "
|
||||
short = " $icon $timestamp.datetime(f:'%R')"
|
||||
14
home/.config/i3status-rust/themes/kanagawa.toml
Normal file
14
home/.config/i3status-rust/themes/kanagawa.toml
Normal file
@@ -0,0 +1,14 @@
|
||||
idle_bg = "#151515"
|
||||
idle_fg = "#dcd7ba"
|
||||
info_bg = "#2d4f67"
|
||||
info_fg = "#dcd7ba"
|
||||
good_bg = "#151515"
|
||||
good_fg = "#98971a"
|
||||
warning_bg = "#ff9e3b"
|
||||
warning_fg = "#16161D"
|
||||
critical_bg = "#e82424"
|
||||
critical_fg = "#dcd7ba"
|
||||
separator = "\ue0b2"
|
||||
separator_bg = "auto"
|
||||
separator_fg = "auto"
|
||||
alternating_tint_bg = "#151515"
|
||||
9
home/.config/jj/config.toml
Normal file
9
home/.config/jj/config.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
[ui]
|
||||
default-command = "log"
|
||||
|
||||
[user]
|
||||
name = "Romain Paquet"
|
||||
email = "rpqt@rpqt.fr"
|
||||
|
||||
[diff]
|
||||
diff.tool = ["difft", "--color=always", "$left", "$right"]
|
||||
5
home/.config/kanshi/config
Normal file
5
home/.config/kanshi/config
Normal file
@@ -0,0 +1,5 @@
|
||||
profile mirror-hdmi {
|
||||
output eDP-1 enable mode 1920x1080 position 0,0
|
||||
output HDMI-A-1 enable mode 1920x1080 position 1920,0
|
||||
exec wl-present mirror eDP-1 --fullscreen-output HDMI-A-1 --fullscreen
|
||||
}
|
||||
46
home/.config/kmonad/config.kbd
Normal file
46
home/.config/kmonad/config.kbd
Normal file
@@ -0,0 +1,46 @@
|
||||
(defcfg
|
||||
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
|
||||
output (uinput-sink "KMonad laptop keyboard output")
|
||||
fallthrough true
|
||||
)
|
||||
|
||||
(defsrc
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prnt ins del
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc home
|
||||
tab q w e r t y u i o p [ ] \ pgup
|
||||
caps a s d f g h j k l ; ' ret pgdn
|
||||
lsft z x c v b n m , . / rsft end
|
||||
lctl lmet lalt spc ralt rctl
|
||||
)
|
||||
|
||||
(defalias
|
||||
maj (layer-toggle azerty-shift)
|
||||
agr (layer-toggle azerty-altgr)
|
||||
)
|
||||
|
||||
(deflayer azerty
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 prnt ins del
|
||||
grv & é " ' \( - è \_ ç à \) = bspc home
|
||||
tab a z e r t y u i o p ^ $ * pgup
|
||||
caps q s d f g h j k l m ù ret pgdn
|
||||
@maj w x c v b n , ; : ! rsft end
|
||||
lctl lmet lalt spc @agr rctl
|
||||
)
|
||||
|
||||
(deflayer azerty-shift
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ 1 2 3 4 5 6 7 8 9 0 ° + _ _
|
||||
_ a _ _ _ _ _ _ _ _ _ _ £ µ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ % _ _
|
||||
@maj _ _ _ _ _ _ ? . / § rsft _
|
||||
lctl lmet lalt spc ralt rctl
|
||||
)
|
||||
|
||||
(deflayer azerty-altgr
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ ~ # { [ | grv \ ^ @ ] } _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
_ _ _ _ _ _ _ _ _ _ _ rsft _
|
||||
lctl lmet lalt spc @agr rctl
|
||||
)
|
||||
10
home/.config/mpd/mpd.conf
Normal file
10
home/.config/mpd/mpd.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
music_directory "~/Music"
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
db_file "~/.config/mpd/database"
|
||||
restore_paused "yes"
|
||||
state_file "~/.local/state/mpd"
|
||||
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "pipewire"
|
||||
}
|
||||
320
home/.config/niri/config.kdl
Normal file
320
home/.config/niri/config.kdl
Normal file
@@ -0,0 +1,320 @@
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
layout "fr,us(colemak_dh),us"
|
||||
options "grp:win_space_toggle"
|
||||
}
|
||||
}
|
||||
|
||||
touchpad {
|
||||
tap
|
||||
natural-scroll
|
||||
}
|
||||
|
||||
// Make the mouse warp to the center of newly focused windows.
|
||||
// warp-mouse-to-focus
|
||||
|
||||
// Focus windows and outputs automatically when moving the mouse into them.
|
||||
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||
focus-follows-mouse max-scroll-amount="0%"
|
||||
}
|
||||
|
||||
output "eDP-1" {
|
||||
mode "1920x1080@60.049"
|
||||
scale 1
|
||||
position x=0 y=1080
|
||||
}
|
||||
|
||||
output "HDMI-A-1" {
|
||||
position x=1920 y=0
|
||||
}
|
||||
|
||||
layout {
|
||||
gaps 12
|
||||
|
||||
center-focused-column "never"
|
||||
|
||||
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||
preset-column-widths {
|
||||
// Proportion sets the width as a fraction of the output width, taking gaps into account.
|
||||
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
||||
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
||||
proportion 0.33333
|
||||
proportion 0.5
|
||||
proportion 0.66667
|
||||
|
||||
// Fixed sets the width in logical pixels exactly.
|
||||
// fixed 1920
|
||||
}
|
||||
|
||||
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
|
||||
// preset-window-heights { }
|
||||
|
||||
// You can change the default width of the new windows.
|
||||
default-column-width { proportion 0.5; }
|
||||
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
||||
|
||||
// You can change how the focus ring looks.
|
||||
focus-ring {
|
||||
// How many logical pixels the ring extends out from the windows.
|
||||
width 3
|
||||
|
||||
// Color of the ring on the active monitor.
|
||||
active-color "#3d5f77"
|
||||
|
||||
// Color of the ring on inactive monitors.
|
||||
inactive-color "#505050"
|
||||
}
|
||||
|
||||
border {
|
||||
off
|
||||
}
|
||||
}
|
||||
|
||||
prefer-no-csd
|
||||
|
||||
cursor {
|
||||
hide-when-typing
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"^firefox$"#
|
||||
open-maximized true
|
||||
focus-ring {
|
||||
off
|
||||
}
|
||||
}
|
||||
|
||||
// Open the Firefox picture-in-picture player as floating by default.
|
||||
window-rule {
|
||||
// This app-id regular expression will work for both:
|
||||
// - host Firefox (app-id is "firefox")
|
||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||
open-floating true
|
||||
}
|
||||
|
||||
// Enable rounded corners for all windows.
|
||||
window-rule {
|
||||
geometry-corner-radius 4
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
binds {
|
||||
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||
// in the end. To find an XKB name for a particular key, you may use a program
|
||||
// like wev.
|
||||
//
|
||||
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
|
||||
// when running as a winit window.
|
||||
//
|
||||
// Most actions that you can bind here can also be invoked programmatically with
|
||||
// `niri msg action do-something`.
|
||||
|
||||
// Show a list of important hotkeys.
|
||||
Mod+Shift+Comma { show-hotkey-overlay; }
|
||||
|
||||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+Return { spawn "sh" "-c" "alacritty msg create-window || alacritty"; }
|
||||
Mod+D { spawn "tofi-drun" "--drun-launch=true"; }
|
||||
Super+Alt+L { spawn "swaylock"; }
|
||||
|
||||
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }
|
||||
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; }
|
||||
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||
|
||||
XF86MonBrightnessDown { spawn "brightnessctl" "set" "5%-"; }
|
||||
XF86MonBrightnessUp { spawn "brightnessctl" "set" "+5%"; }
|
||||
|
||||
XF86AudioPlay { spawn "playerctl" "play-pause"; }
|
||||
XF86AudioNext { spawn "playerctl" "next"; }
|
||||
XF86AudioPrev { spawn "playerctl" "previous"; }
|
||||
XF86Search { spawn "tofi-drun" "--drun-launch=true"; }
|
||||
|
||||
Mod+W { close-window; }
|
||||
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Down { focus-window-down; }
|
||||
Mod+Up { focus-window-up; }
|
||||
Mod+Right { focus-column-right; }
|
||||
Mod+H { focus-column-left; }
|
||||
Mod+J { focus-window-down; }
|
||||
Mod+K { focus-window-up; }
|
||||
Mod+L { focus-column-right; }
|
||||
|
||||
Mod+Shift+Left { move-column-left; }
|
||||
Mod+Shift+Down { move-window-down; }
|
||||
Mod+Shift+Up { move-window-up; }
|
||||
Mod+Shift+Right { move-column-right; }
|
||||
Mod+Shift+H { move-column-left; }
|
||||
Mod+Shift+J { move-window-down; }
|
||||
Mod+Shift+K { move-window-up; }
|
||||
Mod+Shift+L { move-column-right; }
|
||||
|
||||
// Alternative commands that move across workspaces when reaching
|
||||
// the first or last window in a column.
|
||||
// Mod+J { focus-window-or-workspace-down; }
|
||||
// Mod+K { focus-window-or-workspace-up; }
|
||||
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||
|
||||
Mod+Home { focus-column-first; }
|
||||
Mod+End { focus-column-last; }
|
||||
Mod+Ctrl+Home { move-column-to-first; }
|
||||
Mod+Ctrl+End { move-column-to-last; }
|
||||
|
||||
Mod+Ctrl+Left { focus-monitor-left; }
|
||||
Mod+Ctrl+Down { focus-monitor-down; }
|
||||
Mod+Ctrl+Up { focus-monitor-up; }
|
||||
Mod+Ctrl+Right { focus-monitor-right; }
|
||||
Mod+Ctrl+H { focus-monitor-left; }
|
||||
Mod+Ctrl+J { focus-monitor-down; }
|
||||
Mod+Ctrl+K { focus-monitor-up; }
|
||||
Mod+Ctrl+L { focus-monitor-right; }
|
||||
|
||||
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
Mod+Page_Down { focus-workspace-down; }
|
||||
Mod+Page_Up { focus-workspace-up; }
|
||||
Mod+U { focus-workspace-down; }
|
||||
Mod+I { focus-workspace-up; }
|
||||
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
|
||||
// ...
|
||||
|
||||
Mod+Shift+Page_Down { move-workspace-down; }
|
||||
Mod+Shift+Page_Up { move-workspace-up; }
|
||||
Mod+Shift+U { move-workspace-down; }
|
||||
Mod+Shift+I { move-workspace-up; }
|
||||
|
||||
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||
// These binds will change direction based on the natural-scroll setting.
|
||||
//
|
||||
// To avoid scrolling through workspaces really fast, you can use
|
||||
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||
|
||||
Mod+WheelScrollRight { focus-column-right; }
|
||||
Mod+WheelScrollLeft { focus-column-left; }
|
||||
Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||
Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||
|
||||
// Usually scrolling up and down with Shift in applications results in
|
||||
// horizontal scrolling; these binds replicate that.
|
||||
Mod+Shift+WheelScrollDown { focus-column-right; }
|
||||
Mod+Shift+WheelScrollUp { focus-column-left; }
|
||||
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||
|
||||
// You can refer to workspaces by index. However, keep in mind that
|
||||
// niri is a dynamic workspace system, so these commands are kind of
|
||||
// "best effort". Trying to refer to a workspace index bigger than
|
||||
// the current workspace count will instead refer to the bottommost
|
||||
// (empty) workspace.
|
||||
//
|
||||
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||
// will all refer to the 3rd workspace.
|
||||
Mod+ampersand { focus-workspace 1; }
|
||||
Mod+2 { focus-workspace 2; }
|
||||
Mod+quotedbl { focus-workspace 3; }
|
||||
Mod+apostrophe { focus-workspace 4; }
|
||||
Mod+parenleft { focus-workspace 5; }
|
||||
Mod+minus { focus-workspace 6; }
|
||||
Mod+7 { focus-workspace 7; }
|
||||
Mod+underscore { focus-workspace 8; }
|
||||
Mod+9 { focus-workspace 9; }
|
||||
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
||||
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
||||
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
||||
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
||||
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||
|
||||
// Switches focus between the current and the previous workspace.
|
||||
Mod+Tab { focus-workspace-previous; }
|
||||
|
||||
// The following binds move the focused window in and out of a column.
|
||||
// If the window is alone, they will consume it into the nearby column to the side.
|
||||
// If the window is already in a column, they will expel it out.
|
||||
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||
Mod+BracketRight { consume-or-expel-window-right; }
|
||||
|
||||
// Consume one window from the right to the bottom of the focused column.
|
||||
Mod+Comma { consume-window-into-column; }
|
||||
// Expel the bottom window from the focused column to the right.
|
||||
Mod+Semicolon { expel-window-from-column; }
|
||||
|
||||
Mod+R { switch-preset-column-width; }
|
||||
Mod+Shift+R { switch-preset-window-height; }
|
||||
Mod+Ctrl+R { reset-window-height; }
|
||||
Mod+F { maximize-column; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
Mod+C { center-column; }
|
||||
|
||||
Mod+Escape { toggle-overview; }
|
||||
|
||||
// Finer height adjustments when in column with other windows.
|
||||
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||
|
||||
// Move the focused window between the floating and the tiling layout.
|
||||
Mod+V { toggle-window-floating; }
|
||||
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
|
||||
|
||||
Print { screenshot; }
|
||||
Ctrl+Print { screenshot-screen; }
|
||||
Alt+Print { screenshot-window; }
|
||||
|
||||
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||
Mod+Shift+E { quit; }
|
||||
Ctrl+Alt+Delete { quit; }
|
||||
|
||||
// Powers off the monitors. To turn them back on, do any input like
|
||||
// moving the mouse or pressing any other key.
|
||||
Mod+Shift+P { power-off-monitors; }
|
||||
}
|
||||
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
spawn-at-startup "wl-gammarelay-rs"
|
||||
spawn-at-startup "swaybg" "-m" "fill" "-i" "/home/rpqt/.local/state/wallpaper"
|
||||
spawn-at-startup "ignis" "init" "--config" "/home/rpqt/rep/heath/config.py"
|
||||
spawn-at-startup "tail-tray"
|
||||
spawn-at-startup "kdeconnect-indicator"
|
||||
|
||||
spawn-at-startup "xwayland-satellite"
|
||||
environment {
|
||||
DISPLAY ":0"
|
||||
}
|
||||
|
||||
hotkey-overlay {
|
||||
skip-at-startup
|
||||
}
|
||||
4
home/.config/senpai/senpai.scfg
Normal file
4
home/.config/senpai/senpai.scfg
Normal file
@@ -0,0 +1,4 @@
|
||||
address chat.sr.ht
|
||||
nickname rpqt
|
||||
username rpqt
|
||||
password-cmd pass show oauth/sr.ht-senpai-irc
|
||||
24
home/.config/sh/aliases.sh
Normal file
24
home/.config/sh/aliases.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
|
||||
alias dots=dotfiles
|
||||
if command -v helix >/dev/null; then
|
||||
alias h='helix'
|
||||
else
|
||||
alias h='hx'
|
||||
fi
|
||||
if command -v eza >/dev/null; then
|
||||
alias ls='eza'
|
||||
else
|
||||
alias ls='ls --color -h'
|
||||
fi
|
||||
alias lsa='ls -A'
|
||||
alias ll='ls -l'
|
||||
alias lla='ls -lA'
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias bt='bluetoothctl'
|
||||
alias go='GOPROXY=direct go'
|
||||
alias ts='tree-sitter'
|
||||
alias g='git'
|
||||
alias c='cargo'
|
||||
alias MAKE='make clean && make'
|
||||
alias n='myrtle --notebook-dir=$HOME/notes'
|
||||
4
home/.config/sh/path.sh
Normal file
4
home/.config/sh/path.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Personnal scripts
|
||||
export PATH="$PATH:$HOME/bin"
|
||||
2
home/.config/sway/config
Normal file
2
home/.config/sway/config
Normal file
@@ -0,0 +1,2 @@
|
||||
include ~/.config/sway/config.d/*
|
||||
include /etc/sway/config.d/*
|
||||
37
home/.config/sway/config.d/bar
Normal file
37
home/.config/sway/config.d/bar
Normal file
@@ -0,0 +1,37 @@
|
||||
include ~/.config/sway/kanagawa.sway
|
||||
|
||||
set $font "JetBrains Mono NF Bold 12"
|
||||
set $background #000000
|
||||
|
||||
bar {
|
||||
id top_bar
|
||||
status_command i3status-rs
|
||||
position top
|
||||
height 24
|
||||
font $font
|
||||
workspace_min_width 20
|
||||
status_padding 0
|
||||
status_edge_padding 0
|
||||
colors {
|
||||
background $background
|
||||
focused_workspace #000000 #000000 $fujiWhite
|
||||
active_workspace #000000 #000000 $fujiGray
|
||||
inactive_workspace #000000 #000000 $fujiGray
|
||||
}
|
||||
}
|
||||
|
||||
bar {
|
||||
id bottom_bar
|
||||
status_command i3status-rs ~/.config/i3status-rust/bottom-config.toml
|
||||
position bottom
|
||||
height 24
|
||||
font $font
|
||||
workspace_buttons no
|
||||
binding_mode_indicator no
|
||||
tray_output none
|
||||
colors {
|
||||
background $background
|
||||
}
|
||||
}
|
||||
|
||||
# vim:ft=swayconfig
|
||||
169
home/.config/sway/config.d/bindings
Normal file
169
home/.config/sway/config.d/bindings
Normal file
@@ -0,0 +1,169 @@
|
||||
set $mod Mod4
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
set $term alacritty msg create-window || alacritty
|
||||
set $launcher tofi-drun | xargs swaymsg exec --
|
||||
set $lock swaylock
|
||||
|
||||
set $screenshots $HOME/Pictures/Screenshots
|
||||
|
||||
floating_modifier $mod normal
|
||||
|
||||
bindsym {
|
||||
# Start a terminal
|
||||
$mod+Return exec $term
|
||||
|
||||
# Kill focused window
|
||||
$mod+Shift+q kill
|
||||
$mod+w kill
|
||||
|
||||
# Application launcher
|
||||
$mod+d exec $launcher
|
||||
|
||||
# Reload the configuration file
|
||||
$mod+Shift+c reload
|
||||
|
||||
# Exit sway / log out
|
||||
$mod+Shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' \
|
||||
-B 'Yes, exit sway' 'swaymsg exit' \
|
||||
--dismiss-button 'Cancel'
|
||||
|
||||
# Move focus
|
||||
$mod+$left focus left
|
||||
$mod+$down focus down
|
||||
$mod+$up focus up
|
||||
$mod+$right focus right
|
||||
|
||||
$mod+Left focus left
|
||||
$mod+Down focus down
|
||||
$mod+Up focus up
|
||||
$mod+Right focus right
|
||||
|
||||
# Move the focused window
|
||||
$mod+Shift+$left move left
|
||||
$mod+Shift+$down move down
|
||||
$mod+Shift+$up move up
|
||||
$mod+Shift+$right move right
|
||||
|
||||
$mod+Shift+Left move left
|
||||
$mod+Shift+Down move down
|
||||
$mod+Shift+Up move up
|
||||
$mod+Shift+Right move right
|
||||
|
||||
--to-code {
|
||||
# Switch to workspace
|
||||
$mod+ampersand workspace number 1
|
||||
$mod+eacute workspace number 2
|
||||
$mod+quotedbl workspace number 3
|
||||
$mod+apostrophe workspace number 4
|
||||
$mod+parenleft workspace number 5
|
||||
$mod+minus workspace number 6
|
||||
$mod+egrave workspace number 7
|
||||
$mod+underscore workspace number 8
|
||||
$mod+ccedilla workspace number 9
|
||||
$mod+agrave workspace number 10
|
||||
}
|
||||
|
||||
# Move focused container to workspace
|
||||
$mod+1 move container to workspace number 1
|
||||
$mod+2 move container to workspace number 2
|
||||
$mod+3 move container to workspace number 3
|
||||
$mod+4 move container to workspace number 4
|
||||
$mod+5 move container to workspace number 5
|
||||
$mod+6 move container to workspace number 6
|
||||
$mod+7 move container to workspace number 7
|
||||
$mod+8 move container to workspace number 8
|
||||
$mod+9 move container to workspace number 9
|
||||
$mod+0 move container to workspace number 10
|
||||
|
||||
|
||||
$mod+Shift+1 move container to workspace number 1
|
||||
$mod+Shift+2 move container to workspace number 2
|
||||
$mod+Shift+3 move container to workspace number 3
|
||||
$mod+Shift+4 move container to workspace number 4
|
||||
$mod+Shift+5 move container to workspace number 5
|
||||
$mod+Shift+6 move container to workspace number 6
|
||||
$mod+Shift+7 move container to workspace number 7
|
||||
$mod+Shift+8 move container to workspace number 8
|
||||
$mod+Shift+9 move container to workspace number 9
|
||||
$mod+Shift+0 move container to workspace number 10
|
||||
|
||||
# Split
|
||||
$mod+b splith
|
||||
$mod+v splitv
|
||||
|
||||
# Switch the current container between different layout styles
|
||||
$mod+s layout stacking
|
||||
$mod+t layout tabbed
|
||||
$mod+m layout toggle split
|
||||
|
||||
# Toggle fullscreen on the current focus
|
||||
$mod+f fullscreen
|
||||
|
||||
# Toggle floating mode for current container
|
||||
$mod+Shift+f floating toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
$mod+a focus parent
|
||||
|
||||
# Move the focused window to the scratchpad
|
||||
$mod+Shift+equal move scratchpad
|
||||
|
||||
# Cycle through scratchpad windows
|
||||
$mod+equal scratchpad show
|
||||
|
||||
# Volume
|
||||
XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.0
|
||||
XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- -l 1.0
|
||||
XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
|
||||
# Media
|
||||
XF86AudioPlay exec playerctl play-pause
|
||||
XF86AudioNext exec playerctl next
|
||||
XF86AudioPrev exec playerctl previous
|
||||
XF86Search exec $launcher
|
||||
|
||||
# Brightness
|
||||
--locked {
|
||||
XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
}
|
||||
|
||||
# Lock
|
||||
Ctrl+Mod4+L exec $lock
|
||||
|
||||
# Screenshot
|
||||
## Full screen capture
|
||||
Print exec grim "$screenshots/$(date +\"Screenshot from %Y-%m-%d %H-%M-%S.png\")"
|
||||
|
||||
## Select a zone and save
|
||||
$mod+Shift+s exec grim -g "$(slurp -d)" "$screenshots/$(date +\"Screenshot from %Y-%m-%d %H-%M-%S.png\")"
|
||||
|
||||
## Select a zone and copy to clipboard
|
||||
$mod+Shift+Ctrl+s exec grim -g "$(slurp -d)" - | wl-copy
|
||||
}
|
||||
|
||||
mode "resize" bindsym {
|
||||
# Shrink or grow the container
|
||||
$left resize shrink width 10px
|
||||
$down resize grow height 10px
|
||||
$up resize shrink height 10px
|
||||
$right resize grow width 10px
|
||||
|
||||
# Same with arrow keys
|
||||
Left resize shrink width 10px
|
||||
Down resize grow height 10px
|
||||
Up resize shrink height 10px
|
||||
Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
Return mode "default"
|
||||
Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
17
home/.config/sway/config.d/input
Normal file
17
home/.config/sway/config.d/input
Normal file
@@ -0,0 +1,17 @@
|
||||
input "1267:12613:ASUE140C:00_04F3:3145_Keyboard" {
|
||||
xkb_layout "fr,us(colemak_dh),us"
|
||||
xkb_options grp:win_space_toggle
|
||||
}
|
||||
|
||||
input "1:1:AT_Translated_Set_2_keyboard" {
|
||||
xkb_layout "fr,us(colemak_dh),us"
|
||||
xkb_options grp:win_space_toggle
|
||||
}
|
||||
|
||||
input type:touchpad {
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
}
|
||||
|
||||
bindgesture swipe:right workspace prev
|
||||
bindgesture swipe:left workspace next
|
||||
16
home/.config/sway/config.d/programs
Normal file
16
home/.config/sway/config.d/programs
Normal file
@@ -0,0 +1,16 @@
|
||||
# Directory for received taildrop files
|
||||
set $taildrop_inbox $HOME/Downloads
|
||||
|
||||
# Screen temperature
|
||||
exec wlsunset -l 45 -L 6
|
||||
|
||||
# Notifications
|
||||
exec mako
|
||||
|
||||
# Output management
|
||||
exec kanshi
|
||||
|
||||
# Auto receive taildrop files
|
||||
exec tailscale file get --loop --conflict=rename $taildrop_inbox
|
||||
|
||||
exec swayidle -w
|
||||
22
home/.config/sway/config.d/theme
Normal file
22
home/.config/sway/config.d/theme
Normal file
@@ -0,0 +1,22 @@
|
||||
include ~/.config/sway/kanagawa.sway
|
||||
|
||||
default_border pixel 3
|
||||
smart_borders on
|
||||
titlebar_border_thickness 2
|
||||
font "JetBrains Mono NF 11"
|
||||
|
||||
gaps outer 0
|
||||
gaps inner 0
|
||||
|
||||
set $waveBlue3 #3D5F77
|
||||
set $waveBlue4 #6D8FA7
|
||||
|
||||
# class border background text indicator child_border
|
||||
client.focused_inactive $sumiInk2 $sumiInk1 $fujiWhite $sumiInk2 $sumiInk2
|
||||
client.unfocused $sumiInk2 $sumiInk1 $fujiWhite $sumiInk2 $sumiInk2
|
||||
client.focused $waveBlue3 $waveBlue2 $fujiWhite $waveBlue4 $waveBlue2
|
||||
client.focused_tab_title $waveBlue2 $waveBlue2 $fujiWhite
|
||||
|
||||
for_window [app_id="firefox"] border none
|
||||
|
||||
output * bg ~/.local/state/wallpaper fill
|
||||
110
home/.config/sway/kanagawa.sway
Normal file
110
home/.config/sway/kanagawa.sway
Normal file
@@ -0,0 +1,110 @@
|
||||
# Default foreground
|
||||
set $fujiWhite #DCD7BA
|
||||
|
||||
# Dark foreground (statuslines)
|
||||
set $oldWhite #C8C093
|
||||
|
||||
# Dark background (statuslines and floating windows)
|
||||
set $sumiInk0 #16161D
|
||||
|
||||
# Default background
|
||||
set $sumiInk1 #1F1F28
|
||||
|
||||
# Lighter background (colorcolumn, folds)
|
||||
set $sumiInk2 #2A2A37
|
||||
|
||||
# Lighter background (cursorline)
|
||||
set $sumiInk3 #363646
|
||||
|
||||
# Darker foreground (line numbers, fold column, non-text characters), float borders
|
||||
set $sumiInk4 #54546D
|
||||
|
||||
# Popup background, visual selection background
|
||||
set $waveBlue1 #223249
|
||||
|
||||
# Popup selection background, search background
|
||||
set $waveBlue2 #2D4F67
|
||||
|
||||
# Diff Add (background)
|
||||
set $winterGreen #2B3328
|
||||
|
||||
# Diff Change (background)
|
||||
set $winterYellow #49443C
|
||||
|
||||
# Diff Deleted (background)
|
||||
set $winterRed #43242B
|
||||
|
||||
# Diff Line (background)
|
||||
set $winterBlue #252535
|
||||
|
||||
# Git Add
|
||||
set $autumnGreen #76946A
|
||||
|
||||
# Git Delete
|
||||
set $autumnRed #C34043
|
||||
|
||||
# Git Change
|
||||
set $autumnYellow #DCA561
|
||||
|
||||
# Diagnostic Error
|
||||
set $samuraiRed #E82424
|
||||
|
||||
# Diagnostic Warning
|
||||
set $roninYellow #FF9E3B
|
||||
|
||||
# Diagnostic Info
|
||||
set $waveAqua1 #6A9589
|
||||
|
||||
# Diagnostic Hint
|
||||
set $dragonBlue #658594
|
||||
|
||||
# Comments
|
||||
set $fujiGray #727169
|
||||
|
||||
# Light foreground
|
||||
set $springViolet1 #938AA9
|
||||
|
||||
# Statements and Keywords
|
||||
set $oniViolet #957FB8
|
||||
|
||||
# Functions and Titles
|
||||
set $crystalBlue #7E9CD8
|
||||
|
||||
# Brackets and punctuation
|
||||
set $springViolet2 #9CABCA
|
||||
|
||||
# Specials and builtin functions
|
||||
set $springBlue #7FB4CA
|
||||
|
||||
# Not used
|
||||
set $lightBlue #A3D4D5
|
||||
|
||||
# Types
|
||||
set $waveAqua2 #7AA89F
|
||||
|
||||
# Strings
|
||||
set $springGreen #98BB6C
|
||||
|
||||
# Not used
|
||||
set $boatYellow1 #938056
|
||||
|
||||
# Operators, RegEx
|
||||
set $boatYellow2 #C0A36E
|
||||
|
||||
# Identifiers
|
||||
set $carpYellow #E6C384
|
||||
|
||||
# Numbers
|
||||
set $sakuraPink #D27E99
|
||||
|
||||
# Standout specials 1 (builtin variables)
|
||||
set $waveRed #E46876
|
||||
|
||||
# Standout specials 2 (exception handling, return)
|
||||
set $peachRed #FF5D62
|
||||
|
||||
# Constants, imports, booleans
|
||||
set $surimiOrange #FFA066
|
||||
|
||||
# Deprecated
|
||||
set $katanaGray #717C7C
|
||||
10
home/.config/swayidle/config
Normal file
10
home/.config/swayidle/config
Normal file
@@ -0,0 +1,10 @@
|
||||
# This will lock the screen after 300 seconds of inactivity.
|
||||
timeout 300 "swaylock -f"
|
||||
|
||||
# Turn off all displays after another 300 seconds.
|
||||
# and turn them back on when resumed.
|
||||
timeout 600 "swaymsg 'output * dpms off'" resume "swaymsg 'output * dpms on'"
|
||||
|
||||
# Lock the screen before the computer goes to sleep.
|
||||
before-sleep "playerctl pause"
|
||||
before-sleep "swaylock -f"
|
||||
29
home/.config/swaylock/config
Normal file
29
home/.config/swaylock/config
Normal file
@@ -0,0 +1,29 @@
|
||||
daemonize
|
||||
font=JetBrains Mono NF
|
||||
font-size=22
|
||||
image=~/.local/state/wallpaper
|
||||
|
||||
ring-color=FFFFFF55
|
||||
ring-clear-color=FFFFFF55
|
||||
ring-ver-color=1885d4
|
||||
ring-wrong-color=FF0000
|
||||
|
||||
key-hl-color=FFFFFF
|
||||
|
||||
inside-color=00000000
|
||||
inside-clear-color=00000000
|
||||
inside-ver-color=00000000
|
||||
inside-wrong-color=00000000
|
||||
|
||||
line-uses-inside
|
||||
separator-color=00000000
|
||||
|
||||
layout-bg-color=00000000
|
||||
layout-text-color=FFFFFF
|
||||
|
||||
text-color=FFFFFF
|
||||
text-clear-color=FFFFFF
|
||||
text-ver-color=FFFFFF
|
||||
text-wrong-color=FFFFFF
|
||||
|
||||
indicator-radius=100
|
||||
4
home/.config/task/taskrc
Normal file
4
home/.config/task/taskrc
Normal file
@@ -0,0 +1,4 @@
|
||||
data.location=~/.local/share/task
|
||||
hooks.location=~/.config/task/hooks
|
||||
|
||||
include ~/.config/task/sync
|
||||
176
home/.config/tofi/config
Normal file
176
home/.config/tofi/config
Normal file
@@ -0,0 +1,176 @@
|
||||
#
|
||||
### Fonts
|
||||
#
|
||||
# Font to use, either a path to a font file or a name.
|
||||
#
|
||||
# If a path is given, tofi will startup much quicker, but any
|
||||
# characters not in the chosen font will fail to render.
|
||||
#
|
||||
# Otherwise, fonts are interpreted in Pango format.
|
||||
font = "JetBrainsMono NF"
|
||||
|
||||
# Point size of text.
|
||||
font-size = 15
|
||||
|
||||
# Perform font hinting. Only applies when a path to a font has been
|
||||
# specified via `font`. Disabling font hinting speeds up text
|
||||
# rendering appreciably, but will likely look poor at small font pixel
|
||||
# sizes.
|
||||
hint-font = true
|
||||
|
||||
#
|
||||
### Colors
|
||||
#
|
||||
# Window background
|
||||
background-color = #111111DD
|
||||
|
||||
# Border outlines
|
||||
outline-color = #080800
|
||||
|
||||
# Border
|
||||
border-color = #0981E3
|
||||
|
||||
# Default text
|
||||
text-color = #C5C9C7
|
||||
|
||||
# Selection text
|
||||
selection-color = #0981E3
|
||||
|
||||
# Matching portion of selection text
|
||||
selection-match-color = #44BBFF
|
||||
|
||||
# Selection background
|
||||
selection-background = #00000000
|
||||
|
||||
#
|
||||
### Text layout
|
||||
#
|
||||
# Prompt to display.
|
||||
prompt-text = "run: "
|
||||
|
||||
# Extra horizontal padding between prompt and input.
|
||||
prompt-padding = 0
|
||||
|
||||
# Maximum number of results to display.
|
||||
# If 0, tofi will draw as many results as it can fit in the window.
|
||||
num-results = 0
|
||||
|
||||
# Spacing between results in pixels. Can be negative.
|
||||
result-spacing = 8
|
||||
|
||||
# List results horizontally.
|
||||
horizontal = false
|
||||
|
||||
# Minimum width of input in horizontal mode.
|
||||
min-input-width = 0
|
||||
|
||||
# Extra horizontal padding of the selection background in pixels.
|
||||
selection-background-padding = 0
|
||||
|
||||
#
|
||||
### Window layout
|
||||
#
|
||||
# Width and height of the window. Can be pixels or a percentage.
|
||||
width = 100%
|
||||
height = 100%
|
||||
|
||||
# Width of the border outlines in pixels.
|
||||
outline-width = 0
|
||||
|
||||
# Width of the border in pixels.
|
||||
border-width = 0
|
||||
|
||||
# Radius of window corners in pixels.
|
||||
corner-radius = 0
|
||||
|
||||
# Padding between borders and text. Can be pixels or a percentage.
|
||||
padding-top = 200
|
||||
padding-bottom = 0
|
||||
padding-left = 35%
|
||||
padding-right = 0
|
||||
|
||||
# Whether to scale the window by the output's scale factor.
|
||||
scale = true
|
||||
|
||||
#
|
||||
### Window positioning
|
||||
#
|
||||
# The name of the output to appear on. An empty string will use the
|
||||
# default output chosen by the compositor.
|
||||
output = ""
|
||||
|
||||
# Location on screen to anchor the window to.
|
||||
#
|
||||
# Supported values: top-left, top, top-right, right, bottom-right,
|
||||
# bottom, bottom-left, left, center.
|
||||
anchor = center
|
||||
|
||||
# Set the size of the exclusive zone.
|
||||
#
|
||||
# A value of -1 means ignore exclusive zones completely.
|
||||
# A value of 0 will move tofi out of the way of other windows' zones.
|
||||
# A value greater than 0 will set that much space as an exclusive zone.
|
||||
#
|
||||
# Values greater than 0 are only meaningful when tofi is anchored to a
|
||||
# single edge.
|
||||
exclusive-zone = -1
|
||||
|
||||
# Window offset from edge of screen. Only has an effect when anchored
|
||||
# to the relevant edge. Can be pixels or a percentage.
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
margin-left = 0
|
||||
margin-right = 0
|
||||
|
||||
#
|
||||
### Behaviour
|
||||
#
|
||||
# Hide the cursor.
|
||||
hide-cursor = false
|
||||
|
||||
# Sort results by number of usages in run and drun modes.
|
||||
history = true
|
||||
|
||||
# Use fuzzy matching for searches.
|
||||
fuzzy-match = false
|
||||
|
||||
# If true, require a match to allow a selection to be made. If false,
|
||||
# making a selection with no matches will print input to stdout.
|
||||
# In drun mode, this is always true.
|
||||
require-match = true
|
||||
|
||||
# If true, typed input will be hidden, and what is displayed (if
|
||||
# anything) is determined by the hidden-character option.
|
||||
hide-input = false
|
||||
|
||||
# Replace displayed input characters with a character. If the empty
|
||||
# string is given, input will be completely hidden.
|
||||
# This option only has an effect when hide-input is set to true.
|
||||
hidden-character = "*"
|
||||
|
||||
# If true, directly launch applications on selection when in drun mode.
|
||||
# Otherwise, just print the command line to stdout.
|
||||
drun-launch = false
|
||||
|
||||
# The terminal to run terminal programs in when in drun mode.
|
||||
# This option has no effect if drun-launch is set to true.
|
||||
# Defaults to the value of the TERMINAL environment variable.
|
||||
# terminal = foot
|
||||
|
||||
# Delay keyboard initialisation until after the first draw to screen.
|
||||
# This option is experimental, and will cause tofi to miss keypresses
|
||||
# for a short time after launch. The only reason to use this option is
|
||||
# performance on slow systems.
|
||||
late-keyboard-init = false
|
||||
|
||||
# If true, allow multiple simultaneous processes.
|
||||
# If false, create a lock file on startup to prevent multiple instances
|
||||
# from running simultaneously.
|
||||
multi-instance = false
|
||||
|
||||
#
|
||||
### Inclusion
|
||||
#
|
||||
# Configs can be split between multiple files, and then included
|
||||
# within each other.
|
||||
# include = /path/to/config
|
||||
2
home/.config/zsh/haze.zsh
Normal file
2
home/.config/zsh/haze.zsh
Normal file
@@ -0,0 +1,2 @@
|
||||
# Highlight the executable in green if it is found
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
||||
30
home/.config/zsh/hooks.sh
Normal file
30
home/.config/zsh/hooks.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
# Hook direnv if present
|
||||
if command -v direnv >/dev/null; then
|
||||
eval "$(direnv hook zsh)"
|
||||
fi
|
||||
|
||||
# Prompt
|
||||
if command -v starship >/dev/null; then
|
||||
source <(starship init zsh)
|
||||
fi
|
||||
|
||||
# Load opam config if present
|
||||
if [ -r ~/.opam/opam-init/init.zsh ]; then
|
||||
source ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||
fi
|
||||
|
||||
# Launch atuin if it is installed
|
||||
if command -v atuin >/dev/null; then
|
||||
eval "$(atuin init zsh)"
|
||||
fi
|
||||
|
||||
# Set ls/tree/fd theme using vivid if it is installed
|
||||
if command -v vivid >/dev/null; then
|
||||
export LS_COLORS="$(vivid generate gruvbox-dark-hard)"
|
||||
fi
|
||||
|
||||
# Init zoxide if present and alias cd to it
|
||||
if command -v zoxide >/dev/null; then
|
||||
eval "$(zoxide init zsh)"
|
||||
alias cd=z
|
||||
fi
|
||||
27
home/.zshrc
Normal file
27
home/.zshrc
Normal file
@@ -0,0 +1,27 @@
|
||||
# Path
|
||||
source ~/.config/sh/path.sh
|
||||
|
||||
# Aliases
|
||||
source ~/.config/sh/aliases.sh
|
||||
|
||||
# Completion
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# sudo completion
|
||||
zstyle ':completion::complete:*' gain-privileges 1
|
||||
|
||||
# Line movement with special keys
|
||||
bindkey "^[[H" beginning-of-line
|
||||
bindkey "^[[F" end-of-line
|
||||
bindkey "^[[3~" delete-char
|
||||
|
||||
source ~/.config/zsh/hooks.sh
|
||||
|
||||
if [ -r ~/.profile ]; then
|
||||
source ~/.profile
|
||||
fi
|
||||
|
||||
# Load machine-specific config
|
||||
if [ -r ~/.config/zsh/$HOST.zsh ]; then
|
||||
source ~/.config/zsh/$HOST.zsh
|
||||
fi
|
||||
Reference in New Issue
Block a user