aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-08-22 12:00:23 +0200
committerMosder <xmosder12@gmail.com>2026-08-22 12:00:23 +0200
commit3b066826b2bc0856fb36ada1070973133f775a1d (patch)
treef468a355638ffe72c222f147aa0a4655b788b2a5 /common
parenta406ba6f9f2b6c8e4fa76ef1eb77c4825b4f18b8 (diff)
fuck you Vaxry
Diffstat (limited to 'common')
-rw-r--r--common/home/mosder/.config/hypr/conf/vars.lua43
-rw-r--r--common/home/mosder/.config/hypr/hyprland.lua338
-rwxr-xr-xcommon/home/mosder/.config/hypr/scripts/zoom.sh2
-rw-r--r--common/home/mosder/.stylua.toml7
4 files changed, 185 insertions, 205 deletions
diff --git a/common/home/mosder/.config/hypr/conf/vars.lua b/common/home/mosder/.config/hypr/conf/vars.lua
index 5489d35..73e0431 100644
--- a/common/home/mosder/.config/hypr/conf/vars.lua
+++ b/common/home/mosder/.config/hypr/conf/vars.lua
@@ -2,29 +2,26 @@
---- VARIABLES ----
-------------------
--- Shared between hyprland.lua and every file it requires.
--- Get them with: local vars = require("conf.vars")
-
return {
- -- Files and locations
- scripts_dir = os.getenv("HOME") .. "/.config/hypr/scripts",
- log_file = os.getenv("HOME") .. "/.hypr.log",
+ -- Files and locations
+ scripts_dir = os.getenv 'HOME' .. '/.config/hypr/scripts',
+ log_file = os.getenv 'HOME' .. '/.hypr.log',
- -- Used programs
- browser = "brave --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-features=UseChromeOSDirectVideoDecoder",
- discord = "discord --enable-features=UseOzonePlatform --ozone-platform=wayland",
- terminal = "wezterm",
- editor = "nvim",
- steam = "steam",
- file_manager = "thunar",
- menu = "wofi",
- lockscreen = "hyprlock",
- status_bar = "waybar",
- wallpaper_manager = "hyprpaper",
- idle_manager = "hypridle",
- automount = "udiskie",
- osd = "swayosd",
- notification_daemon = "dunst",
- color_picker = "hyprpicker",
- screenshot = "hyprshot",
+ -- Used programs
+ browser = 'brave --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-features=UseChromeOSDirectVideoDecoder',
+ discord = 'discord --enable-features=UseOzonePlatform --ozone-platform=wayland',
+ terminal = 'wezterm',
+ editor = 'nvim',
+ steam = 'steam',
+ file_manager = 'thunar',
+ menu = 'wofi',
+ lockscreen = 'hyprlock',
+ status_bar = 'waybar',
+ wallpaper_manager = 'hyprpaper',
+ idle_manager = 'hypridle',
+ automount = 'udiskie',
+ osd = 'swayosd',
+ notification_daemon = 'dunst',
+ color_picker = 'hyprpicker',
+ screenshot = 'hyprshot',
}
diff --git a/common/home/mosder/.config/hypr/hyprland.lua b/common/home/mosder/.config/hypr/hyprland.lua
index 4e54a39..406c1af 100644
--- a/common/home/mosder/.config/hypr/hyprland.lua
+++ b/common/home/mosder/.config/hypr/hyprland.lua
@@ -1,274 +1,250 @@
--------------------
----- VARIABLES ----
--------------------
-
--- Files, locations and used programs live in conf/vars.lua so that every
--- required file can get to them as well.
-local vars = require("conf.vars")
+local vars = require 'conf.vars'
-----------------------
---- ENV VARIABLES ----
-----------------------
-require("conf.env")
+require 'conf.env'
-- Gtk - nwglook
-hl.env("GTK_THEME", "catppuccin-mocha-mauve-standard+default")
+hl.env('GTK_THEME', 'catppuccin-mocha-mauve-standard+default')
-- Qt - adwaita dark
-hl.env("QT_QPA_PLATFORM", "wayland")
-hl.env("QT_QPA_PLATFORMTHEME", "qt5ct")
+hl.env('QT_QPA_PLATFORM', 'wayland')
+hl.env('QT_QPA_PLATFORMTHEME', 'qt5ct')
-- Cursor
-hl.env("XCURSOR_THEME", "rose-pine-cursor")
-hl.env("XCURSOR_SIZE", "24")
-hl.env("HYPRCURSOR_THEME", "rose-pine-hyprcursor")
-hl.env("HYPRCURSOR_SIZE", "24")
+hl.env('XCURSOR_THEME', 'rose-pine-cursor')
+hl.env('XCURSOR_SIZE', '24')
+hl.env('HYPRCURSOR_THEME', 'rose-pine-hyprcursor')
+hl.env('HYPRCURSOR_SIZE', '24')
-- Misc
-hl.env("EDITOR", vars.editor)
-hl.env("MAX_ZOOM", "3")
+hl.env('EDITOR', vars.editor)
+hl.env('MAX_ZOOM', '3')
------------------
---- MONITORS ----
------------------
-require("conf.monitors")
+require 'conf.monitors'
-------------------
---- AUTOSTART ----
-------------------
-require("conf.autostart")
+require 'conf.autostart'
-hl.on("hyprland.start", function()
- -- Utils
- hl.exec_cmd("systemctl --user start hyprpolkitagent")
- hl.exec_cmd(vars.status_bar)
- hl.exec_cmd(vars.wallpaper_manager)
- hl.exec_cmd(vars.idle_manager)
- hl.exec_cmd(vars.automount)
- hl.exec_cmd(vars.osd .. "-server")
+hl.on('hyprland.start', function()
+ -- Utils
+ hl.exec_cmd 'systemctl --user start hyprpolkitagent'
+ hl.exec_cmd(vars.status_bar)
+ hl.exec_cmd(vars.wallpaper_manager)
+ hl.exec_cmd(vars.idle_manager)
+ hl.exec_cmd(vars.automount)
+ hl.exec_cmd(vars.osd .. '-server')
- -- Programs
- hl.dispatch(hl.dsp.exec_cmd(vars.browser, { workspace = "1 silent" }))
- hl.dispatch(hl.dsp.exec_cmd(vars.discord, { workspace = "2 silent" }))
- hl.dispatch(hl.dsp.exec_cmd(vars.terminal, { workspace = "3 silent" }))
+ -- Programs
+ hl.dispatch(hl.dsp.exec_cmd(vars.browser, { workspace = '1 silent' }))
+ hl.dispatch(hl.dsp.exec_cmd(vars.discord, { workspace = '2 silent' }))
+ hl.dispatch(hl.dsp.exec_cmd(vars.terminal, { workspace = '3 silent' }))
- -- Use lockscreen as login
- hl.exec_cmd(vars.lockscreen)
+ -- Use lockscreen as login
+ hl.exec_cmd(vars.lockscreen)
end)
--------------------
---- CATEGORIES ----
--------------------
-hl.config({
- general = {
- gaps_in = 1,
- gaps_out = 1,
+hl.config {
+ general = {
+ gaps_in = 1,
+ gaps_out = 1,
- col = {
- active_border = { colors = { "rgb(df00ff)", "rgb(ff10f0)" }, angle = 45 },
- inactive_border = "rgba(595959aa)",
- },
+ col = {
+ active_border = { colors = { 'rgb(df00ff)', 'rgb(ff10f0)' }, angle = 45 },
+ inactive_border = 'rgba(595959aa)',
+ },
- no_focus_fallback = true,
- },
+ no_focus_fallback = true,
+ },
- animations = {
- enabled = true,
- },
+ animations = {
+ enabled = true,
+ },
- input = {
- kb_layout = "pl",
+ input = {
+ kb_layout = 'pl',
- kb_options = "caps:escape",
+ kb_options = 'caps:escape',
- numlock_by_default = true,
+ numlock_by_default = true,
- repeat_rate = 40,
- repeat_delay = 400,
+ repeat_rate = 45,
+ repeat_delay = 300,
- follow_mouse = 2,
- },
+ follow_mouse = 2,
+ },
- misc = {
- disable_hyprland_logo = true,
+ misc = {
+ disable_hyprland_logo = true,
- focus_on_activate = false,
+ focus_on_activate = false,
- middle_click_paste = false,
- },
+ middle_click_paste = false,
+ },
- cursor = {
- zoom_rigid = true,
- },
+ cursor = {
+ zoom_rigid = true,
+ },
- ecosystem = {
- no_donation_nag = true,
- },
+ ecosystem = {
+ no_donation_nag = true,
+ },
- dwindle = {
- force_split = 2,
- preserve_split = true,
- },
-})
+ dwindle = {
+ force_split = 2,
+ preserve_split = true,
+ },
+}
-hl.curve("easeOutQuint", { type = "bezier", points = { { 0.23, 1 }, { 0.32, 1 } } })
-hl.curve("easeInOutCubic", { type = "bezier", points = { { 0.65, 0.05 }, { 0.36, 1 } } })
-hl.curve("linear", { type = "bezier", points = { { 0, 0 }, { 1, 1 } } })
-hl.curve("almostLinear", { type = "bezier", points = { { 0.5, 0.5 }, { 0.75, 1 } } })
-hl.curve("quick", { type = "bezier", points = { { 0.15, 0 }, { 0.1, 1 } } })
+hl.curve('easeOutQuint', { type = 'bezier', points = { { 0.23, 1 }, { 0.32, 1 } } })
+hl.curve('easeInOutCubic', { type = 'bezier', points = { { 0.65, 0.05 }, { 0.36, 1 } } })
+hl.curve('linear', { type = 'bezier', points = { { 0, 0 }, { 1, 1 } } })
+hl.curve('almostLinear', { type = 'bezier', points = { { 0.5, 0.5 }, { 0.75, 1 } } })
+hl.curve('quick', { type = 'bezier', points = { { 0.15, 0 }, { 0.1, 1 } } })
-hl.animation({ leaf = "global", enabled = true, speed = 7.5, bezier = "default" })
-hl.animation({ leaf = "border", enabled = true, speed = 4.04, bezier = "easeOutQuint" })
-hl.animation({ leaf = "windows", enabled = true, speed = 3.59, bezier = "easeOutQuint" })
-hl.animation({ leaf = "windowsIn", enabled = true, speed = 3.07, bezier = "easeOutQuint", style = "popin 87%" })
-hl.animation({ leaf = "windowsOut", enabled = true, speed = 1.11, bezier = "linear", style = "popin 87%" })
-hl.animation({ leaf = "fadeIn", enabled = true, speed = 1.29, bezier = "almostLinear" })
-hl.animation({ leaf = "fadeOut", enabled = true, speed = 1.09, bezier = "almostLinear" })
-hl.animation({ leaf = "fade", enabled = true, speed = 2.27, bezier = "quick" })
-hl.animation({ leaf = "layers", enabled = true, speed = 2.85, bezier = "easeOutQuint" })
-hl.animation({ leaf = "layersIn", enabled = true, speed = 3, bezier = "easeOutQuint", style = "fade" })
-hl.animation({ leaf = "layersOut", enabled = true, speed = 1.12, bezier = "linear", style = "fade" })
-hl.animation({ leaf = "fadeLayersIn", enabled = true, speed = 1.34, bezier = "almostLinear" })
-hl.animation({ leaf = "fadeLayersOut", enabled = true, speed = 1.04, bezier = "almostLinear" })
-hl.animation({ leaf = "workspaces", enabled = true, speed = 1.45, bezier = "almostLinear", style = "fade" })
-hl.animation({ leaf = "workspacesIn", enabled = true, speed = 0.9, bezier = "almostLinear", style = "fade" })
-hl.animation({ leaf = "workspacesOut", enabled = true, speed = 1.45, bezier = "almostLinear", style = "fade" })
-hl.animation({ leaf = "zoomFactor", enabled = true, speed = 5.25, bezier = "quick" })
+hl.animation { leaf = 'global', enabled = true, speed = 7.5, bezier = 'default' }
+hl.animation { leaf = 'border', enabled = true, speed = 4.04, bezier = 'easeOutQuint' }
+hl.animation { leaf = 'windows', enabled = true, speed = 3.59, bezier = 'easeOutQuint' }
+hl.animation { leaf = 'windowsIn', enabled = true, speed = 3.07, bezier = 'easeOutQuint', style = 'popin 87%' }
+hl.animation { leaf = 'windowsOut', enabled = true, speed = 1.11, bezier = 'linear', style = 'popin 87%' }
+hl.animation { leaf = 'fadeIn', enabled = true, speed = 1.29, bezier = 'almostLinear' }
+hl.animation { leaf = 'fadeOut', enabled = true, speed = 1.09, bezier = 'almostLinear' }
+hl.animation { leaf = 'fade', enabled = true, speed = 2.27, bezier = 'quick' }
+hl.animation { leaf = 'layers', enabled = true, speed = 2.85, bezier = 'easeOutQuint' }
+hl.animation { leaf = 'layersIn', enabled = true, speed = 3, bezier = 'easeOutQuint', style = 'fade' }
+hl.animation { leaf = 'layersOut', enabled = true, speed = 1.12, bezier = 'linear', style = 'fade' }
+hl.animation { leaf = 'fadeLayersIn', enabled = true, speed = 1.34, bezier = 'almostLinear' }
+hl.animation { leaf = 'fadeLayersOut', enabled = true, speed = 1.04, bezier = 'almostLinear' }
+hl.animation { leaf = 'workspaces', enabled = true, speed = 1.45, bezier = 'almostLinear', style = 'fade' }
+hl.animation { leaf = 'workspacesIn', enabled = true, speed = 0.9, bezier = 'almostLinear', style = 'fade' }
+hl.animation { leaf = 'workspacesOut', enabled = true, speed = 1.45, bezier = 'almostLinear', style = 'fade' }
+hl.animation { leaf = 'zoomFactor', enabled = true, speed = 5.25, bezier = 'quick' }
-require("conf.categories")
+require 'conf.categories'
---------------
---- BINDS ----
---------------
-- General
-hl.bind("SUPER + Q", hl.dsp.window.close())
-hl.bind("SUPER + V", hl.dsp.layout("togglesplit"))
-hl.bind("SUPER + SHIFT + F", hl.dsp.window.float({ action = "toggle" }))
-hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), { mouse = true })
-hl.bind("SUPER + N", hl.dsp.exec_cmd("dunstctl close-all"))
-hl.bind("SUPER + slash", hl.dsp.exec_cmd(vars.lockscreen))
-hl.bind("ALT + space", hl.dsp.exec_cmd("pkill " .. vars.menu .. " || " .. vars.menu))
+hl.bind('SUPER + Q', hl.dsp.window.close())
+hl.bind('SUPER + V', hl.dsp.layout 'togglesplit')
+hl.bind('SUPER + SHIFT + F', hl.dsp.window.float { action = 'toggle' })
+hl.bind('SUPER + mouse:273', hl.dsp.window.resize(), { mouse = true })
+hl.bind('SUPER + N', hl.dsp.exec_cmd 'dunstctl close-all')
+hl.bind('SUPER + slash', hl.dsp.exec_cmd(vars.lockscreen))
+hl.bind('ALT + space', hl.dsp.exec_cmd('pkill ' .. vars.menu .. ' || ' .. vars.menu))
-- Launch programs
-hl.bind("SUPER + T", hl.dsp.exec_cmd(vars.terminal))
-hl.bind("SUPER + F", hl.dsp.exec_cmd(vars.file_manager))
-hl.bind("SUPER + C", hl.dsp.exec_cmd(vars.terminal .. " start -- " .. vars.editor))
-hl.bind("SUPER + B", hl.dsp.exec_cmd(vars.browser))
-hl.bind("SUPER + D", hl.dsp.exec_cmd(vars.discord))
-hl.bind("SUPER + S", hl.dsp.exec_cmd(vars.steam))
-hl.bind("SUPER + SHIFT + P", hl.dsp.exec_cmd(vars.color_picker .. " -a"))
-hl.bind("SUPER + SHIFT + M", hl.dsp.exec_cmd(vars.scripts_dir .. "/zoom.sh"))
+hl.bind('SUPER + T', hl.dsp.exec_cmd(vars.terminal))
+hl.bind('SUPER + F', hl.dsp.exec_cmd(vars.file_manager))
+hl.bind('SUPER + C', hl.dsp.exec_cmd(vars.terminal .. ' start -- ' .. vars.editor))
+hl.bind('SUPER + B', hl.dsp.exec_cmd(vars.browser))
+hl.bind('SUPER + D', hl.dsp.exec_cmd(vars.discord))
+hl.bind('SUPER + S', hl.dsp.exec_cmd(vars.steam))
+hl.bind('SUPER + SHIFT + P', hl.dsp.exec_cmd(vars.color_picker .. ' -a'))
+hl.bind('SUPER + SHIFT + M', hl.dsp.exec_cmd(vars.scripts_dir .. '/zoom.sh'))
-- Take screenshots
-hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd(vars.screenshot .. " -m region --clipboard-only"))
+hl.bind('SUPER + SHIFT + S', hl.dsp.exec_cmd(vars.screenshot .. ' -m region --clipboard-only'))
-- Passthru keybinds to VMs
-hl.bind("SUPER + P", function()
- hl.dispatch(hl.dsp.exec_cmd('notify-send "Entered passthru submap"'))
- hl.dispatch(hl.dsp.submap("passthru"))
-end)
-hl.define_submap("passthru", function()
- hl.bind("SUPER + P", hl.dsp.submap("reset"))
+hl.bind('SUPER + P', function()
+ hl.dispatch(hl.dsp.exec_cmd 'notify-send "Entered passthru submap"')
+ hl.dispatch(hl.dsp.submap 'passthru')
end)
+hl.define_submap('passthru', function() hl.bind('SUPER + P', hl.dsp.submap 'reset') end)
-- Move focus
-hl.bind("ALT + Tab", hl.dsp.window.cycle_next())
-hl.bind("SUPER + left", hl.dsp.focus({ direction = "l" }))
-hl.bind("SUPER + down", hl.dsp.focus({ direction = "d" }))
-hl.bind("SUPER + up", hl.dsp.focus({ direction = "u" }))
-hl.bind("SUPER + right", hl.dsp.focus({ direction = "r" }))
-hl.bind("SUPER + H", hl.dsp.focus({ direction = "l" }))
-hl.bind("SUPER + J", hl.dsp.focus({ direction = "d" }))
-hl.bind("SUPER + K", hl.dsp.focus({ direction = "u" }))
-hl.bind("SUPER + L", hl.dsp.focus({ direction = "r" }))
+hl.bind('ALT + Tab', hl.dsp.window.cycle_next())
+hl.bind('SUPER + left', hl.dsp.focus { direction = 'l' })
+hl.bind('SUPER + down', hl.dsp.focus { direction = 'd' })
+hl.bind('SUPER + up', hl.dsp.focus { direction = 'u' })
+hl.bind('SUPER + right', hl.dsp.focus { direction = 'r' })
+hl.bind('SUPER + H', hl.dsp.focus { direction = 'l' })
+hl.bind('SUPER + J', hl.dsp.focus { direction = 'd' })
+hl.bind('SUPER + K', hl.dsp.focus { direction = 'u' })
+hl.bind('SUPER + L', hl.dsp.focus { direction = 'r' })
-- Swap windows
-hl.bind("SUPER + SHIFT + left", hl.dsp.window.swap({ direction = "l" }))
-hl.bind("SUPER + SHIFT + down", hl.dsp.window.swap({ direction = "d" }))
-hl.bind("SUPER + SHIFT + up", hl.dsp.window.swap({ direction = "u" }))
-hl.bind("SUPER + SHIFT + right", hl.dsp.window.swap({ direction = "r" }))
-hl.bind("SUPER + SHIFT + H", hl.dsp.window.swap({ direction = "l" }))
-hl.bind("SUPER + SHIFT + J", hl.dsp.window.swap({ direction = "d" }))
-hl.bind("SUPER + SHIFT + K", hl.dsp.window.swap({ direction = "u" }))
-hl.bind("SUPER + SHIFT + L", hl.dsp.window.swap({ direction = "r" }))
+hl.bind('SUPER + SHIFT + left', hl.dsp.window.swap { direction = 'l' })
+hl.bind('SUPER + SHIFT + down', hl.dsp.window.swap { direction = 'd' })
+hl.bind('SUPER + SHIFT + up', hl.dsp.window.swap { direction = 'u' })
+hl.bind('SUPER + SHIFT + right', hl.dsp.window.swap { direction = 'r' })
+hl.bind('SUPER + SHIFT + H', hl.dsp.window.swap { direction = 'l' })
+hl.bind('SUPER + SHIFT + J', hl.dsp.window.swap { direction = 'd' })
+hl.bind('SUPER + SHIFT + K', hl.dsp.window.swap { direction = 'u' })
+hl.bind('SUPER + SHIFT + L', hl.dsp.window.swap { direction = 'r' })
-- Resize windows manually
-hl.bind("SUPER + R", function()
- hl.dispatch(hl.dsp.exec_cmd('notify-send "Entered resize submap"'))
- hl.dispatch(hl.dsp.submap("resize"))
+hl.bind('SUPER + R', function()
+ hl.dispatch(hl.dsp.exec_cmd 'notify-send "Entered resize submap"')
+ hl.dispatch(hl.dsp.submap 'resize')
end)
-hl.define_submap("resize", function()
- hl.bind("left", hl.dsp.window.resize({ x = -10, y = 0, relative = true }), { repeating = true })
- hl.bind("down", hl.dsp.window.resize({ x = 0, y = 10, relative = true }), { repeating = true })
- hl.bind("up", hl.dsp.window.resize({ x = 0, y = -10, relative = true }), { repeating = true })
- hl.bind("right", hl.dsp.window.resize({ x = 10, y = 0, relative = true }), { repeating = true })
- hl.bind("H", hl.dsp.window.resize({ x = -10, y = 0, relative = true }), { repeating = true })
- hl.bind("J", hl.dsp.window.resize({ x = 0, y = 10, relative = true }), { repeating = true })
- hl.bind("K", hl.dsp.window.resize({ x = 0, y = -10, relative = true }), { repeating = true })
- hl.bind("L", hl.dsp.window.resize({ x = 10, y = 0, relative = true }), { repeating = true })
- hl.bind("Escape", hl.dsp.submap("reset"))
- hl.bind("Return", hl.dsp.submap("reset"))
- hl.bind("CTRL + C", hl.dsp.submap("reset"))
- hl.bind("SUPER + R", hl.dsp.submap("reset"))
+hl.define_submap('resize', function()
+ hl.bind('left', hl.dsp.window.resize { x = -10, y = 0, relative = true }, { repeating = true })
+ hl.bind('down', hl.dsp.window.resize { x = 0, y = 10, relative = true }, { repeating = true })
+ hl.bind('up', hl.dsp.window.resize { x = 0, y = -10, relative = true }, { repeating = true })
+ hl.bind('right', hl.dsp.window.resize { x = 10, y = 0, relative = true }, { repeating = true })
+ hl.bind('H', hl.dsp.window.resize { x = -10, y = 0, relative = true }, { repeating = true })
+ hl.bind('J', hl.dsp.window.resize { x = 0, y = 10, relative = true }, { repeating = true })
+ hl.bind('K', hl.dsp.window.resize { x = 0, y = -10, relative = true }, { repeating = true })
+ hl.bind('L', hl.dsp.window.resize { x = 10, y = 0, relative = true }, { repeating = true })
+ hl.bind('Escape', hl.dsp.submap 'reset')
+ hl.bind('Return', hl.dsp.submap 'reset')
+ hl.bind('CTRL + C', hl.dsp.submap 'reset')
+ hl.bind('SUPER + R', hl.dsp.submap 'reset')
end)
-- Switch workspaces
-- Move active window to a workspace
for i = 1, 10 do
- local key = i % 10 -- 10 maps to key 0
- hl.bind("SUPER + " .. key, hl.dsp.focus({ workspace = i }))
- hl.bind("SUPER + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
+ local key = i % 10
+ hl.bind('SUPER + ' .. key, hl.dsp.focus { workspace = i })
+ hl.bind('SUPER + SHIFT + ' .. key, hl.dsp.window.move { workspace = i })
end
-- Move current workspace to another monitor
-hl.bind("SUPER + M", hl.dsp.workspace.move({ monitor = "+1" }))
+hl.bind('SUPER + M', hl.dsp.workspace.move { monitor = '+1' })
-- Volume controls
-hl.bind(
- "XF86AudioRaiseVolume",
- hl.dsp.exec_cmd(vars.osd .. "-client --output-volume raise --max-volume 95"),
- { locked = true, repeating = true }
-)
-hl.bind(
- "XF86AudioLowerVolume",
- hl.dsp.exec_cmd(vars.osd .. "-client --output-volume lower"),
- { locked = true, repeating = true }
-)
-hl.bind(
- "XF86AudioMute",
- hl.dsp.exec_cmd(vars.osd .. "-client --output-volume mute-toggle"),
- { locked = true, repeating = true }
-)
-hl.bind(
- "XF86AudioMicMute",
- hl.dsp.exec_cmd(vars.osd .. "-client --input-volume mute-toggle"),
- { locked = true, repeating = true }
-)
+hl.bind('XF86AudioRaiseVolume', hl.dsp.exec_cmd(vars.osd .. '-client --output-volume raise --max-volume 95'), { locked = true, repeating = true })
+hl.bind('XF86AudioLowerVolume', hl.dsp.exec_cmd(vars.osd .. '-client --output-volume lower'), { locked = true, repeating = true })
+hl.bind('XF86AudioMute', hl.dsp.exec_cmd(vars.osd .. '-client --output-volume mute-toggle'), { locked = true, repeating = true })
+hl.bind('XF86AudioMicMute', hl.dsp.exec_cmd(vars.osd .. '-client --input-volume mute-toggle'), { locked = true, repeating = true })
-- Player controls
-hl.bind("XF86AudioNext", hl.dsp.exec_cmd(vars.osd .. "-client --playerctl next"), { locked = true })
-hl.bind("XF86AudioPause", hl.dsp.exec_cmd(vars.osd .. "-client --playerctl play-pause"), { locked = true })
-hl.bind("XF86AudioPlay", hl.dsp.exec_cmd(vars.osd .. "-client --playerctl play-pause"), { locked = true })
-hl.bind("XF86AudioPrev", hl.dsp.exec_cmd(vars.osd .. "-client --playerctl previous"), { locked = true })
+hl.bind('XF86AudioNext', hl.dsp.exec_cmd(vars.osd .. '-client --playerctl next'), { locked = true })
+hl.bind('XF86AudioPause', hl.dsp.exec_cmd(vars.osd .. '-client --playerctl play-pause'), { locked = true })
+hl.bind('XF86AudioPlay', hl.dsp.exec_cmd(vars.osd .. '-client --playerctl play-pause'), { locked = true })
+hl.bind('XF86AudioPrev', hl.dsp.exec_cmd(vars.osd .. '-client --playerctl previous'), { locked = true })
-require("conf.binds")
+require 'conf.binds'
--------------------------------
---- WINDOWS AND WORKSPACES ----
--------------------------------
-require("conf.rules")
+require 'conf.rules'
-- Force discord to stay at 2nd workspace
-hl.window_rule({ match = { class = "^(discord)$" }, workspace = "2 silent" })
+hl.window_rule { match = { class = '^(discord)$' }, workspace = '2 silent' }
-- Force steam to stay at 5th workspace
-hl.window_rule({ match = { class = "^(steam)$" }, workspace = "5 silent" })
+hl.window_rule { match = { class = '^(steam)$' }, workspace = '5 silent' }
-- Ignore maximize requests from apps
-hl.window_rule({ match = { class = ".*" }, suppress_event = "maximize" })
+hl.window_rule { match = { class = '.*' }, suppress_event = 'maximize' }
diff --git a/common/home/mosder/.config/hypr/scripts/zoom.sh b/common/home/mosder/.config/hypr/scripts/zoom.sh
index 1bb07f6..07f006f 100755
--- a/common/home/mosder/.config/hypr/scripts/zoom.sh
+++ b/common/home/mosder/.config/hypr/scripts/zoom.sh
@@ -3,7 +3,7 @@
ZOOM=$(hyprctl repl 'hl.get_config("cursor.zoom_factor")')
ZOOM=$(echo "scale=0; ($ZOOM+1)/1" | bc)
if [[ $ZOOM -gt $MAX_ZOOM ]]; then
- ZOOM=1
+ ZOOM=1
fi
hyprctl -q eval "hl.config({ cursor = { zoom_factor = $ZOOM } })"
diff --git a/common/home/mosder/.stylua.toml b/common/home/mosder/.stylua.toml
new file mode 100644
index 0000000..edfa506
--- /dev/null
+++ b/common/home/mosder/.stylua.toml
@@ -0,0 +1,7 @@
+column_width = 160
+line_endings = "Unix"
+indent_type = "Spaces"
+indent_width = 2
+quote_style = "AutoPreferSingle"
+call_parentheses = "None"
+collapse_simple_statement = "Always"