Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions configs/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

# Make sure to customize monitors! This is just my setup so you get an idea.
# run `hyprctl monitors all` to see all your monitors!!!
monitor=DP-2, 1920x1080@144.00, 0x250, 1
monitor=DP-4, 2560x1440@164.84, 1920x0, 1
monitor=eDP-1, 1920x1080@144.00, 0x0, 1
monitor=HDMI-A-1, 1920x1080@119.00, 1920x0, 1

# Startup programs, these are mine, most likely you'll have these as well.
exec-once = nm-applet
Expand All @@ -25,7 +25,7 @@ exec-once = hyprctl setcursor Hackneyed-24px 24

# Default programs, these are what I prefer.
$terminal = kitty
$fileManager = nemo
$fileManager = thunar

# TODO:
# This command calls the quickshell IPC to open the app launcher for the currently focused window.
Expand All @@ -47,7 +47,7 @@ env = HYPRCURSOR_SIZE,24
# Example keyboard/mouse input settings.
input {
# Switch layout with pressing: alt + shift
kb_layout = us,se
kb_layout = us,tr
kb_options = grp:alt_shift_toggle

# Set as needed
Expand Down Expand Up @@ -76,14 +76,14 @@ cursor {
# !!DESIGN!! #

animations {
enabled = false
enabled = true
}

# The gaps between windows, as well as border colors.
# proportional to the taskbar values.
general {
# Inner and Outer gaps between windows.
gaps_in = 5
gaps_in = 10
gaps_out = 10

# I prefer a thin border
Expand All @@ -105,11 +105,12 @@ general {
# Window Decorations! Shadow, Blur, etc.
decoration {
# 8px same as taskbar, change if wanted.
rounding = 0
rounding = 10
rounding_power = 10

# I want transparancy to not change, since we have the colored border.
active_opacity = 1.0
inactive_opacity = 1.0
active_opacity = 0.97
inactive_opacity = 0.95

# Window Shadow
shadow:enabled = true
Expand Down Expand Up @@ -151,21 +152,25 @@ misc {
# Windows key / Super key is the main modifier key. (abbreviated as mod)
$mainMod = SUPER

# mod + enter = start terminal
bind = $mainMod, Return, exec, $terminal
# mod + t = start terminal
bind = $mainMod, T, exec, $terminal
# mod + Q = kill current focused application
bind = $mainMod, Q, killactive,
# mod + shift + S = take screenshot of area, MUST HAVE HYPRSHOT INSTALLED!
bind = $mainMod SHIFT, S, exec, hyprshot --mode region --output-folder /tmp
# mod + E = open file manager (I prefer caja).
bind = $mainMod, E, exec, $fileManager
# mod + shift + space = Toggle focused window to be floating or tiled.
bind = $mainMod SHIFT, SPACE, togglefloating
bind = $mainMod ALT, SPACE, togglefloating
# mod + F = toggle focused window to full-screen view.
bind = $mainMod, F, fullscreen
# mod + D = toggle application launcher (I prefer wofi).
bind = $mainMod, D, exec, $menu

# mod + N = toggle notification history panel
bind = $mainMod, N, exec, quickshell ipc call notificationHistory toggleNotificationHistory

bind = $mainMod, W, exec, zen-browser

# Switch current workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
Expand Down Expand Up @@ -224,6 +229,7 @@ windowrulev2 = minsize 250 500, class:^(Unity)$, title:^(Font Asset Creator)$
windowrulev2 = minsize 500 250, class:^(Unity)$, title:^(Background Tasks)$



windowrulev2 = minsize 150 300, initialTitle:(UnityEditor.PopupWindow)
windowrulev2 = minsize 230 200, initialTitle:(UnityEditor.AddComponent.AddComponentWindow)
windowrulev2 = minsize 500 500, initialTitle:(UnityEngine.InputSystem.Editor.AdvancedDropdownWindow)
Expand All @@ -243,3 +249,4 @@ windowrulev2 = move cursor, class:^(Unity)$, title:^(HDR Color)$

# Fix dragging issues with XWayland
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

178 changes: 178 additions & 0 deletions configs/hypr/hyprlock.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# Linux Retroism - Hyprlock Theme
# 1980-1990's Retro UI Aesthetic

background {
monitor =
path = screenshot
blur_passes = 4
blur_size = 8
brightness = 0.5
}

# ═══════════ TOP FRAME ═══════════
label {
monitor =
text = ╔══════════════════════════════════════╗
color = rgb(f0e2d3)
font_size = 16
font_family = monospace
position = 0, 200
halign = center
valign = center
}

# Title bar
label {
monitor =
text = ║═══════ 🔒 SYSTEM LOCKED ═══════║
color = rgb(f0e2d3)
font_size = 16
font_family = monospace
position = 0, 175
halign = center
valign = center
}

label {
monitor =
text = ╠══════════════════════════════════════╣
color = rgb(f0e2d3)
font_size = 16
font_family = monospace
position = 0, 150
halign = center
valign = center
}

# Time display
label {
monitor =
text = $TIME
color = rgb(626335)
font_size = 56
font_family = monospace
shadow_passes = 2
shadow_size = 3
shadow_color = rgb(3d3d39)
position = 0, 100
halign = center
valign = center
}

# Date
label {
monitor =
text = cmd[update:60000] date '+%A, %d %B %Y'
color = rgb(baafa1)
font_size = 14
font_family = monospace
position = 0, 55
halign = center
valign = center
}

# Separator
label {
monitor =
text = ────────────────────────
color = rgb(626335)
font_size = 14
font_family = monospace
position = 0, 30
halign = center
valign = center
}

# Username
label {
monitor =
text = $USER
color = rgb(f0e2d3)
font_size = 20
font_family = monospace
position = 0, 0
halign = center
valign = center
}

# Input field
input-field {
monitor =
size = 280, 45
outline_thickness = 3
dots_size = 0.3
dots_spacing = 0.15
dots_center = true
outer_color = rgb(626335)
inner_color = rgb(3d3d39)
font_color = rgb(f0e2d3)
fade_on_empty = false
placeholder_text = ▌Enter Password...
hide_input = false
rounding = 0
check_color = rgb(626335)
fail_color = rgb(ff854c)
capslock_color = rgb(ff854c)
position = 0, -50
halign = center
valign = center
}

# Hint
label {
monitor =
text = [ Press ENTER to unlock ]
color = rgb(baafa1)
font_size = 11
font_family = monospace
position = 0, -95
halign = center
valign = center
}

# Separator
label {
monitor =
text = ────────────────────────
color = rgb(626335)
font_size = 14
font_family = monospace
position = 0, -120
halign = center
valign = center
}

# System info
label {
monitor =
text = cmd[update:5000] echo "🔋 $(cat /sys/class/power_supply/BAT*/capacity 2>/dev/null | head -1)%" 2>/dev/null || echo "⚡ AC"
color = rgb(baafa1)
font_size = 11
font_family = monospace
position = -100, -145
halign = center
valign = center
}

label {
monitor =
text = cmd[update:0] hostname
color = rgb(baafa1)
font_size = 11
font_family = monospace
position = 100, -145
halign = center
valign = center
}

# ═══════════ BOTTOM FRAME ═══════════
label {
monitor =
text = ╚══════════════════════════════════════╝
color = rgb(f0e2d3)
font_size = 16
font_family = monospace
position = 0, -170
halign = center
valign = center
}
60 changes: 60 additions & 0 deletions configs/quickshell/Config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,64 @@ import Quickshell.Io
Singleton {
id: root

// Hyprland config values
property string hyprlandTerminal: "kitty"
property string hyprlandFileManager: "nautilus"
property string hyprlandConfigPath: "/home/ozhan/.config/hypr/hyprland.conf"

// Read hyprland.conf on startup
property string terminalOutput: ""
property string fileManagerOutput: ""

Process {
id: readTerminal
command: ["grep", "^\\$terminal", hyprlandConfigPath]
running: true
stdout: SplitParser {
onRead: data => { root.terminalOutput = data; }
}
onExited: {
var match = root.terminalOutput.match(/\$terminal\s*=\s*(.+)/);
if (match) hyprlandTerminal = match[1].trim();
}
}

Process {
id: readFileManager
command: ["grep", "^\\$fileManager", hyprlandConfigPath]
running: true
stdout: SplitParser {
onRead: data => { root.fileManagerOutput = data; }
}
onExited: {
var match = root.fileManagerOutput.match(/\$fileManager\s*=\s*(.+)/);
if (match) hyprlandFileManager = match[1].trim();
}
}

// Functions to update hyprland.conf
function setHyprlandTerminal(value) {
hyprlandTerminal = value;
updateTerminalProc.command = ["sed", "-i", "s/^\\$terminal = .*/$terminal = " + value + "/", hyprlandConfigPath];
updateTerminalProc.running = true;
}

function setHyprlandFileManager(value) {
hyprlandFileManager = value;
updateFileManagerProc.command = ["sed", "-i", "s/^\\$fileManager = .*/$fileManager = " + value + "/", hyprlandConfigPath];
updateFileManagerProc.running = true;
}

Process {
id: updateTerminalProc
onExited: console.log("Hyprland terminal updated")
}

Process {
id: updateFileManagerProc
onExited: console.log("Hyprland fileManager updated")
}

//*=======================================================================*/
// READ THIS NOTE:
// Simply add to this list in order to create your
Expand Down Expand Up @@ -77,6 +135,8 @@ Singleton {
}

property bool openSettingsWindow: false
property bool openPowerMenu: false
property bool openNotificationHistory: false

property alias settings: settingsJsonAdapter.settings
FileView {
Expand Down
4 changes: 3 additions & 1 deletion configs/quickshell/Time.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import QtQuick
Singleton {
id: root
readonly property string time: {
Qt.formatDateTime(clock.date, " MMM d yyyy | hh:mm");
Config.settings.militaryTimeClockFormat
? Qt.formatDateTime(clock.date, " MMM d yyyy | HH:mm")
: Qt.formatDateTime(clock.date, " MMM d yyyy | h:mm AP");
}

SystemClock {
Expand Down
Loading