update hyprland
This commit is contained in:
1 parent
bdd903a188
commit
6d46c640df
4 files changed
+625
-13
No files matched your search
@@ -0,0 +1,537 @@
|
||||
-- Generated by hyprconf2lua v1.4.0
|
||||
-- https://github.com/Prateek-squadron/hyprconf2lua
|
||||
-- Manual review may be needed for complex directives
|
||||
|
||||
---@module 'hl'
|
||||
|
||||
-- #######################################################################################
|
||||
|
||||
-- AUTOGENERATED HYPRLAND CONFIG.
|
||||
|
||||
-- PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hyprland.conf AND EDIT IT,
|
||||
|
||||
-- OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
|
||||
|
||||
-- #######################################################################################
|
||||
|
||||
-- This is an example Hyprland config file.
|
||||
|
||||
-- Refer to the wiki for more information.
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/
|
||||
|
||||
-- Please note not all available settings / options are set here.
|
||||
|
||||
-- For a full list, see the wiki
|
||||
|
||||
-- You can split this configuration into multiple files
|
||||
|
||||
-- Create your files separately and then link them to this file like this:
|
||||
|
||||
-- source = ~/.config/hypr/myColors.conf
|
||||
|
||||
--###############
|
||||
|
||||
--## MONITORS ###
|
||||
|
||||
--###############
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
|
||||
--monitor= desc:Samsung Electric Company Odyssey G95SC H1AK500000, 5120x1440@120, 0x0, 1
|
||||
|
||||
--monitor= desc:Acer Technologies VG271U M3 1322131231233, preferred, auto-left, 1, transform, 3
|
||||
|
||||
hl.monitor({
|
||||
output = "eDP-1",
|
||||
mode = "preferred",
|
||||
position = "-1920x0",
|
||||
scale = 1,
|
||||
})
|
||||
|
||||
hl.monitor({
|
||||
output = "desc:Samsung Electric Company SAMSUNG 0x01000E00",
|
||||
mode = "4096x2160@60",
|
||||
position = "0x0",
|
||||
scale = 1,
|
||||
})
|
||||
|
||||
hl.monitor({
|
||||
output = "DP-1",
|
||||
mode = "1920x1080@60",
|
||||
position = "0x0",
|
||||
scale = 1,
|
||||
})
|
||||
|
||||
--##################
|
||||
|
||||
--## MY PROGRAMS ###
|
||||
|
||||
--##################
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
|
||||
-- Set programs that you use
|
||||
|
||||
local terminal = "kitty"
|
||||
|
||||
local fileManager = "comsic-files"
|
||||
|
||||
local menu = "rofi -show drun -theme rounded-purple-dark"
|
||||
|
||||
local windowSwitcher = "rofi -show window -theme rounded-purple-dark"
|
||||
|
||||
local powerMenu = "rofi -show power-menu -modi power-menu:rofi-power-menu -theme rounded-purple-dark"
|
||||
|
||||
--################
|
||||
|
||||
--## AUTOSTART ###
|
||||
|
||||
--################
|
||||
|
||||
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
|
||||
-- Or execute your favorite apps at launch like this:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- exec-once = sysboard
|
||||
|
||||
--############################
|
||||
|
||||
--## ENVIRONMENT VARIABLES ###
|
||||
|
||||
--############################
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||
|
||||
hl.env("XCURSOR_SIZE", 24)
|
||||
|
||||
hl.env("HYPRCURSOR_SIZE", 24)
|
||||
|
||||
hl.env("PATH", os.getenv("PATH") .. ":" .. os.getenv("HOME") .. "/.local/bin")
|
||||
|
||||
--####################
|
||||
|
||||
--## LOOK AND FEEL ###
|
||||
|
||||
--####################
|
||||
|
||||
-- Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
|
||||
hl.config({
|
||||
general = {
|
||||
gaps_in = 5,
|
||||
gaps_out = 10,
|
||||
border_size = 2,
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
-- Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = true,
|
||||
-- Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false,
|
||||
layout = "dwindle",
|
||||
col = {
|
||||
active_border = { colors = { "rgba(6c0a6eee)", "rgba(e664e8ee)" }, angle = 45 },
|
||||
inactive_border = "rgba(595959aa)",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
|
||||
hl.config({
|
||||
decoration = {
|
||||
rounding = 10,
|
||||
-- Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0,
|
||||
inactive_opacity = 1.0,
|
||||
dim_inactive = true,
|
||||
dim_strength = .10,
|
||||
shadow = {
|
||||
enabled = true,
|
||||
range = 4,
|
||||
render_power = 3,
|
||||
color = "rgba(1a1a1aee)",
|
||||
},
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 3,
|
||||
passes = 1,
|
||||
vibrancy = 0.1696,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
|
||||
hl.config({
|
||||
animations = {
|
||||
enabled = { true, "please:)" },
|
||||
-- Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
},
|
||||
})
|
||||
|
||||
-- Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
|
||||
-- "Smart gaps" / "No gaps when only"
|
||||
|
||||
-- uncomment all if you wish to use that.
|
||||
|
||||
-- workspace = w[tv1], gapsout:0, gapsin:0
|
||||
|
||||
-- workspace = f[1], gapsout:0, gapsin:0
|
||||
|
||||
-- windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
|
||||
-- windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
|
||||
-- windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
|
||||
|
||||
-- windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
|
||||
|
||||
-- windowrulev2 = opacity 1 .9, title:(Jellyfin Media Player)
|
||||
|
||||
-- Disable idle when fullscreen app is enabled
|
||||
|
||||
-- windowrulev2 = idleinhibit fullscreen, class:.*
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
|
||||
hl.config({
|
||||
dwindle = {
|
||||
--pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true,
|
||||
-- You probably want this
|
||||
},
|
||||
})
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
|
||||
hl.config({
|
||||
master = {
|
||||
new_status = "master",
|
||||
},
|
||||
})
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
|
||||
hl.config({
|
||||
misc = {
|
||||
force_default_wallpaper = -1,
|
||||
-- Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = false,
|
||||
-- If true disables the random hyprland logo / anime girl background. :(
|
||||
},
|
||||
})
|
||||
|
||||
--############
|
||||
|
||||
--## INPUT ###
|
||||
|
||||
--############
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
|
||||
hl.config({
|
||||
input = {
|
||||
kb_layout = "us",
|
||||
follow_mouse = 1,
|
||||
sensitivity = 0,
|
||||
-- -1.0 - 1.0, 0 means no modification.
|
||||
touchpad = {
|
||||
natural_scroll = false,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
hl.config({
|
||||
cursor = {
|
||||
no_hardware_cursors = 1,
|
||||
},
|
||||
})
|
||||
|
||||
-- Example per-device config
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||
|
||||
hl.device({
|
||||
name = "epic-mouse-v1",
|
||||
sensitivity = -0.5,
|
||||
})
|
||||
|
||||
hl.device({
|
||||
name = "bastard-keyboards-charybdis-(4x6)-splinky-mouse",
|
||||
sensitivity = -0.80,
|
||||
accel_profile = "adaptive",
|
||||
})
|
||||
|
||||
--##################
|
||||
|
||||
--## KEYBINDINGS ###
|
||||
|
||||
--##################
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
|
||||
local mainMod = "SUPER"
|
||||
|
||||
-- Sets "Windows" key as main modifier
|
||||
|
||||
-- Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
|
||||
hl.bind(mainMod .. " + " .. "Q", hl.dsp.exec_cmd("kitty"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "C", hl.dsp.window.close())
|
||||
|
||||
hl.bind("ALT" .. " + " .. "F4", hl.dsp.window.close())
|
||||
|
||||
hl.bind(mainMod .. " + " .. "M", hl.dsp.exit())
|
||||
|
||||
hl.bind(mainMod .. " + " .. "E", hl.dsp.exec_cmd("comsic-files"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "V", hl.dsp.window.float())
|
||||
|
||||
hl.bind("$mainMod+ + CTRL" .. " + " .. "V", hl.dsp.window.fullscreen())
|
||||
|
||||
hl.bind(mainMod .. " + " .. "R", hl.dsp.exec_cmd("rofi -show drun -theme rounded-purple-dark"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "P", hl.dsp.window.pseudo())
|
||||
|
||||
-- dwindle
|
||||
|
||||
hl.bind(mainMod .. " + " .. "J", hl.dsp.layout("togglesplit"))
|
||||
|
||||
-- dwindle
|
||||
|
||||
hl.bind("ALT" .. " + " .. "TAB", hl.dsp.exec_cmd("rofi -show window -theme rounded-purple-dark"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "F12", hl.dsp.exec_cmd("rofi -show power-menu -modi power-menu:rofi-power-menu -theme rounded-purple-dark"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "F", hl.dsp.exec_cmd("kitty lf"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "T", hl.dsp.exec_cmd("subl"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "Z", hl.dsp.exec_cmd("pkill waybar || waybar"))
|
||||
|
||||
-- Move focus with mainMod + arrow keys
|
||||
|
||||
hl.bind(mainMod .. " + " .. "left", hl.dsp.focus({ direction = "left" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "right", hl.dsp.focus({ direction = "right" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "up", hl.dsp.focus({ direction = "up" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "down", hl.dsp.focus({ direction = "down" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "ALT" .. " + " .. "left", hl.dsp.window.swap({ direction = "left" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "ALT" .. " + " .. "right", hl.dsp.window.swap({ direction = "right" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "ALT" .. " + " .. "up", hl.dsp.window.swap({ direction = "up" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "ALT" .. " + " .. "down", hl.dsp.window.swap({ direction = "down" }))
|
||||
|
||||
-- Switch workspaces with mainMod + [0-9]
|
||||
|
||||
hl.bind(mainMod .. " + " .. 1, hl.dsp.focus({ workspace = 1 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 2, hl.dsp.focus({ workspace = 2 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 3, hl.dsp.focus({ workspace = 3 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 4, hl.dsp.focus({ workspace = 4 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 5, hl.dsp.focus({ workspace = 5 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 6, hl.dsp.focus({ workspace = 6 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 7, hl.dsp.focus({ workspace = 7 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 8, hl.dsp.focus({ workspace = 8 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 9, hl.dsp.focus({ workspace = 9 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. 0, hl.dsp.focus({ workspace = 10 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "CTRL" .. " + " .. "left", hl.dsp.focus({ workspace = "r-1" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "CTRL" .. " + " .. "right", hl.dsp.focus({ workspace = "r+1" }))
|
||||
|
||||
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 1, hl.dsp.window.move({ workspace = 1 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 2, hl.dsp.window.move({ workspace = 2 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 3, hl.dsp.window.move({ workspace = 3 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 4, hl.dsp.window.move({ workspace = 4 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 5, hl.dsp.window.move({ workspace = 5 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 6, hl.dsp.window.move({ workspace = 6 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 7, hl.dsp.window.move({ workspace = 7 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 8, hl.dsp.window.move({ workspace = 8 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 9, hl.dsp.window.move({ workspace = 9 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. 0, hl.dsp.window.move({ workspace = 10 }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "left", hl.dsp.window.move({ direction = "r-1" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "right", hl.dsp.window.move({ direction = "r+1" }))
|
||||
|
||||
-- Example special workspace (scratchpad)
|
||||
|
||||
hl.bind(mainMod .. " + " .. "S", hl.dsp.workspace.toggle_special("magic"))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "SHIFT" .. " + " .. "S", hl.dsp.window.move({ workspace = "special:magic" }))
|
||||
|
||||
-- Scroll through existing workspaces with mainMod + scroll
|
||||
|
||||
hl.bind(mainMod .. " + " .. "mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
||||
|
||||
hl.bind(mainMod .. " + " .. "mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||
|
||||
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
|
||||
hl.bind(mainMod .. " + " .. "mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||
|
||||
hl.bind(mainMod .. " + " .. "mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||
|
||||
-- Laptop multimedia keys for volume and LCD brightness
|
||||
|
||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true })
|
||||
|
||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true })
|
||||
|
||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true })
|
||||
|
||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true })
|
||||
|
||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl s 10%+"), { locked = true })
|
||||
|
||||
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl s 10%-"), { locked = true })
|
||||
|
||||
-- Requires playerctl
|
||||
|
||||
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
|
||||
|
||||
hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
||||
|
||||
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
|
||||
|
||||
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
|
||||
|
||||
--#############################
|
||||
|
||||
--## WINDOWS AND WORKSPACES ###
|
||||
|
||||
--#############################
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
-- Ignore maximize requests from apps. You'll probably like this.
|
||||
|
||||
-- windowrulev2 = suppressevent maximize, class:.*
|
||||
|
||||
-- Fix some dragging issues with XWayland
|
||||
|
||||
-- windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
|
||||
--Multi-monitor Worksapces
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 1,
|
||||
monitor = "DP-1",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 2,
|
||||
monitor = "DP-1",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 3,
|
||||
monitor = "DP-1",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 4,
|
||||
monitor = "DP-1",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 5,
|
||||
monitor = "DP-2",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 6,
|
||||
monitor = "DP-2",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 7,
|
||||
monitor = "DP-2",
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = 8,
|
||||
monitor = "DP-2",
|
||||
})
|
||||
|
||||
-- TODO: manual review: hyprgrass-bind = "", "edge:d:u", "exec", "sh local_var_HOME/.config/hypr/toggle_kbd.sh"
|
||||
|
||||
hl.plugin("touch_gestures", function()
|
||||
-- The default sensitivity is probably too low on tablet screens,
|
||||
-- I recommend turning it up to 4.0
|
||||
sensitivity = 1.0,
|
||||
-- must be >= 3
|
||||
workspace_swipe_fingers = 3,
|
||||
-- switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers
|
||||
-- and can be used at the same time
|
||||
-- possible values: l, r, u, or d
|
||||
-- to disable it set it to anything else
|
||||
workspace_swipe_edge = "nope",
|
||||
-- in milliseconds
|
||||
long_press_delay = 400,
|
||||
-- resize windows by long-pressing on window borders and gaps.
|
||||
-- If general:resize_on_border is enabled, general:extend_border_grab_area is used for floating
|
||||
-- windows
|
||||
resize_on_border_long_press = true,
|
||||
-- in pixels, the distance from the edge that is considered an edge
|
||||
edge_margin = 10,
|
||||
-- emulates touchpad swipes when swiping in a direction that does not trigger workspace swipe.
|
||||
-- ONLY triggers when finger count is equal to workspace_swipe_fingers
|
||||
--
|
||||
-- might be removed in the future in favor of event hooks
|
||||
emulate_touchpad_swipe = false,
|
||||
end)
|
||||
|
||||
-- Autostart
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("hyprpm reload")
|
||||
hl.exec_cmd("waybar")
|
||||
hl.exec_cmd("hyprpaper")
|
||||
hl.exec_cmd("hypridle")
|
||||
hl.exec_cmd("systemctl --user start hyprpolkitagent")
|
||||
hl.exec_cmd("swaync")
|
||||
hl.exec_cmd("steam -silent")
|
||||
hl.exec_cmd("flatpak run com.discordapp.Discord --start-minimized")
|
||||
hl.exec_cmd("iio-hyprland --left-master eDP-1")
|
||||
end)
|
||||
Reference in new issue
Block a user