forked from Shinonome/dots-hyprland
Merge branch 'main' into hefty-hype
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
# hyprlang noerror false
|
||||||
# You can put extra environment variables here
|
# You can put extra environment variables here
|
||||||
# https://wiki.hyprland.org/Configuring/Environment-variables/
|
# https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# hyprlang noerror false
|
||||||
# You can make apps auto-start here
|
# You can make apps auto-start here
|
||||||
# Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing
|
# Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# hyprlang noerror false
|
||||||
# Put general config stuff here
|
# Put general config stuff here
|
||||||
# Here's a list of every variable: https://wiki.hyprland.org/Configuring/Variables/
|
# Here's a list of every variable: https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# hyprlang noerror false
|
||||||
# See https://wiki.hyprland.org/Configuring/Binds/
|
# See https://wiki.hyprland.org/Configuring/Binds/
|
||||||
#!
|
#!
|
||||||
##! User
|
##! User
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# hyprlang noerror false
|
||||||
# You can put custom rules here
|
# You can put custom rules here
|
||||||
# Window/layer rules: https://wiki.hyprland.org/Configuring/Window-Rules/
|
# Window/layer rules: https://wiki.hyprland.org/Configuring/Window-Rules/
|
||||||
# Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
# Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
# hyprlang noerror false
|
||||||
# For all available variables, see ~/.config/hypr/hyprland/variables.conf
|
# For all available variables, see ~/.config/hypr/hyprland/variables.conf
|
||||||
|
|||||||
@@ -3,11 +3,15 @@
|
|||||||
|
|
||||||
# --- Environment variables ---
|
# --- Environment variables ---
|
||||||
source=hyprland/env.conf
|
source=hyprland/env.conf
|
||||||
|
# hyprlang noerror true
|
||||||
source=custom/env.conf
|
source=custom/env.conf
|
||||||
|
# hyprlang noerror false
|
||||||
|
|
||||||
# --- Other vars ---
|
# --- Other vars ---
|
||||||
source=hyprland/variables.conf
|
source=hyprland/variables.conf
|
||||||
|
# hyprlang noerror true
|
||||||
source=custom/variables.conf
|
source=custom/variables.conf
|
||||||
|
# hyprlang noerror false
|
||||||
|
|
||||||
# --- Defaults ---
|
# --- Defaults ---
|
||||||
# hyprlang if !dontLoadDefaultExecs
|
# hyprlang if !dontLoadDefaultExecs
|
||||||
@@ -27,10 +31,15 @@ source=hyprland/keybinds.conf
|
|||||||
# hyprlang endif
|
# hyprlang endif
|
||||||
|
|
||||||
# --- Custom ---
|
# --- Custom ---
|
||||||
|
# hyprlang noerror true
|
||||||
source=custom/execs.conf
|
source=custom/execs.conf
|
||||||
|
# hyprlang noerror true
|
||||||
source=custom/general.conf
|
source=custom/general.conf
|
||||||
|
# hyprlang noerror true
|
||||||
source=custom/rules.conf
|
source=custom/rules.conf
|
||||||
|
# hyprlang noerror true
|
||||||
source=custom/keybinds.conf
|
source=custom/keybinds.conf
|
||||||
|
# hyprlang noerror false
|
||||||
|
|
||||||
# --- nwg-displays support ---
|
# --- nwg-displays support ---
|
||||||
source=workspaces.conf
|
source=workspaces.conf
|
||||||
|
|||||||
@@ -72,10 +72,10 @@ decoration {
|
|||||||
shadow {
|
shadow {
|
||||||
enabled = true
|
enabled = true
|
||||||
ignore_window = true
|
ignore_window = true
|
||||||
range = 50
|
range = 20
|
||||||
offset = 0 4
|
offset = 0 2
|
||||||
render_power = 10
|
render_power = 10
|
||||||
color = rgba(00000027)
|
color = rgba(00000020)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Dim
|
# Dim
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
general {
|
general {
|
||||||
col.active_border = rgba({{colors.outline.default.hex_stripped}}77)
|
col.active_border = rgba({{colors.outline_variant.default.hex_stripped}}77)
|
||||||
col.inactive_border = rgba({{colors.outline_variant.default.hex_stripped}}55)
|
col.inactive_border = rgba({{colors.surface_container_low.default.hex_stripped}}33)
|
||||||
}
|
}
|
||||||
|
|
||||||
misc {
|
misc {
|
||||||
|
|||||||
@@ -223,9 +223,9 @@ Singleton {
|
|||||||
property JsonObject parallax: JsonObject {
|
property JsonObject parallax: JsonObject {
|
||||||
property bool vertical: false
|
property bool vertical: false
|
||||||
property bool autoVertical: false
|
property bool autoVertical: false
|
||||||
property bool enableWorkspace: true
|
property bool enableWorkspace: false
|
||||||
property real workspaceZoom: 1.0 // Relative to wallpaper size
|
property real workspaceZoom: 1.07 // Relative to wallpaper size
|
||||||
property bool enableSidebar: true
|
property bool enableSidebar: false
|
||||||
property real widgetsFactor: 1.2
|
property real widgetsFactor: 1.2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Item {
|
|||||||
z: 99
|
z: 99
|
||||||
required property Item target
|
required property Item target
|
||||||
property real fadeSize: Appearance.m3colors.darkmode ? 40 : 20
|
property real fadeSize: Appearance.m3colors.darkmode ? 40 : 20
|
||||||
property color color: ColorUtils.transparentize(Appearance.colors.colShadow, Appearance.m3colors.darkmode ? 0 : 0.7)
|
property color color: Appearance.colors.colLayer1Base
|
||||||
property bool vertical: true
|
property bool vertical: true
|
||||||
|
|
||||||
anchors.fill: target
|
anchors.fill: target
|
||||||
|
|||||||
@@ -48,9 +48,9 @@ Variants {
|
|||||||
const sensitiveNetwork = (CF.StringUtils.stringListContainsSubstring(Network.networkName.toLowerCase(), Config.options.workSafety.triggerCondition.networkNameKeywords));
|
const sensitiveNetwork = (CF.StringUtils.stringListContainsSubstring(Network.networkName.toLowerCase(), Config.options.workSafety.triggerCondition.networkNameKeywords));
|
||||||
return enabled && sensitiveWallpaper && sensitiveNetwork;
|
return enabled && sensitiveWallpaper && sensitiveNetwork;
|
||||||
}
|
}
|
||||||
readonly property real parallaxRation: 1.1
|
readonly property real parallaxRation: Config.options.background.parallax.workspaceZoom
|
||||||
readonly property real additionalScaleFactor: Config.options.background.parallax.workspaceZoom
|
property real minSuitableScale: 1 // Some reasonable init, to be updated
|
||||||
property real effectiveWallpaperScale: 1 // Some reasonable init value, to be updated
|
property real effectiveWallpaperScale: minSuitableScale * parallaxRation
|
||||||
property int wallpaperWidth: modelData.width // Some reasonable init value, to be updated
|
property int wallpaperWidth: modelData.width // Some reasonable init value, to be updated
|
||||||
property int wallpaperHeight: modelData.height // Some reasonable init value, to be updated
|
property int wallpaperHeight: modelData.height // Some reasonable init value, to be updated
|
||||||
property real scaledWallpaperWidth: wallpaperWidth * effectiveWallpaperScale
|
property real scaledWallpaperWidth: wallpaperWidth * effectiveWallpaperScale
|
||||||
@@ -119,8 +119,7 @@ Variants {
|
|||||||
// Small picture; scale > 1; will zoom in the picture
|
// Small picture; scale > 1; will zoom in the picture
|
||||||
// Big picture; scale < 1; will zoom out the picture
|
// Big picture; scale < 1; will zoom out the picture
|
||||||
// Choose max number so every side will fit
|
// Choose max number so every side will fit
|
||||||
const minSuitableScale = Math.max(screenWidth / width, screenHeight / height);
|
bgRoot.minSuitableScale = Math.max(screenWidth / width, screenHeight / height);
|
||||||
bgRoot.effectiveWallpaperScale = minSuitableScale * bgRoot.additionalScaleFactor * bgRoot.parallaxRation;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -167,16 +166,16 @@ Variants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
x: {
|
x: {
|
||||||
if (bgRoot.screen.width > bgRoot.scaledWallpaperWidth) {
|
if (bgRoot.screen.width > width) {
|
||||||
// Center the picture
|
// Center the picture
|
||||||
return (bgRoot.screen.width - bgRoot.scaledWallpaperWidth) / 2;
|
return (bgRoot.screen.width - width) / 2;
|
||||||
}
|
}
|
||||||
return - bgRoot.parallaxTotalPixelsX * usedFractionX;
|
return - bgRoot.parallaxTotalPixelsX * usedFractionX;
|
||||||
}
|
}
|
||||||
y: {
|
y: {
|
||||||
if (bgRoot.screen.height > bgRoot.scaledWallpaperHeight) {
|
if (bgRoot.screen.height > height) {
|
||||||
// Center the picture
|
// Center the picture
|
||||||
return (bgRoot.screen.height - bgRoot.scaledWallpaperHeight) / 2;
|
return (bgRoot.screen.height - height) / 2;
|
||||||
}
|
}
|
||||||
return - bgRoot.parallaxTotalPixelsY * usedFractionY;
|
return - bgRoot.parallaxTotalPixelsY * usedFractionY;
|
||||||
}
|
}
|
||||||
@@ -235,10 +234,10 @@ Variants {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
readonly property real parallaxFactor: {
|
readonly property real parallaxFactor: {
|
||||||
var f = Config.options.background.parallax.widgetsFactor;
|
var f = Config.options.background.parallax.widgetsFactor;
|
||||||
return f / Config.options.background.parallax.workspaceZoom;
|
return f / bgRoot.parallaxRation;
|
||||||
}
|
}
|
||||||
readonly property real baseWallpaperOffsetX: (bgRoot.screen.width - bgRoot.scaledWallpaperWidth) / 2
|
readonly property real baseWallpaperOffsetX: (bgRoot.screen.width - wallpaper.width) / 2
|
||||||
readonly property real baseWallpaperOffsetY: (bgRoot.screen.height - bgRoot.scaledWallpaperHeight) / 2
|
readonly property real baseWallpaperOffsetY: (bgRoot.screen.height - wallpaper.height) / 2
|
||||||
readonly property real wallpaperTotalOffsetX: wallpaper.x - baseWallpaperOffsetX
|
readonly property real wallpaperTotalOffsetX: wallpaper.x - baseWallpaperOffsetX
|
||||||
readonly property real wallpaperTotalOffsetY: wallpaper.y - baseWallpaperOffsetY
|
readonly property real wallpaperTotalOffsetY: wallpaper.y - baseWallpaperOffsetY
|
||||||
readonly property bool locked: GlobalStates.screenLocked
|
readonly property bool locked: GlobalStates.screenLocked
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ user_preferences:
|
|||||||
keybindings: "default" # default | vim
|
keybindings: "default" # default | vim
|
||||||
patterns:
|
patterns:
|
||||||
# Always install these files
|
# Always install these files
|
||||||
- from: "dots/.config/quickshell"
|
- from: "dots/.config/quickshell/ii"
|
||||||
to: "$XDG_CONFIG_HOME/quickshell"
|
to: "$XDG_CONFIG_HOME/quickshell/ii"
|
||||||
mode: "sync"
|
mode: "sync"
|
||||||
# Conditionally install these files
|
# Conditionally install these files
|
||||||
- from: "dots/.config/fish"
|
- from: "dots/.config/fish"
|
||||||
@@ -46,11 +46,8 @@ patterns:
|
|||||||
- from: "dots/.config/hypr"
|
- from: "dots/.config/hypr"
|
||||||
to: "$XDG_CONFIG_HOME/hypr"
|
to: "$XDG_CONFIG_HOME/hypr"
|
||||||
mode: "sync"
|
mode: "sync"
|
||||||
excludes: ["custom", "hyprlock.conf", "hypridle.conf", "hyprland.conf"]
|
excludes: ["custom", "hyprlock.conf", "hypridle.conf", "monitors.conf", "workspaces.conf"]
|
||||||
# Hyprland special files
|
# Hyprland special files
|
||||||
- from: "dots/.config/hypr/hyprland.conf"
|
|
||||||
to: "$XDG_CONFIG_HOME/hypr/hyprland.conf"
|
|
||||||
mode: "hard-backup"
|
|
||||||
- from: "dots/.config/hypr/hypridle.conf"
|
- from: "dots/.config/hypr/hypridle.conf"
|
||||||
to: "$XDG_CONFIG_HOME/hypr/hypridle.conf"
|
to: "$XDG_CONFIG_HOME/hypr/hypridle.conf"
|
||||||
mode: "soft-backup"
|
mode: "soft-backup"
|
||||||
|
|||||||
Reference in New Issue
Block a user