Initial Niri + Wayland dotfiles
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
[window]
|
||||||
|
padding = { x = 10, y = 10 }
|
||||||
|
opacity = 0.95
|
||||||
|
|
||||||
|
[font]
|
||||||
|
normal = { family = "JetBrainsMono Nerd Font", style = "Regular" }
|
||||||
|
size = 11.5
|
||||||
|
|
||||||
|
[scrolling]
|
||||||
|
history = 10000
|
||||||
|
|
||||||
|
[env]
|
||||||
|
TERM = "xterm-256color"
|
||||||
|
|
||||||
|
[selection]
|
||||||
|
save_to_clipboard = true
|
||||||
|
[[keyboard.bindings]]
|
||||||
|
key = "Return"
|
||||||
|
mods = "Shift"
|
||||||
|
chars = "\u001B\r"
|
||||||
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "==> Installing packages"
|
||||||
|
sudo pacman -S --needed - < packages.txt
|
||||||
|
|
||||||
|
echo "==> Creating config directories"
|
||||||
|
mkdir -p ~/.config/{niri,waybar,wofi,mako,alacritty}
|
||||||
|
|
||||||
|
echo "==> Linking configs"
|
||||||
|
|
||||||
|
ln -sf "$(pwd)/niri/config.kdl" ~/.config/niri/config.kdl
|
||||||
|
ln -sf "$(pwd)/waybar/config.jsonc" ~/.config/waybar/config.jsonc
|
||||||
|
ln -sf "$(pwd)/waybar/style.css" ~/.config/waybar/style.css
|
||||||
|
ln -sf "$(pwd)/wofi/config" ~/.config/wofi/config
|
||||||
|
ln -sf "$(pwd)/mako/config" ~/.config/mako/config
|
||||||
|
ln -sf "$(pwd)/alacritty/alacritty.toml" ~/.config/alacritty/alacritty.toml
|
||||||
|
|
||||||
|
echo "==> Done. Start Niri with: niri"
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
background-color=#1e1e2e
|
||||||
|
text-color=#cdd6f4
|
||||||
|
border-size=2
|
||||||
|
border-color=#89b4fa
|
||||||
|
default-timeout=4000
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
input {
|
||||||
|
keyboard {
|
||||||
|
repeat-delay 250
|
||||||
|
repeat-rate 60
|
||||||
|
}
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
tap
|
||||||
|
natural-scroll
|
||||||
|
dwt
|
||||||
|
accel-speed 0.4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
layout {
|
||||||
|
gaps 10
|
||||||
|
border-width 2
|
||||||
|
|
||||||
|
focus-ring {
|
||||||
|
width 3
|
||||||
|
active-color "#89b4fa"
|
||||||
|
inactive-color "#444444"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
environment {
|
||||||
|
MOZ_ENABLE_WAYLAND "1"
|
||||||
|
QT_QPA_PLATFORM "wayland"
|
||||||
|
SDL_VIDEODRIVER "wayland"
|
||||||
|
}
|
||||||
|
|
||||||
|
spawn-at-startup [
|
||||||
|
"waybar"
|
||||||
|
"mako"
|
||||||
|
"swww-daemon"
|
||||||
|
"nm-applet --indicator"
|
||||||
|
"polkit-gnome-authentication-agent-1"
|
||||||
|
]
|
||||||
|
|
||||||
|
binds {
|
||||||
|
// apps
|
||||||
|
Mod+Return { spawn "alacritty" }
|
||||||
|
Mod+D { spawn "wofi --show drun" }
|
||||||
|
Mod+E { spawn "thunar" }
|
||||||
|
|
||||||
|
// window control
|
||||||
|
Mod+Q { close-window }
|
||||||
|
Mod+F { toggle-fullscreen }
|
||||||
|
|
||||||
|
// focus
|
||||||
|
Mod+H { focus-left }
|
||||||
|
Mod+J { focus-down }
|
||||||
|
Mod+K { focus-up }
|
||||||
|
Mod+L { focus-right }
|
||||||
|
|
||||||
|
// move windows
|
||||||
|
Mod+Shift+H { move-left }
|
||||||
|
Mod+Shift+J { move-down }
|
||||||
|
Mod+Shift+K { move-up }
|
||||||
|
Mod+Shift+L { move-right }
|
||||||
|
|
||||||
|
// screenshot
|
||||||
|
Print { spawn "grim -g \"$(slurp)\" ~/Pictures/screenshot-$(date +%s).png" }
|
||||||
|
|
||||||
|
// lock / exit
|
||||||
|
Mod+Shift+E { spawn "swaylock -f -c 000000" }
|
||||||
|
Mod+Shift+X { quit }
|
||||||
|
|
||||||
|
// volume
|
||||||
|
XF86AudioRaiseVolume { spawn "pamixer -i 5" }
|
||||||
|
XF86AudioLowerVolume { spawn "pamixer -d 5" }
|
||||||
|
XF86AudioMute { spawn "pamixer -t" }
|
||||||
|
|
||||||
|
// brightness
|
||||||
|
XF86MonBrightnessUp { spawn "brightnessctl set +10%" }
|
||||||
|
XF86MonBrightnessDown { spawn "brightnessctl set 10%-" }
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
niri
|
||||||
|
waybar
|
||||||
|
wofi
|
||||||
|
mako
|
||||||
|
alacritty
|
||||||
|
swww
|
||||||
|
grim
|
||||||
|
slurp
|
||||||
|
wl-clipboard
|
||||||
|
brightnessctl
|
||||||
|
pamixer
|
||||||
|
swaylock
|
||||||
|
ttf-jetbrains-mono-nerd
|
||||||
|
network-manager-applet
|
||||||
|
polkit-gnome
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
thunar
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
waybar &
|
||||||
|
mako &
|
||||||
|
swww-daemon &
|
||||||
|
nm-applet --indicator &
|
||||||
|
polkit-gnome-authentication-agent-1 &
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
FILE=~/Pictures/screenshot-$(date +%s).png
|
||||||
|
grim -g "$(slurp)" "$FILE"
|
||||||
|
wl-copy < "$FILE"
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
"position": "top",
|
||||||
|
"height": 32,
|
||||||
|
|
||||||
|
"modules-left": ["niri/workspaces"],
|
||||||
|
"modules-center": ["clock"],
|
||||||
|
"modules-right": ["pulseaudio", "network", "battery", "tray"],
|
||||||
|
|
||||||
|
"clock": {
|
||||||
|
"format": "{:%a %b %d %H:%M}"
|
||||||
|
},
|
||||||
|
|
||||||
|
"battery": {
|
||||||
|
"format": "{capacity}% {icon}",
|
||||||
|
"format-icons": ["","","","",""]
|
||||||
|
},
|
||||||
|
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {essid}",
|
||||||
|
"format-ethernet": "",
|
||||||
|
"format-disconnected": "⚠"
|
||||||
|
},
|
||||||
|
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": " {volume}%",
|
||||||
|
"format-muted": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
* {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background: rgba(15,15,20,0.9);
|
||||||
|
color: #cdd6f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 8px;
|
||||||
|
color: #6c7086;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused {
|
||||||
|
color: #89b4fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock, #battery, #network, #pulseaudio {
|
||||||
|
padding: 0 12px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
show=drun
|
||||||
|
width=700
|
||||||
|
height=450
|
||||||
|
prompt=Run:
|
||||||
Reference in New Issue
Block a user