Cleaning up
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
column_width = 160
|
column_width = 80
|
||||||
line_endings = "Unix"
|
line_endings = "Unix"
|
||||||
indent_type = "Spaces"
|
indent_type = "Spaces"
|
||||||
indent_width = 4
|
indent_width = 4
|
||||||
quote_style = "AutoPreferSingle"
|
quote_style = "AutoPreferSingle"
|
||||||
call_parentheses = "None"
|
call_parentheses = "None"
|
||||||
|
collapse_simple_statement = "Never"
|
||||||
|
|||||||
+51
-115
@@ -1,83 +1,78 @@
|
|||||||
-- Browser types
|
-- Browser types
|
||||||
hl.window_rule {
|
local function add_tag_to_matching_class(class, tag)
|
||||||
name = 'chromium-browser-tags',
|
hl.window_rule {
|
||||||
tag = '+chromium-based-browser',
|
tag = '+' .. tag,
|
||||||
match = {
|
match = {
|
||||||
class = '((google-)?[cC]hrom(e|ium)|[bB]rave-browser|[mM]icrosoft-edge|Vivaldi-stable|helium)',
|
class = class,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
hl.window_rule {
|
end
|
||||||
name = 'firefox-tags',
|
|
||||||
tag = '+firefox-based-browser',
|
|
||||||
match = {
|
|
||||||
class = '([fF]irefox|zen|librewolf)',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
hl.window_rule {
|
local function add_tag_to_matching_tag(match_tag, tag)
|
||||||
name = 'chromium-browser-opacity-tags',
|
hl.window_rule {
|
||||||
tag = '-default-opacity',
|
tag = '+' .. tag,
|
||||||
match = {
|
match = {
|
||||||
tag = 'chromium-based-browser',
|
tag = match_tag,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
hl.window_rule {
|
end
|
||||||
name = 'firefox-browser-opacity-tags',
|
|
||||||
tag = '-default-opacity',
|
local function remove_tag_from_matching_class(class, tag)
|
||||||
|
hl.window_rule {
|
||||||
|
tag = '-' .. tag,
|
||||||
match = {
|
match = {
|
||||||
tag = 'firefox-based-browser',
|
class = class,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
local function remove_tag_from_matching_tag(match_tag, tag)
|
||||||
|
hl.window_rule {
|
||||||
|
tag = '-' .. tag,
|
||||||
|
match = {
|
||||||
|
tag = match_tag,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
add_tag_to_matching_class(
|
||||||
|
'((google-)?[cC]hrom(e|ium)|[bB]rave-browser|[mM]icrosoft-edge|Vivaldi-stable|helium)',
|
||||||
|
'chromium-based-browser'
|
||||||
|
)
|
||||||
|
add_tag_to_matching_class('([fF]irefox|zen|librewolf)', 'firefox-based-browser')
|
||||||
|
remove_tag_from_matching_tag('chromium-based-browser', 'default-opacity')
|
||||||
|
remove_tag_from_matching_tag('firefox-based-browser', 'default-opacity')
|
||||||
|
|
||||||
-- Video apps: remove chromium browser tag so they don't get opacity applied
|
-- Video apps: remove chromium browser tag so they don't get opacity applied
|
||||||
hl.window_rule {
|
remove_tag_from_matching_class(
|
||||||
name = 'video-apps-no-browser-tag',
|
'(chrome-youtube.com__-Default|chrome-app.zoom.us__wc_home-Default)',
|
||||||
tag = '-chromium-based-browser',
|
'chromium-based-browser'
|
||||||
match = {
|
)
|
||||||
class = '(chrome-youtube.com__-Default|chrome-app.zoom.us__wc_home-Default)',
|
remove_tag_from_matching_class(
|
||||||
},
|
'(chrome-youtube.com__-Default|chrome-app.zoom.us__wc_home-Default)',
|
||||||
}
|
'default-opacity'
|
||||||
hl.window_rule {
|
)
|
||||||
name = 'video-apps-no-opacity-tag',
|
|
||||||
tag = '-default-opacity',
|
|
||||||
match = {
|
|
||||||
class = '(chrome-youtube.com__-Default|chrome-app.zoom.us__wc_home-Default)',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Force chromium-based browsers into a tile to deal with --app bug
|
-- Force chromium-based browsers into a tile to deal with --app bug
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'chromium-tile',
|
|
||||||
tile = true,
|
tile = true,
|
||||||
match = {
|
match = { tag = 'chromium-based-browser' },
|
||||||
tag = 'chromium-based-browser',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Only a subtle opacity change, but not for video sites
|
-- Only a subtle opacity change, but not for video sites
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'chromium-browser-subtle-opacity',
|
|
||||||
opacity = '1.0 0.97',
|
opacity = '1.0 0.97',
|
||||||
match = {
|
match = {
|
||||||
tag = 'chromium-based-browser',
|
tag = 'chromium-based-browser',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'firefox-browser-subtle-opacity',
|
|
||||||
opacity = '1.0 0.97',
|
opacity = '1.0 0.97',
|
||||||
match = {
|
match = {
|
||||||
tag = 'firefox-based-browser',
|
tag = 'firefox-based-browser',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
hl.window_rule {
|
|
||||||
name = 'geforce-now',
|
|
||||||
idle_inhibit = 'fullscreen',
|
|
||||||
match = {
|
|
||||||
class = 'GeForceNOW',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Remove 1px border around hyprshot screenshots
|
-- Remove 1px border around hyprshot screenshots
|
||||||
hl.layer_rule {
|
hl.layer_rule {
|
||||||
name = 'no-anim-for-selection',
|
name = 'no-anim-for-selection',
|
||||||
@@ -88,8 +83,6 @@ hl.layer_rule {
|
|||||||
-- Jetbrains
|
-- Jetbrains
|
||||||
-- Fix splash screen showing in weird places and prevent annoying focus takeovers
|
-- Fix splash screen showing in weird places and prevent annoying focus takeovers
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'jetbrains-splash',
|
|
||||||
tag = '+jetbrains-splash',
|
|
||||||
center = true,
|
center = true,
|
||||||
no_focus = true,
|
no_focus = true,
|
||||||
border_size = 0,
|
border_size = 0,
|
||||||
@@ -102,7 +95,6 @@ hl.window_rule {
|
|||||||
|
|
||||||
-- Center popups/find windows
|
-- Center popups/find windows
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'jetbrains-popups',
|
|
||||||
center = true,
|
center = true,
|
||||||
stay_focused = true,
|
stay_focused = true,
|
||||||
border_size = 0,
|
border_size = 0,
|
||||||
@@ -172,34 +164,21 @@ hl.window_rule {
|
|||||||
tag = 'pip',
|
tag = 'pip',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- Retroarch
|
|
||||||
hl.window_rule {
|
|
||||||
name = 'retroarch-fullscreen',
|
|
||||||
fullscreen = true,
|
|
||||||
tag = '-default-opacity',
|
|
||||||
opacity = '1 1',
|
|
||||||
idle_inhibit = 'fullscreen',
|
|
||||||
match = {
|
|
||||||
class = 'com.libretro.RetroArch',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- Scratchpad apps
|
-- Scratchpad apps
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'spotify-scratchpad',
|
|
||||||
workspace = 'special:music',
|
workspace = 'special:music',
|
||||||
match = {
|
match = {
|
||||||
class = 'Spotify|psysonic',
|
class = 'Spotify|psysonic',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'comms-scratchpad',
|
|
||||||
workspace = 'special:comms',
|
workspace = 'special:comms',
|
||||||
match = {
|
match = {
|
||||||
class = '^(chrome-discord.com__channels_@me-Default|chrome-web.whatsapp.com__-Default|signal)$',
|
class = '^(chrome-discord.com__channels_@me-Default|chrome-web.whatsapp.com__-Default|signal)$',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'superproductivity-scratchpad',
|
|
||||||
workspace = 'special:prod',
|
workspace = 'special:prod',
|
||||||
match = {
|
match = {
|
||||||
class = '^(superproductivity|org.station.notes)$',
|
class = '^(superproductivity|org.station.notes)$',
|
||||||
@@ -207,7 +186,6 @@ hl.window_rule {
|
|||||||
}
|
}
|
||||||
-- Float Nextcloud
|
-- Float Nextcloud
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'nextcloud-float',
|
|
||||||
float = true,
|
float = true,
|
||||||
match = {
|
match = {
|
||||||
class = 'com.nextcloud.desktopclient.nextcloud',
|
class = 'com.nextcloud.desktopclient.nextcloud',
|
||||||
@@ -215,7 +193,6 @@ hl.window_rule {
|
|||||||
}
|
}
|
||||||
-- Position drawing
|
-- Position drawing
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'krita-drawing',
|
|
||||||
tag = '-default-opacity',
|
tag = '-default-opacity',
|
||||||
opacity = '1 1',
|
opacity = '1 1',
|
||||||
no_initial_focus = true,
|
no_initial_focus = true,
|
||||||
@@ -227,24 +204,7 @@ hl.window_rule {
|
|||||||
modal = true,
|
modal = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- Float Steam
|
|
||||||
-- hl.window_rule {
|
|
||||||
-- name = 'steam-float',
|
|
||||||
-- float = true,
|
|
||||||
-- no_initial_focus = true,
|
|
||||||
-- idle_inhibit = 'fullscreen',
|
|
||||||
-- match = {
|
|
||||||
-- class = 'steam',
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
-- hl.window_rule {
|
|
||||||
-- name = 'steam-app-center',
|
|
||||||
-- center = true,
|
|
||||||
-- match = {
|
|
||||||
-- class = 'steam',
|
|
||||||
-- title = 'Steam',
|
|
||||||
-- },
|
|
||||||
-- }
|
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'steam-opacity',
|
name = 'steam-opacity',
|
||||||
tag = '-default-opacity',
|
tag = '-default-opacity',
|
||||||
@@ -261,27 +221,11 @@ hl.window_rule {
|
|||||||
title = 'Friends List',
|
title = 'Friends List',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- Float Lunar Client
|
|
||||||
hl.window_rule {
|
|
||||||
name = 'atlauncher-float',
|
|
||||||
float = true,
|
|
||||||
center = true,
|
|
||||||
size = { 1100, 700 },
|
|
||||||
tag = '-default-opacity',
|
|
||||||
opacity = '1 1',
|
|
||||||
idle_inhibit = 'fullscreen',
|
|
||||||
match = {
|
|
||||||
class = 'atlauncher',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- Floating windows
|
-- Floating windows
|
||||||
hl.window_rule {
|
add_tag_to_matching_class(
|
||||||
name = 'floating-window-tags',
|
'(org.station.bluetui|org.station.impala|org.station.wiremix|org.station.btop|org.station.terminal|org.station.bash|org.gnome.NautilusPreviewer|org.gnome.Evince|com.gabm.satty|Station|About|TUI.float|imv|mpv)',
|
||||||
tag = '+floating-window',
|
'floating-window'
|
||||||
match = {
|
)
|
||||||
class = '(org.station.bluetui|org.station.impala|org.station.wiremix|org.station.btop|org.station.terminal|org.station.bash|org.gnome.NautilusPreviewer|org.gnome.Evince|com.gabm.satty|Station|About|TUI.float|imv|mpv)',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'floating-dialog-tags',
|
name = 'floating-dialog-tags',
|
||||||
tag = '+floating-window',
|
tag = '+floating-window',
|
||||||
@@ -343,14 +287,6 @@ hl.window_rule {
|
|||||||
tag = 'noidle',
|
tag = 'noidle',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- Prevent Telegram from stealing focus on new messages
|
|
||||||
hl.window_rule {
|
|
||||||
name = 'telegram-no-focus-steal',
|
|
||||||
focus_on_activate = false,
|
|
||||||
match = {
|
|
||||||
class = 'org.telegram.desktop',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
-- Define terminal tag to style them uniformly
|
-- Define terminal tag to style them uniformly
|
||||||
hl.window_rule {
|
hl.window_rule {
|
||||||
name = 'terminal-tags',
|
name = 'terminal-tags',
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
hl.on('hyprland.start', function()
|
hl.on('hyprland.start', function()
|
||||||
|
notify('Hyprland started', 5000)
|
||||||
exec 'uwsm-app -- hypridle'
|
exec 'uwsm-app -- hypridle'
|
||||||
exec 'uwsm-app -- mako'
|
exec 'uwsm-app -- mako'
|
||||||
exec 'uwsm-app -- fcitx5 --disable notificationitem'
|
exec 'uwsm-app -- fcitx5 --disable notificationitem'
|
||||||
exec 'uwsm-app -- Enpass -minimize'
|
|
||||||
exec 'uwsm-app -- steam'
|
|
||||||
exec 'nextcloud'
|
exec 'nextcloud'
|
||||||
exec 'station-bg-random'
|
|
||||||
exec '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1'
|
exec '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1'
|
||||||
exec 'dbus-update-activation-environment --systemd --all'
|
exec 'dbus-update-activation-environment --systemd --all'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user