clean up hyprland.lua
This commit is contained in:
parent
b541f1891b
commit
2c2b8c8570
1 changed files with 5 additions and 90 deletions
|
|
@ -1,20 +1,3 @@
|
||||||
-- This is an example Hyprland Lua config file.
|
|
||||||
-- Refer to the wiki for more information.
|
|
||||||
-- https://wiki.hypr.land/Configuring/Start/
|
|
||||||
|
|
||||||
-- Please note not all available settings / options are set here.
|
|
||||||
-- For a full list, see the wiki
|
|
||||||
|
|
||||||
-- You can (and should!!) split this configuration into multiple files
|
|
||||||
-- Create your files separately and then require them like this:
|
|
||||||
-- require("myColors")
|
|
||||||
|
|
||||||
|
|
||||||
------------------
|
|
||||||
---- MONITORS ----
|
|
||||||
------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
|
|
||||||
hl.monitor({
|
hl.monitor({
|
||||||
output = "",
|
output = "",
|
||||||
mode = "preferred",
|
mode = "preferred",
|
||||||
|
|
@ -39,69 +22,20 @@ hl.monitor({
|
||||||
cm = "wide",
|
cm = "wide",
|
||||||
})
|
})
|
||||||
|
|
||||||
---------------------
|
- Set programs that you use
|
||||||
---- MY PROGRAMS ----
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
-- Set programs that you use
|
|
||||||
local terminal = "foot"
|
local terminal = "foot"
|
||||||
local fileManager = "nemo"
|
local fileManager = "nemo"
|
||||||
local menu = "fuzzel"
|
local menu = "fuzzel"
|
||||||
|
|
||||||
-------------------
|
|
||||||
---- AUTOSTART ----
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Autostart/
|
|
||||||
|
|
||||||
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
-- Or execute your favorite apps at launch like this:
|
|
||||||
--
|
|
||||||
hl.on("hyprland.start", function()
|
hl.on("hyprland.start", function()
|
||||||
hl.exec_cmd("qs")
|
hl.exec_cmd("qs")
|
||||||
hl.exec_cmd("/usr/libexec/hyprpolkitagent")
|
hl.exec_cmd("/usr/libexec/hyprpolkitagent")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-------------------------------
|
|
||||||
---- ENVIRONMENT VARIABLES ----
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
|
|
||||||
|
|
||||||
-- hl.env("XCURSOR_SIZE", "24")
|
|
||||||
-- hl.env("HYPRCURSOR_SIZE", "24")
|
|
||||||
-- hl.env("HYPRCURSOR_THEME", "Adwaita")
|
|
||||||
-- hl.env("XCURSOR_THEME", "Adwaita")
|
|
||||||
-- hl.env("GTK_THEME", "adw-gtk3")
|
|
||||||
|
|
||||||
-----------------------
|
|
||||||
----- PERMISSIONS -----
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Permissions/
|
|
||||||
-- Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
|
||||||
-- for security reasons
|
|
||||||
|
|
||||||
-- hl.config({
|
|
||||||
-- ecosystem = {
|
|
||||||
-- enforce_permissions = true,
|
|
||||||
-- },
|
|
||||||
-- })
|
|
||||||
|
|
||||||
-- hl.permission("/usr/(bin|local/bin)/grim", "screencopy", "allow")
|
|
||||||
-- hl.permission("/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland", "screencopy", "allow")
|
|
||||||
-- hl.permission("/usr/(bin|local/bin)/hyprpm", "plugin", "allow")
|
|
||||||
|
|
||||||
-----------------------
|
|
||||||
---- LOOK AND FEEL ----
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
-- Refer to https://wiki.hypr.land/Configuring/Basics/Variables/
|
|
||||||
hl.config({
|
hl.config({
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 5,
|
gaps_in = 5,
|
||||||
gaps_out = 10,
|
gaps_out = 10,
|
||||||
border_size = 4,
|
border_size = 2,
|
||||||
resize_on_border = false,
|
resize_on_border = false,
|
||||||
allow_tearing = false,
|
allow_tearing = false,
|
||||||
layout = "master",
|
layout = "master",
|
||||||
|
|
@ -110,13 +44,10 @@ hl.config({
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 16,
|
rounding = 16,
|
||||||
rounding_power = 2,
|
rounding_power = 2,
|
||||||
|
|
||||||
-- Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1.0,
|
active_opacity = 1.0,
|
||||||
inactive_opacity = 1.0,
|
inactive_opacity = 1.0,
|
||||||
|
|
||||||
shadow = {
|
shadow = {
|
||||||
enabled = false,
|
enabled = true,
|
||||||
range = 4,
|
range = 4,
|
||||||
render_power = 3,
|
render_power = 3,
|
||||||
color = 0xee1a1a1a,
|
color = 0xee1a1a1a,
|
||||||
|
|
@ -124,7 +55,7 @@ hl.config({
|
||||||
|
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
size = 2,
|
size = 3,
|
||||||
passes = 2,
|
passes = 2,
|
||||||
vibrancy = 0.1696,
|
vibrancy = 0.1696,
|
||||||
},
|
},
|
||||||
|
|
@ -183,17 +114,10 @@ hl.config({
|
||||||
|
|
||||||
hl.gesture({
|
hl.gesture({
|
||||||
fingers = 3,
|
fingers = 3,
|
||||||
direction = "horizontal",
|
direction = "vertical",
|
||||||
action = "workspace",
|
action = "workspace",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Example per-device config
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Devices/ for more
|
|
||||||
|
|
||||||
---------------------
|
|
||||||
---- KEYBINDINGS ----
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
local mainMod = "SUPER" -- Sets "Windows" key as main modifier
|
||||||
local aux_mod = "ALT"
|
local aux_mod = "ALT"
|
||||||
|
|
||||||
|
|
@ -266,15 +190,6 @@ hl.bind(mainMod .. "+ SHIFT + S", hl.dsp.exec_cmd("grimblast copy area -n -f"))
|
||||||
hl.bind(mainMod .. " + w", hl.dsp.exec_cmd("/etc/bash/bashrc.d/90-qs.bash switch-wall fuzzel"))
|
hl.bind(mainMod .. " + w", hl.dsp.exec_cmd("/etc/bash/bashrc.d/90-qs.bash switch-wall fuzzel"))
|
||||||
hl.bind(mainMod .. " + t", hl.dsp.exec_cmd("/etc/bash/bashrc.d/90-qs.bash switch-theme fuzzel"))
|
hl.bind(mainMod .. " + t", hl.dsp.exec_cmd("/etc/bash/bashrc.d/90-qs.bash switch-theme fuzzel"))
|
||||||
|
|
||||||
--------------------------------
|
|
||||||
---- WINDOWS AND WORKSPACES ----
|
|
||||||
--------------------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Window-Rules/
|
|
||||||
-- and https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
|
|
||||||
|
|
||||||
-- Example window rules that are useful
|
|
||||||
|
|
||||||
hl.window_rule({
|
hl.window_rule({
|
||||||
-- Ignore maximize requests from all apps. You'll probably like this.
|
-- Ignore maximize requests from all apps. You'll probably like this.
|
||||||
name = "suppress-maximize-events",
|
name = "suppress-maximize-events",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue