Compare commits
7 Commits
7fc12d8c08
...
724d77dc57
| Author | SHA1 | Date | |
|---|---|---|---|
| 724d77dc57 | |||
| fb95bcb6cf | |||
| e6e4c5a683 | |||
| f2b0a1e850 | |||
| a914bd4e90 | |||
| 7af382fcfd | |||
| 26de8e0076 |
@@ -5,8 +5,7 @@ set -e
|
|||||||
|
|
||||||
handle_event() {
|
handle_event() {
|
||||||
case $1 in
|
case $1 in
|
||||||
focusedmon*) active_workspace;;
|
focusedmon* | workspace*) active_workspace;;
|
||||||
workspace*) active_workspace;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ handle_event() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
list_workspaces() {
|
list_workspaces() {
|
||||||
focused=`hyprctl activeworkspace -j | jq '.id'`
|
focused=$(hyprctl activeworkspace -j | jq '.id')
|
||||||
active=`hyprctl monitors -j | jq 'map(select(.name == "'$monitor'")) | .[0].activeWorkspace.id'`
|
active=$(hyprctl monitors -j | jq 'map(select(.name == "'$monitor'")) | .[0].activeWorkspace.id')
|
||||||
# Explanation
|
# Explanation
|
||||||
# 1. Select only workspaces on the current monitor.
|
# 1. Select only workspaces on the current monitor.
|
||||||
# 2. Remove duplicates (might be a bug with split-monitor-workspaces
|
# 2. Remove duplicates (might be a bug with split-monitor-workspaces
|
||||||
|
|||||||
@@ -95,5 +95,5 @@ hl.bind(" + XF86AudioPrev", function()
|
|||||||
hl.exec_cmd("playerctl previous")
|
hl.exec_cmd("playerctl previous")
|
||||||
end, { locked = true })
|
end, { locked = true })
|
||||||
hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||||
hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), { mouce = true })
|
hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||||
-- hl.bind(" + mouse:272", hl.dsp.hy3:focustab({ mouse })) --, { non_consuming = true }
|
-- hl.bind(" + mouse:272", hl.dsp.hy3:focustab({ mouse })) --, { non_consuming = true }
|
||||||
|
|||||||
@@ -25,14 +25,14 @@ hl.config({
|
|||||||
resize_on_border = true,
|
resize_on_border = true,
|
||||||
},
|
},
|
||||||
decoration = {
|
decoration = {
|
||||||
active_opacity = 1.000000,
|
active_opacity = 1.0,
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
passes = 1,
|
passes = 1,
|
||||||
size = 3,
|
size = 3,
|
||||||
vibrancy = 0.169600,
|
vibrancy = 0.169600,
|
||||||
},
|
},
|
||||||
inactive_opacity = 1.000000,
|
inactive_opacity = 1.0,
|
||||||
rounding = 5,
|
rounding = 5,
|
||||||
shadow = {
|
shadow = {
|
||||||
color = "rgba(1a1a1aee)",
|
color = "rgba(1a1a1aee)",
|
||||||
@@ -81,7 +81,7 @@ hl.config({
|
|||||||
|
|
||||||
hl.device({
|
hl.device({
|
||||||
name = "logitech-g502-1",
|
name = "logitech-g502-1",
|
||||||
sensitivity = -0.200000,
|
sensitivity = -0.2,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Additional configs
|
-- Additional configs
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
-- Add any additional keymaps here
|
-- Add any additional keymaps here
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-up>", "<C-w>k", { noremap = true, silent = true })
|
for _, map in ipairs({ { "<C-up>", "k" }, { "<C-down>", "j" }, { "<C-left>", "h" }, { "<C-right>", "l" } }) do
|
||||||
vim.keymap.set("n", "<C-down>", "<C-w>j", { noremap = true, silent = true })
|
vim.keymap.set("n", map[1], "<C-w>" .. map[2], { noremap = true, silent = true })
|
||||||
vim.keymap.set("n", "<C-left>", "<C-w>h", { noremap = true, silent = true })
|
end
|
||||||
vim.keymap.set("n", "<C-right>", "<C-w>l", { noremap = true, silent = true })
|
|
||||||
|
|||||||
@@ -58,9 +58,11 @@ return {
|
|||||||
return title:gsub("[^A-Za-z0-9-_]", ""):lower()
|
return title:gsub("[^A-Za-z0-9-_]", ""):lower()
|
||||||
else
|
else
|
||||||
-- If title is nil, just put the date and four random characters
|
-- If title is nil, just put the date and four random characters
|
||||||
|
local suffix = ""
|
||||||
for _ = 1, 4 do
|
for _ = 1, 4 do
|
||||||
return os.date("%Y-%m-%d ") .. string.char(math.random(65, 90))
|
suffix = suffix .. string.char(math.random(65, 90))
|
||||||
end
|
end
|
||||||
|
return os.date("%Y-%m-%d") .. "-" .. suffix
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
"folke/snacks.nvim",
|
"folke/snacks.nvim",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
vim.tbl_deep_extend("force", opts, {
|
opts = vim.tbl_deep_extend("force", opts, {
|
||||||
styles = {
|
styles = {
|
||||||
notification = {
|
notification = {
|
||||||
wo = { wrap = true }, -- wrap notifications
|
wo = { wrap = true }, -- wrap notifications
|
||||||
@@ -57,6 +57,7 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}):map("<leader>ut", { desc = "Toggle Color Column" })
|
}):map("<leader>ut", { desc = "Toggle Color Column" })
|
||||||
|
return opts
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
"du" = "echo 'Do you mean: dust or dua?'";
|
"du" = "echo 'Do you mean: dust or dua?'";
|
||||||
"ranger" = "echo 'Do you mean: yazi'";
|
"ranger" = "echo 'Do you mean: yazi'";
|
||||||
"stay-awake" = ''
|
"stay-awake" = ''
|
||||||
tmux new-session -d -A -s keep-awake 'systemd-inhibit --who="DRew" --why="Manual keep awake" --what=sleep sleep infinity'
|
tmux new-session -d -A -s keep-awake 'systemd-inhibit --who="Drew" --why="Manual keep awake" --what=sleep sleep infinity'
|
||||||
'';
|
'';
|
||||||
"allow-sleep" = "tmux kill-session -t keep-awake";
|
"allow-sleep" = "tmux kill-session -t keep-awake";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user