Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Avé fd144648a9 Add date to waybar 2024-01-07 14:56:12 +01:00
Thomas Avé 948b03fad9 Noevim fzf telescope 2024-01-07 14:55:48 +01:00
6 changed files with 32 additions and 9 deletions

View File

@ -138,7 +138,7 @@ bind = $mainMod, SPACE, togglesplit, # dwindle
bind = CONTROL_L ALT_L, L, exec, swaylock bind = CONTROL_L ALT_L, L, exec, swaylock
bind = $mainMod, C, exec, cliphist list | awk '{print $0, "\0icon\x1fcom.github.davidmhewitt.clipped"}' | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy bind = $mainMod, C, exec, cliphist list | awk '{print $0, "\0icon\x1fcom.github.davidmhewitt.clipped"}' | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy
bind = $mainMod, Y, exec, /home/user/.config/rofi/rofi-ykman.sh bind = $mainMod, Y, exec, /home/user/.config/rofi/rofi-ykman.sh
bind = Super_L Control_L, Q, exec, systemctl suspend
bind = $mainMod, Escape, exec, rofi -show power-menu -modi power-menu:$scripts/rofi-power-menu bind = $mainMod, Escape, exec, rofi -show power-menu -modi power-menu:$scripts/rofi-power-menu
bind = ,XF86PowerOff, exec, rofi -show power-menu -modi power-menu:$scripts/rofi-power-menu bind = ,XF86PowerOff, exec, rofi -show power-menu -modi power-menu:$scripts/rofi-power-menu

View File

@ -11,7 +11,7 @@ use hyprland_ipc::{client, monitor, option, workspace};
#[command(name = "hyprsome")] #[command(name = "hyprsome")]
#[command(author = "sopa0")] #[command(author = "sopa0")]
#[command(version = "0.1.11")] #[command(version = "0.1.11")]
#[command(about = "Makes hyprland workspaces behave like awesome", long_about = None)] #[command(about = "Makes hyprland workspaces behave like awesome")]
struct Cli { struct Cli {
#[command(subcommand)] #[command(subcommand)]
command: Commands, command: Commands,

View File

@ -54,7 +54,7 @@ require('lazy').setup({
{'numToStr/Comment.nvim', config = function () require('Comment').setup() end}, {'numToStr/Comment.nvim', config = function () require('Comment').setup() end},
{'nvim-lualine/lualine.nvim', dependencies = { 'nvim-tree/nvim-web-devicons', opt = true }}, {'nvim-lualine/lualine.nvim', dependencies = { 'nvim-tree/nvim-web-devicons', opt = true }},
{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }, {'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' },
{'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim'}}, {'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-fzy-native.nvim'}},
{'nvim-tree/nvim-tree.lua', dependencies = {'nvim-tree/nvim-web-devicons'}, tag = 'nightly'}, {'nvim-tree/nvim-tree.lua', dependencies = {'nvim-tree/nvim-web-devicons'}, tag = 'nightly'},
{'nvim-treesitter/nvim-treesitter', build = ":TSUpdate"}, {'nvim-treesitter/nvim-treesitter', build = ":TSUpdate"},
{'williamboman/mason-lspconfig.nvim', dependencies = {'williamboman/mason.nvim', 'neovim/nvim-lspconfig'}}, {'williamboman/mason-lspconfig.nvim', dependencies = {'williamboman/mason.nvim', 'neovim/nvim-lspconfig'}},

View File

@ -34,7 +34,7 @@ vim.g.mapleader = ","
vim.g.python_highlight_all = 1 vim.g.python_highlight_all = 1
vim.wo.signcolumn = "number" vim.wo.signcolumn = "number"
vim.wo.relativenumber = true vim.wo.relativenumber = true
vim.g.rooter_patterns = {".git", "Makefile", "CMakeLists.txt", "build/"} vim.g.rooter_patterns = {".git", "Makefile", "CMakeLists.txt", "build/", "meson.build"}
vim.g.rooter_silent_chdir = 1 vim.g.rooter_silent_chdir = 1
-- Vimtex -- Vimtex

View File

@ -27,6 +27,15 @@ M.buffers = function()
require"telescope.builtin".buffers(opts) require"telescope.builtin".buffers(opts)
end end
M.fuzzyFindFiles = function()
require"telescope.builtin".grep_string({
path_display = { 'smart' },
only_sort_text = true,
word_match = "-w",
search = '',
})
end
local actions = require("telescope.actions") local actions = require("telescope.actions")
require("telescope").setup{ require("telescope").setup{
defaults = { defaults = {
@ -47,6 +56,8 @@ require("telescope").setup{
["<C-k>"] = actions.move_selection_previous, ["<C-k>"] = actions.move_selection_previous,
}, },
}, },
file_sorter = require'telescope.sorters'.get_fzy_sorter,
generic_sorter = require'telescope.sorters'.get_fzy_sorter,
}, },
extensions = { extensions = {
undo = { undo = {
@ -64,16 +75,22 @@ require("telescope").setup{
}, },
} }
},
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
} }
} }
telescope.load_extension("undo") telescope.load_extension("undo")
telescope.load_extension('fzf') telescope.load_extension('fzf')
telescope.load_extension('fzy_native')
vim.keymap.set("n", "<leader>u", function() require("telescope").extensions.undo.undo() end, {noremap = true, silent = true}) vim.keymap.set("n", "<leader>u", function() require("telescope").extensions.undo.undo() end, {noremap = true, silent = true})
vim.keymap.set("n", "<C-p>", function() require('telescope_config').git_files() end, {noremap = true, silent = true}) vim.keymap.set("n", "<C-p>", function() require('telescope_config').git_files() end, {noremap = true, silent = true})
vim.keymap.set("n", "<C-O>", function() require('telescope_config').project_files() end, { silent = true, noremap = true }) vim.keymap.set("n", "<C-O>", function() require('telescope_config').project_files() end, { silent = true, noremap = true })
vim.keymap.set("n", "<C-f>", function() require('telescope.builtin').live_grep{ cwd = vim.fn.systemlist("git rev-parse --show-toplevel 2> /dev/null || pwd")[1] } end, { silent = true, noremap = true }) -- vim.keymap.set("n", "<C-f>", function() require('telescope.builtin').live_grep{ cwd = vim.fn.systemlist("git rev-parse --show-toplevel 2> /dev/null || pwd")[1] } end, { silent = true, noremap = true })
vim.keymap.set("n", "<C-f>", function() require('telescope_config').fuzzyFindFiles() end, { silent = true, noremap = true })
return M return M

View File

@ -2,14 +2,15 @@
"layer": "top", // Waybar at top layer "layer": "top", // Waybar at top layer
"height": 30, // Waybar height (to be removed for auto height) "height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px) "spacing": 4, // Gaps between modules (4px)
"output": "eDP-1", "output": "DP-1",
"modules-left": ["wlr/taskbar"], "modules-left": ["wlr/taskbar"],
"modules-center": ["hyprland/workspaces"], "modules-center": ["hyprland/workspaces"],
"modules-right": ["tray", "wireplumber", "cpu#cpu2", "cpu", "memory", "custom/updates", "temperature", "battery", "clock"], "modules-right": ["tray", "wireplumber", "cpu#cpu2", "cpu", "memory", "custom/updates", "temperature", "battery", "clock#clock2", "clock"],
"wlr/taskbar": { "wlr/taskbar": {
"on-click": "activate", "on-click": "activate",
"on-click-right": "close", "on-click-right": "close",
"format": "{icon} {title:.15}" "format": "{icon} {title:.30}",
"all-outputs": true
}, },
"wireplumber": { "wireplumber": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
@ -34,7 +35,12 @@
"timezone": "Europe/Brussels", "timezone": "Europe/Brussels",
"format": "{:%H:%M:%S}", "format": "{:%H:%M:%S}",
"interval": 1, "interval": 1,
"format-alt": "{:%Y-%m-%d %H:%M:%S}"
},
"clock#clock2": {
"timezone": "Europe/Brussels",
"format": "{:%Y-%m-%d}",
"interval": 3600,
}, },
"cpu": { "cpu": {