Added missing changes from last commit, style changes inside hyprland config files

This commit is contained in:
Gu://em_ 2026-08-04 12:56:31 +02:00
parent d4a489a52c
commit da39b8b8e0
3 changed files with 20 additions and 26 deletions

View file

@ -1,15 +1,11 @@
-----------------
---- PROGRAMS ---
-----------------
------ Programs
terminal = "foot"
fileManager = "nautilus"
menu = "rofi -show drun"
notificationManager = "swaync-client -t"
Terminal = "foot"
FileManager = "nautilus"
Menu = "rofi -show drun"
NotificationManager = "swaync-client -t"
------------------
---- AUTOSTART ---
------------------
------ Autostart
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
@ -19,13 +15,11 @@ hl.on("hyprland.start", function()
hl.exec_cmd("wl-paste --type text --watch cliphist store") -- Stores only text data
hl.exec_cmd("wl-paste --type image --watch cliphist store") -- Stores only image data
-- SSH Agent
hl.exec_cmd("ssh-agent")
hl.exec_cmd("ssh-agent")
end)
--------------------
---- PERMISSIONS ---
--------------------
------ Permissions
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
-- for security reasons

View file

@ -44,8 +44,8 @@ MainMod = "SUPER" -- Sets META ("Windows") key as main modifier
-- Main desktop controls
hl.bind(MainMod .. " + Q" , hl.dsp.window.close())
hl.bind(MainMod .. " + R" , hl.dsp.exec_cmd(menu)) -- Omnibar
hl.bind(MainMod .. " + D" , hl.dsp.exec_cmd(menu)) -- Legacy menu shortcut
hl.bind(MainMod .. " + R" , hl.dsp.exec_cmd(Menu)) -- Omnibar
hl.bind(MainMod .. " + D" , hl.dsp.exec_cmd(Menu)) -- Legacy menu shortcut
hl.bind(MainMod .. " + I" , hl.dsp.exec_cmd("hyprlock")) -- Lockscreen
hl.bind(MainMod .. " + B" , hl.dsp.exec_cmd("~/.config/hypr/scripts/toggle-waybar.sh")) -- Toggle sidebar
hl.bind(MainMod .. " + SHIFT + R", hl.dsp.exec_cmd("~/.config/hypr/scripts/reload.sh")) -- Reload desktop
@ -54,13 +54,13 @@ hl.bind(MainMod .. " + F10" , hl.dsp.exec_cmd("~/.config/hypr/scripts/sharp
hl.bind(MainMod .. " + SHIFT + M", hl.dsp.exit()) -- Exit desktop session
-- Shortcuts
hl.bind(MainMod .. " + RETURN", hl.dsp.exec_cmd(terminal))
hl.bind(MainMod .. " + X" , hl.dsp.exec_cmd(terminal)) -- Absolutely not because I dislocated my arm
hl.bind(MainMod .. " + SPACE" , hl.dsp.exec_cmd(menu))
hl.bind(MainMod .. " + E" , hl.dsp.exec_cmd(fileManager))
hl.bind(MainMod .. " + A" , hl.dsp.exec_cmd(notificationManager))
hl.bind(MainMod .. " + RETURN", hl.dsp.exec_cmd(Terminal))
hl.bind(MainMod .. " + X" , hl.dsp.exec_cmd(Terminal)) -- Absolutely not because I dislocated my arm
hl.bind(MainMod .. " + SPACE" , hl.dsp.exec_cmd(Menu))
hl.bind(MainMod .. " + E" , hl.dsp.exec_cmd(FileManager))
hl.bind(MainMod .. " + A" , hl.dsp.exec_cmd(NotificationManager))
-- TODO Replace by default editor
hl.bind("XF86Launch1" , hl.dsp.exec_cmd(terminal .. " hx ~/.config/hypr/config"))
hl.bind("XF86Launch1" , hl.dsp.exec_cmd(Terminal .. " hx ~/.config/hypr/config"))
-- Move focus with mainMod + arrow keys
hl.bind(MainMod .. " + left" , hl.dsp.focus({ direction = "left" }))

View file

@ -1,7 +1,7 @@
#!/bin/sh
status_file="$HOME/.config/hypr/status/kb_layout"
hyprland_cfg_file="$HOME/.config/hypr/hyprland.conf"
hyprland_cfg_file="$HOME/.config/hypr/hyprland.lua"
fr_to_en() {
@ -9,7 +9,7 @@ fr_to_en() {
hyprctl notify 1 2000 0 "Keyboard set to QWERTY"
sed -i 's/kb_layouts\/fr/kb_layouts\/us/g' "$hyprland_cfg_file"
sed -i 's/kb_layouts.fr/kb_layouts.us/g' "$hyprland_cfg_file"
}
en_to_fr() {
@ -17,7 +17,7 @@ en_to_fr() {
hyprctl notify 1 2000 0 "Keyboard set to AZERTY"
sed -i 's/kb_layouts\/us/kb_layouts\/fr/g' "$hyprland_cfg_file"
sed -i 's/kb_layouts\.us/kb_layouts\.fr/g' "$hyprland_cfg_file"
}
if ! [ -f "${status_file}" ]; then
@ -30,4 +30,4 @@ else
elif [ $(cat "${status_file}") = "en" ]; then
en_to_fr
fi
fi
fi