first commit
This commit is contained in:
commit
205faf4224
5471 changed files with 973850 additions and 0 deletions
57
config/hypr/conf/binding.lua
Normal file
57
config/hypr/conf/binding.lua
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
-- shutdown hyprland and lock
|
||||
hl.bind(
|
||||
"CTRL + ALT + M",
|
||||
hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"),
|
||||
{ description = "hyprland shutdown" }
|
||||
)
|
||||
hl.bind("CTRL + ALT + L", hl.dsp.exec_cmd(lockscreen))
|
||||
-- launchers
|
||||
hl.bind("ALT + D", hl.dsp.exec_cmd(fileManager))
|
||||
hl.bind("ALT + Q", hl.dsp.exec_cmd(terminal))
|
||||
hl.bind("ALT + N", hl.dsp.exec_cmd("kitty -e nvim"))
|
||||
hl.bind("ALT + W", hl.dsp.exec_cmd(app_launcher))
|
||||
hl.bind("ALT + F", hl.dsp.exec_cmd(browser))
|
||||
hl.bind("ALT + Z", hl.dsp.exec_cmd("zotero"))
|
||||
-- window management
|
||||
hl.bind("ALT + V", hl.dsp.window.float({ action = "toggle" }))
|
||||
hl.bind("ALT + F4", hl.dsp.window.kill("activewindow"))
|
||||
-- move focus
|
||||
hl.bind("ALT + L", hl.dsp.focus({ direction = "right" }))
|
||||
hl.bind("ALT + H", hl.dsp.focus({ direction = "left" }))
|
||||
hl.bind("ALT + J", hl.dsp.focus({ direction = "up" }))
|
||||
hl.bind("ALT + K", hl.dsp.focus({ direction = "down" }))
|
||||
-- move window
|
||||
hl.bind("CTRL + SUPER + L", hl.dsp.window.move({ direction = "right" }))
|
||||
hl.bind("CTRL + SUPER + H", hl.dsp.window.move({ direction = "left" }))
|
||||
hl.bind("CTRL + SUPER + K", hl.dsp.window.move({ direction = "up" }))
|
||||
hl.bind("CTRL + SUPER + J", hl.dsp.window.move({ direction = "down" }))
|
||||
-- move to monitor
|
||||
hl.bind("SUPER + A", hl.dsp.focus({ monitor = monitorA }))
|
||||
hl.bind("SUPER + B", hl.dsp.focus({ monitor = monitorB }))
|
||||
hl.bind("CTRL + SUPER + A", hl.dsp.window.move({ monitor = monitorA }))
|
||||
hl.bind("CTRL + SUPER + B", hl.dsp.window.move({ monitor = monitorB }))
|
||||
-- change workspace
|
||||
hl.bind("SUPER + L", hl.dsp.focus({ workspace = "r+1" }))
|
||||
hl.bind("SUPER + H", hl.dsp.focus({ workspace = "r-1" }))
|
||||
hl.bind("SUPER + K", hl.dsp.window.move({ workspace = "r+1" }))
|
||||
hl.bind("SUPER + J", hl.dsp.window.move({ workspace = "r-1" }))
|
||||
-- screenshot
|
||||
hl.bind(
|
||||
"Print",
|
||||
hl.dsp.exec_cmd(
|
||||
[[filename="$(date +'%F-%T').png" && grimblast --freeze copysave area "$filename" && mkdir -p ~/Screenshots && mv "$filename" ~/Screenshots/ && nomacs ~/Screenshots/"$filename"]]
|
||||
)
|
||||
)
|
||||
hl.bind("SUPER + V", hl.dsp.exec_cmd("cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy"))
|
||||
|
||||
-- mouse resize
|
||||
hl.bind("ALT + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||
hl.bind("ALT + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||
|
||||
-- brightness
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"))
|
||||
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"))
|
||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"))
|
||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"))
|
||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"))
|
||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"))
|
||||
8
config/hypr/conf/env.lua
Normal file
8
config/hypr/conf/env.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- environment variables
|
||||
hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
|
||||
hl.env("XDG_SESSION_TYPE", "wayland")
|
||||
hl.env("WLR_NO_HARDWARE_CURSOR", 1)
|
||||
hl.env("NVD_BACKEND", "direct")
|
||||
hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto")
|
||||
hl.env("SCREENSHOT_DIR", "$home/Screenshots")
|
||||
hl.env("GDK_SCALE", 1)
|
||||
17
config/hypr/conf/input.lua
Normal file
17
config/hypr/conf/input.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
hl.config({
|
||||
input = {
|
||||
kb_layout = "fr",
|
||||
numlock_by_default = true,
|
||||
|
||||
accel_profile = "adaptive",
|
||||
follow_mouse = 1,
|
||||
|
||||
sensitivity = -0.3,
|
||||
touchpad = {
|
||||
disable_while_typing = true,
|
||||
scroll_factor = 1.2,
|
||||
natural_scroll = false,
|
||||
middle_button_emulation = false,
|
||||
},
|
||||
},
|
||||
})
|
||||
13
config/hypr/conf/monitor.lua
Normal file
13
config/hypr/conf/monitor.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
hl.monitor({
|
||||
output = monitorA,
|
||||
mode = "1366x768@60",
|
||||
position = "0x0",
|
||||
scale = "1",
|
||||
})
|
||||
|
||||
hl.monitor({
|
||||
output = monitorB,
|
||||
mode = "preferred",
|
||||
position = "1366x0",
|
||||
scale = "1.2",
|
||||
})
|
||||
6
config/hypr/conf/others.lua
Normal file
6
config/hypr/conf/others.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
hl.misc({
|
||||
force_default_wallpaper = 0,
|
||||
disable_hyprland_logo = true,
|
||||
disable_splash_rendering = true,
|
||||
vrr = 0,
|
||||
})
|
||||
8
config/hypr/conf/startup.lua
Normal file
8
config/hypr/conf/startup.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("hyprpaper")
|
||||
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
||||
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||
hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24")
|
||||
hl.exec_cmd("protonmail-bridge")
|
||||
end)
|
||||
65
config/hypr/conf/style.lua
Normal file
65
config/hypr/conf/style.lua
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
hl.config({
|
||||
general = {
|
||||
gaps_in = 2.5,
|
||||
gaps_out = 5,
|
||||
border_size = 2,
|
||||
col = {
|
||||
active_border = { colors = { "rgba(6788D1ee)", "rgba(8EB962ee)" }, angle = 45 },
|
||||
inactive_border = "rgba(4E567Daa)",
|
||||
},
|
||||
resize_on_border = true,
|
||||
hover_icon_on_border = true,
|
||||
allow_tearing = true,
|
||||
layout = "dwindle",
|
||||
snap = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
decoration = {
|
||||
rounding = 8,
|
||||
rounding_power = 10,
|
||||
|
||||
-- Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0,
|
||||
inactive_opacity = 1.0,
|
||||
|
||||
shadow = {
|
||||
enabled = false,
|
||||
range = 4,
|
||||
render_power = 3,
|
||||
color = 0xee1a1a1a,
|
||||
},
|
||||
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 3,
|
||||
passes = 2,
|
||||
vibrancy = 0.1696,
|
||||
},
|
||||
},
|
||||
animations = {
|
||||
enabled = false,
|
||||
},
|
||||
})
|
||||
-- tiling managers
|
||||
hl.config({
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
},
|
||||
master = {
|
||||
new_status = "master",
|
||||
orientation = "center",
|
||||
mfact = "0.5",
|
||||
},
|
||||
scrolling = {
|
||||
fullscreen_on_one_column = true,
|
||||
},
|
||||
})
|
||||
-- others
|
||||
hl.config({
|
||||
misc = {
|
||||
disable_hyprland_logo = true,
|
||||
disable_splash_rendering = true,
|
||||
force_default_wallpaper = 0,
|
||||
},
|
||||
})
|
||||
9
config/hypr/conf/variables.lua
Normal file
9
config/hypr/conf/variables.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
terminal = "kitty"
|
||||
fileManager = "nautilus"
|
||||
menu = "wofi --show drun"
|
||||
home = "/home/afoucaultc/"
|
||||
lockscreen = "hyprlock"
|
||||
browser = "zen-browser"
|
||||
app_launcher = "~/.config/rofi/launchers/type-1/launcher.sh"
|
||||
monitorA = "eDP-1"
|
||||
monitorB = "DP-2"
|
||||
7
config/hypr/conf/windowrules.lua
Normal file
7
config/hypr/conf/windowrules.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
hl.window_rule({
|
||||
name = "opacity kitty",
|
||||
match = {
|
||||
class = "kitty",
|
||||
},
|
||||
opacity = "0.9",
|
||||
})
|
||||
0
config/hypr/conf/workspace.lua
Normal file
0
config/hypr/conf/workspace.lua
Normal file
Loading…
Add table
Add a link
Reference in a new issue