feat(config/hypr): add keybinding for screen capture and configure portal & startup apps
Add ALT + P binding for grimblast screen capture Set GTK_USE_PORTAL=1 environment variable Configure cursor theme and startup commands in startup_apps.lua Add window rule for modus windows with blur and no animation.
This commit is contained in:
4 files changed
+14
-1
No files matched your search
@@ -52,7 +52,7 @@ hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd("uwsm app -- " .. terminal))
|
||||
hl.bind("ALT + SHIFT + Return", hl.dsp.exec_cmd("uwsm app -- " .. terminal, { float = true }))
|
||||
hl.bind("ALT + E", hl.dsp.exec_cmd("uwsm app -- " .. file_manager))
|
||||
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd("uwsm app -- " .. browser))
|
||||
hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("grimblast save screen"))
|
||||
hl.bind("ALT + P", hl.dsp.exec_cmd("grimblast save screen"))
|
||||
-- Cycle Layout in Specific workspace
|
||||
hl.bind(mainMod .. " + Tab", cycle_layout("next"))
|
||||
hl.bind(mainMod .. " + SHIFT + Tab", cycle_layout("prev"))
|
||||
|
||||
@@ -38,6 +38,8 @@ for key, val in pairs({
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto",
|
||||
ELECTRON_ARGS = "--enable-features=UseOzonePlatform --ozone-platform=wayland",
|
||||
|
||||
GTK_USE_PORTAL = "1",
|
||||
|
||||
-- nvidia
|
||||
GBM_BACKEND = "nvidia-drm",
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia",
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
hl.on("hyprland.start", function()
|
||||
local cmds = {
|
||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP",
|
||||
-- GTK_MODULES is set at Modus runtime by _setup_environment() in globalmenu.py
|
||||
"gsettings set org.gnome.desktop.interface cursor-theme Bibata-Modern-Ice",
|
||||
"hyprctl setcursor Bibata-Modern-Ice 6",
|
||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
|
||||
|
||||
@@ -156,6 +156,16 @@ end
|
||||
local layer_rules = {
|
||||
{ match = { namespace = "^(hyprpicker|selection|noanim|fabric)$" }, no_anim = true },
|
||||
{ match = { namespace = "gtk-layer-shell" }, ignore_alpha = 0 },
|
||||
{
|
||||
name = "modus",
|
||||
match = {
|
||||
namespace = "^lock$|^modus-.*",
|
||||
},
|
||||
blur = true,
|
||||
no_anim = true,
|
||||
ignore_alpha = 0,
|
||||
blur_popups = true,
|
||||
},
|
||||
}
|
||||
|
||||
for _, rule in ipairs(layer_rules) do
|
||||
|
||||
Reference in new issue
Block a user