fixed hyprland + others...
This commit is contained in:
@@ -9,6 +9,7 @@ if status is-interactive
|
|||||||
alias nrs="sudo nixos-rebuild switch --flake /home/river/nixos-dotfiles#pc"
|
alias nrs="sudo nixos-rebuild switch --flake /home/river/nixos-dotfiles#pc"
|
||||||
alias config="nvim /home/river/nixos-dotfiles/hosts/pc/configuration.nix"
|
alias config="nvim /home/river/nixos-dotfiles/hosts/pc/configuration.nix"
|
||||||
alias v=nvim
|
alias v=nvim
|
||||||
|
alias y=yazi
|
||||||
end
|
end
|
||||||
|
|
||||||
function fish_greeting
|
function fish_greeting
|
||||||
|
|||||||
@@ -2,9 +2,7 @@ window-padding-x = 2
|
|||||||
|
|
||||||
font-family = "JetBrains Mono NL"
|
font-family = "JetBrains Mono NL"
|
||||||
|
|
||||||
macos-icon = custom
|
#theme = Catppuccin Mocha
|
||||||
macos-custom-icon = /Users/Maaz/.config/ghostty/Ghostty.icns
|
theme = Harper
|
||||||
|
|
||||||
theme = Catppuccin Mocha
|
|
||||||
|
|
||||||
font-size = 16
|
font-size = 16
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
local config = require("variables.lua")
|
local config = require("variables")
|
||||||
|
|
||||||
hl.on("hyprland.start", function ()
|
hl.on("hyprland.start", function ()
|
||||||
hl.exec_cmd("wayvnc 0.0.0.0 5900")
|
hl.exec_cmd("wayvnc 0.0.0.0 5900")
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
hl.config({
|
hl.config({
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 0,
|
rounding = 0,
|
||||||
rounding_power = 0,
|
rounding_power = 0,
|
||||||
|
|
||||||
-- Change transparency of focused and unfocused windows
|
-- Change transparency of focused and unfocused windows
|
||||||
active_opacity = 1.0,
|
active_opacity = 0.9,
|
||||||
inactive_opacity = 0.9,
|
inactive_opacity = 0.8,
|
||||||
|
|
||||||
shadow = {
|
shadow = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
size = 3,
|
size = 3,
|
||||||
passes = 1,
|
passes = 1,
|
||||||
vibrancy = 0.1696,
|
vibrancy = 0.1696,
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
local theme = require("themes.lua")
|
local theme = require("themes")
|
||||||
|
|
||||||
hl.config({
|
hl.config({
|
||||||
general = {
|
general = {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
require("autostart.lua")
|
require("autostart")
|
||||||
require("keybinds.lua")
|
require("keybinds")
|
||||||
require("monitor.lua")
|
require("monitor")
|
||||||
require("decoration.lua")
|
require("decoration")
|
||||||
require("general.lua")
|
require("general")
|
||||||
require("smart-gaps.lua")
|
require("smart-gaps")
|
||||||
require("inputs.lua")
|
require("inputs")
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
local config = require("variables.lua")
|
local config = require("variables")
|
||||||
|
|
||||||
|
|
||||||
local mainMod = "SUPER"
|
local mainMod = "SUPER"
|
||||||
|
|
||||||
|
|
||||||
-- Application Binds
|
-- Application Binds
|
||||||
hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(config.terminal))
|
hl.bind(mainMod .. " + Return", hl.dsp.exec_cmd(config.terminal))
|
||||||
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(config.file_manager))
|
hl.bind(mainMod .. " + E", hl.dsp.exec_cmd(config.file_manager))
|
||||||
hl.bind("ALT + SPACE", hl.dsp.exec_cmd(config.menu))
|
hl.bind("ALT + SPACE", hl.dsp.exec_cmd(config.menu))
|
||||||
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd(config.browser))
|
hl.bind(mainMod .. " + B", hl.dsp.exec_cmd(config.browser))
|
||||||
|
|
||||||
|
|
||||||
hl.bind(mainMod .. " + Q", hl.dsp.window.close())
|
hl.bind(mainMod .. " + Q", hl.dsp.window.close())
|
||||||
hl.bind(mainMod .. " + Escape", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"))
|
hl.bind(
|
||||||
|
mainMod .. " + Escape",
|
||||||
|
hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'")
|
||||||
|
)
|
||||||
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
||||||
hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit"))
|
hl.bind(mainMod .. " + J", hl.dsp.layout("togglesplit"))
|
||||||
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }))
|
hl.bind(mainMod .. " + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }))
|
||||||
@@ -20,33 +20,50 @@ hl.bind(mainMod .. " + I", hl.dsp.exec_cmd('ghostty -e bash -c "ollama"'))
|
|||||||
hl.bind(mainMod .. " + N", hl.dsp.exec_cmd('ghostty -e bash -c "nmtui"'))
|
hl.bind(mainMod .. " + N", hl.dsp.exec_cmd('ghostty -e bash -c "nmtui"'))
|
||||||
|
|
||||||
-- Window Binds
|
-- Window Binds
|
||||||
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
|
hl.bind(mainMod .. " + left", hl.dsp.focus({ direction = "left" }))
|
||||||
hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" }))
|
hl.bind(mainMod .. " + right", hl.dsp.focus({ direction = "right" }))
|
||||||
hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" }))
|
hl.bind(mainMod .. " + up", hl.dsp.focus({ direction = "up" }))
|
||||||
hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" }))
|
hl.bind(mainMod .. " + down", hl.dsp.focus({ direction = "down" }))
|
||||||
hl.bind(mainMod .. " + SHIFT + LEFT", hl.dsp.move({ direction = "left" }))
|
hl.bind(mainMod .. " + SHIFT + LEFT", hl.dsp.window.move({ direction = "left" }))
|
||||||
hl.bind(mainMod .. " + SHIFT + RIGHT", hl.dsp.move({ direction = "right" }))
|
hl.bind(mainMod .. " + SHIFT + RIGHT", hl.dsp.window.move({ direction = "right" }))
|
||||||
hl.bind(mainMod .. " + SHIFT + UP", hl.dsp.move({ direction = "up" }))
|
hl.bind(mainMod .. " + SHIFT + UP", hl.dsp.window.move({ direction = "up" }))
|
||||||
hl.bind(mainMod .. " + SHIFT + DOWN", hl.dsp.move({ direction = "down" }))
|
hl.bind(mainMod .. " + SHIFT + DOWN", hl.dsp.window.move({ direction = "down" }))
|
||||||
|
|
||||||
-- Workspace Binds
|
-- Workspace Binds
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
local key = i % 10
|
local key = i % 10
|
||||||
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i}))
|
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
|
||||||
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
|
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Resize Windows
|
-- Resize Windows
|
||||||
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||||
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||||
|
|
||||||
-- Screenshot
|
-- Screenshot
|
||||||
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.exec_cmd(config.screen_shot_cmd))
|
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.exec_cmd(config.screen_shot_cmd))
|
||||||
|
|
||||||
-- Laptop Multimedia Keys
|
-- Laptop Multimedia Keys
|
||||||
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true })
|
hl.bind(
|
||||||
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true })
|
"XF86AudioRaiseVolume",
|
||||||
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true, repeating = true })
|
hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"),
|
||||||
hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true, repeating = true })
|
{ locked = true, repeating = true }
|
||||||
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
|
)
|
||||||
hl.bind("XF86MonBrightnessDown",hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
|
hl.bind(
|
||||||
|
"XF86AudioLowerVolume",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind(
|
||||||
|
"XF86AudioMute",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind(
|
||||||
|
"XF86AudioMicMute",
|
||||||
|
hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"),
|
||||||
|
{ locked = true, repeating = true }
|
||||||
|
)
|
||||||
|
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
|
||||||
|
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,20 @@
|
|||||||
local function wallpaper_util(wallpaper_path)
|
local function wallpaper_util(wallpaper_path)
|
||||||
local ext = wallpaper_path:lower():match("^.+%.([a-z0-9]+)$")
|
local ext = wallpaper_path:lower():match("^.+%.([a-z0-9]+)$")
|
||||||
|
|
||||||
if ext == "mp4" or ext == "mkv" or ext == "webm" or ext == "mov" then
|
if ext == "mp4" or ext == "mkv" or ext == "webm" or ext == "mov" then
|
||||||
return string.format(
|
return string.format('mpvpaper ALL "%s" --mpv-options="loop-file=inf no-audio"', wallpaper_path)
|
||||||
'mpvpaper ALL "%s" --mpv-options="loop-file=inf no-audio"',
|
end
|
||||||
wallpaper_path
|
|
||||||
)
|
return string.format('awww-daemon & awww img "%s"', wallpaper_path)
|
||||||
end
|
end
|
||||||
|
|
||||||
return string.format(
|
|
||||||
'mpvpaper '*' "%s"',
|
|
||||||
wallpaper_path
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
terminal = "ghostty",
|
terminal = "ghostty",
|
||||||
file_manager = "dolphin",
|
file_manager = "dolphin",
|
||||||
screen_shot_cmd = "hyprshot -m region -o ~/Pictures/Screenshots",
|
screen_shot_cmd = "hyprshot -m region -o ~/Pictures/Screenshots",
|
||||||
menu = "rofi -show drun",
|
menu = "rofi -show drun",
|
||||||
wallpaper_cmd = wallpaper_util("/home/river/Pictures/Wallpapers/bg.png"),
|
wallpaper_cmd = wallpaper_util("/home/river/Pictures/Wallpapers/bg.png"),
|
||||||
--wallpaper_cmd = wallpaper_util("/home/river/Videos/Wallpapers/bg.mp4"),
|
--wallpaper_cmd = wallpaper_util("/home/river/Videos/Wallpapers/bg.mp4"),
|
||||||
browser = "brave",
|
browser = "brave",
|
||||||
bar_cmd = "waybar"
|
bar_cmd = "waybar",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,20 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
nixd = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
setup = {
|
||||||
|
cmd = { "nixd" },
|
||||||
|
settings = {
|
||||||
|
nixd = {
|
||||||
|
nixpkgs = {
|
||||||
|
expr = "import <nixpkgs> { }",
|
||||||
|
},
|
||||||
|
formatting = {
|
||||||
|
command = { "nixfmt" },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
./programs/fish.nix
|
./programs/fish.nix
|
||||||
./programs/vesktop.nix
|
./programs/vesktop.nix
|
||||||
./programs/java.nix
|
./programs/java.nix
|
||||||
#./programs/neovim.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
xautoclick
|
xautoclick
|
||||||
tsx
|
tsx
|
||||||
slack
|
slack
|
||||||
|
mosh
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.network.wait-online.enable = false;
|
systemd.network.wait-online.enable = false;
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
ghostty
|
ghostty
|
||||||
git-credential-manager
|
git-credential-manager
|
||||||
gnupg
|
gnupg
|
||||||
|
yazi
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
|||||||
Reference in New Issue
Block a user