Compare commits
6 Commits
0ee4fdca31
...
4b29099855
Author | SHA1 | Date | |
---|---|---|---|
4b29099855 | |||
b71aa51dc0 | |||
5c678bd59a | |||
412434b059 | |||
d87f12e700 | |||
0cd81022e5 |
4
files/system/etc/xdg/nvim/init.lua
Normal file
4
files/system/etc/xdg/nvim/init.lua
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env lua
|
||||
require("options")
|
||||
require("keymaps")
|
||||
require("config.lazy")
|
34
files/system/etc/xdg/nvim/lua/config/lazy.lua
Normal file
34
files/system/etc/xdg/nvim/lua/config/lazy.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
31
files/system/etc/xdg/nvim/lua/keymaps.lua
Normal file
31
files/system/etc/xdg/nvim/lua/keymaps.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
-- define comon options
|
||||
local opts = {
|
||||
noremap = true, -- non-recursive
|
||||
silent = true, -- do not show message
|
||||
}
|
||||
|
||||
-----------------
|
||||
-- Normal mode --
|
||||
-----------------
|
||||
|
||||
-- check `:h vim.map.set()` to get better idea of what this does
|
||||
-- Better window navigation
|
||||
vim.keymap.set('n', '<C-h>', '<C-w>h', opts)
|
||||
vim.keymap.set('n', '<C-j>', '<C-w>j', opts)
|
||||
vim.keymap.set('n', '<C-k>', '<C-w>k', opts)
|
||||
vim.keymap.set('n', '<C-l>', '<C-w>l', opts)
|
||||
|
||||
-- Resize with arrows
|
||||
-- delta: 2 lines
|
||||
vim.keymap.set('n', '<C-Up>', ':resize -2<CR>', opts)
|
||||
vim.keymap.set('n', '<C-Down>', ':resize +2<CR>', opts)
|
||||
vim.keymap.set('n', '<C-Left>', ':vertical resize -2<CR>', opts)
|
||||
vim.keymap.set('n', '<C-Right>', ':vertical resize +2<CR>', opts)
|
||||
|
||||
-----------------
|
||||
-- Visual mode --
|
||||
-----------------
|
||||
|
||||
-- start visual mode with same area as previous area and same mode
|
||||
vim.keymap.set('v', '<', '<gv', opts)
|
||||
vim.keymap.set('v', '>', '>gv', opts)
|
25
files/system/etc/xdg/nvim/lua/options.lua
Normal file
25
files/system/etc/xdg/nvim/lua/options.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
-- use `:h <option>` to figure out meaning
|
||||
vim.opt.clipboard = "unnamedplus" -- use system keyboard
|
||||
vim.opt.completeopt = { "menu", "noinsert", "noselect" }
|
||||
vim.opt.mouse = "a" -- supposedly to allow the mouse to be used in nvim
|
||||
|
||||
-- Tab settings
|
||||
vim.opt.tabstop = 4 -- set number of visual spaces per \t (Tab)
|
||||
vim.opt.softtabstop = 4 -- set number of space in tab when editing
|
||||
vim.opt.shiftwidth = 4 -- insert 4 spaces on a tab
|
||||
vim.opt.expandtab = false -- for python apparently, treat tabs as spaces
|
||||
|
||||
-- UI config
|
||||
vim.opt.number = true -- show the absolute number
|
||||
vim.opt.relativenumber = true -- to add numbers to each line on the left side (line numbers?)
|
||||
vim.opt.cursorline = true -- highlights the line where the cursor is
|
||||
vim.opt.splitbelow = true -- sets new splits to be opened below
|
||||
vim.opt.splitright = true -- sets new splits to be opened to the right
|
||||
vim.opt.termguicolors = true -- enables 24-bit RGB color in Terminal UI
|
||||
-- vim.opt.showmode = false -- removes the --INSERT-- like UI at the bottom
|
||||
|
||||
-- Search settings
|
||||
vim.opt.incsearch = true -- search as characters are entered
|
||||
--vim.opt.hlsearch = false -- do not highlight matches
|
||||
vim.opt.ignorecase = true -- ignore cases by default
|
||||
vim.opt.smartcase = true -- when capitalized, be case sensitive
|
24
files/system/etc/xdg/nvim/lua/plugins/init.lua
Normal file
24
files/system/etc/xdg/nvim/lua/plugins/init.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
import = "lazyvim.plugins",
|
||||
opts = {
|
||||
colorscheme = function()
|
||||
local tokyonight = require("tokyonight")
|
||||
tokyonight.setup({
|
||||
style = "night",
|
||||
on_highlights = function(hl)
|
||||
hl.LineNrAbove = {
|
||||
fg = "#6ab8ff",
|
||||
}
|
||||
hl.LineNrBelow = {
|
||||
fg = "#ff6188",
|
||||
}
|
||||
end,
|
||||
on_colors = function() end,
|
||||
})
|
||||
tokyonight.load()
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
12
files/system/etc/xdg/nvim/lua/plugins/neo-tree.lua
Normal file
12
files/system/etc/xdg/nvim/lua/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||
},
|
||||
},
|
||||
}
|
14
files/system/etc/xdg/nvim/lua/plugins/remove-bufferline.lua
Normal file
14
files/system/etc/xdg/nvim/lua/plugins/remove-bufferline.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
{
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
version = "*",
|
||||
dependencies = "nvim-tree/nvim-web-devicons",
|
||||
opts = {
|
||||
options = {
|
||||
mode = "tabs",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
18
files/system/etc/xdg/nvim/lua/plugins/treesitter.lua
Normal file
18
files/system/etc/xdg/nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local plugin = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = function()
|
||||
require("nvim-treesitter.install").update({ with_sync = true })()
|
||||
end,
|
||||
config = function()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" },
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
return { plugin }
|
5
files/system/etc/xdg/nvim/lua/plugins/yuck.lua
Normal file
5
files/system/etc/xdg/nvim/lua/plugins/yuck.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
{
|
||||
"elkowar/yuck.vim",
|
||||
},
|
||||
}
|
106
files/system/etc/xdg/waybar/config.jsonc
Normal file
106
files/system/etc/xdg/waybar/config.jsonc
Normal file
@@ -0,0 +1,106 @@
|
||||
// -*- mode: jsonc -*-
|
||||
{
|
||||
"layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 52, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 0, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": [
|
||||
"cpu",
|
||||
"memory",
|
||||
"custom/edit-config",
|
||||
"hyprland/workspaces",
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"mpris"
|
||||
],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"gamemode",
|
||||
"wireplumber",
|
||||
"custom/notification",
|
||||
"clock"
|
||||
],
|
||||
//"reload_style_on_change": true,
|
||||
"hyprland/window":{
|
||||
"separate-outputs": true,
|
||||
"hide-empty-text": true,
|
||||
},
|
||||
"tray": {
|
||||
// "icon-size": 21,
|
||||
"spacing": 10
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"format": "{:%I : %M %p %Y-%m-%d}",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": "{node_name} {volume}% {icon}",
|
||||
"format-muted": "{node_name} ",
|
||||
"on-click": "hyprctl dispatch -- exec flatpak run com.saivert.pwvucontrol",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"custom/notification": {
|
||||
"tooltip": false,
|
||||
"format": "{} {icon}",
|
||||
"format-icons": {
|
||||
"notification": "",
|
||||
"none": "",
|
||||
"dnd-notification": "",
|
||||
"dnd-none": "",
|
||||
"inhibited-notification": "",
|
||||
"inhibited-none": "",
|
||||
"dnd-inhibited-notification": "",
|
||||
"dnd-inhibited-none": ""
|
||||
},
|
||||
"return-type": "json",
|
||||
"exec-if": "which swaync-client",
|
||||
"exec": "swaync-client -swb",
|
||||
"on-click": "swaync-client -t -sw",
|
||||
"on-click-right": "swaync-client -d -sw",
|
||||
"escape": true
|
||||
},
|
||||
"custom/edit-config": {
|
||||
"format": "Edit",
|
||||
"on-click": "$HOME/bin/local-lua $HOME/bin/launch-edit-configs.lua",
|
||||
"on-click-right": "$HOME/bin/reload-waybar"
|
||||
},
|
||||
"mpris": {
|
||||
"format": "{player_icon} {title} - {artist}",
|
||||
"format-paused": "{status_icon} {title} - {artist}",
|
||||
"player-icons": {
|
||||
"default": "▶",
|
||||
"mpv": "🎵"
|
||||
},
|
||||
"status-icons": {
|
||||
"paused": "⏸"
|
||||
}
|
||||
},
|
||||
}
|
129
files/system/etc/xdg/waybar/style.css
Normal file
129
files/system/etc/xdg/waybar/style.css
Normal file
@@ -0,0 +1,129 @@
|
||||
@import "tokyonight.css";
|
||||
|
||||
* {
|
||||
font-family: JetBrains Mono;
|
||||
font-size: 17px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: @transparent;
|
||||
color: @theme_text_color;
|
||||
margin: 0rem 0rem 0rem 0rem;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: @lavender;
|
||||
border-radius: 1.5rem;
|
||||
padding: 0rem 0.5rem;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @sky;
|
||||
border-radius: 1.5rem;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
color: @sapphire;
|
||||
border-radius: 1.5rem;
|
||||
}
|
||||
|
||||
#cpu,
|
||||
#memory,
|
||||
#custom-weather,
|
||||
#wireplumber,
|
||||
#custom-notification,
|
||||
#custom-music,
|
||||
#custom-edit-config,
|
||||
#tray,
|
||||
#backlight,
|
||||
#clock,
|
||||
#battery,
|
||||
#pulseaudio,
|
||||
#custom-lock,
|
||||
#powermenu,
|
||||
#window,
|
||||
#workspaces,
|
||||
#gamemode,
|
||||
#mpris {
|
||||
background-color: @theme_bg_color;
|
||||
padding: 0.5rem 0.75rem;
|
||||
margin: 0.75rem 0.25rem 0rem 0.25rem;
|
||||
border-radius: 1.5rem;
|
||||
border: 2px solid;
|
||||
}
|
||||
|
||||
window#waybar.empty #window {
|
||||
background-color: transparent;
|
||||
border: 0px
|
||||
}
|
||||
|
||||
/* left side margin */
|
||||
#cpu {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
/* right side margin */
|
||||
#clock {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: @magenta;
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @blue;
|
||||
}
|
||||
|
||||
#battery {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
color: @maroon;
|
||||
}
|
||||
|
||||
#custom-music {
|
||||
color: @mauve;
|
||||
}
|
||||
|
||||
#custom-lock {
|
||||
color: @magenta;
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#custom-notification {
|
||||
color: @rosewater;
|
||||
}
|
||||
|
||||
#custom-notification.notification {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#custom-notification.dnd-notification {
|
||||
color: @maroon;
|
||||
}
|
15
files/system/etc/xdg/waybar/tokyonight.css
Normal file
15
files/system/etc/xdg/waybar/tokyonight.css
Normal file
@@ -0,0 +1,15 @@
|
||||
@define-color foreground #313244;
|
||||
@define-color background #1a1b26;
|
||||
@define-color text #a9b1d6;
|
||||
@define-color black #414868;
|
||||
@define-color red #f7768e;
|
||||
@define-color green #73daca;
|
||||
@define-color yellow #e0af68;
|
||||
@define-color blue #7aa2f7;
|
||||
@define-color magenta #bb9af7;
|
||||
@define-color cyan #7dcfff;
|
||||
@define-color white #c0caf5;
|
||||
@define-color sky #89dceb;
|
||||
@define-color sapphire #74c7ec;
|
||||
@define-color rosewater #f5e0dc;
|
||||
@define-color flamingo #f2cdcd;
|
150
files/system/usr/share/hyprland/hyprland.conf
Normal file
150
files/system/usr/share/hyprland/hyprland.conf
Normal file
@@ -0,0 +1,150 @@
|
||||
# hyprland.conf
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor=,preferred,auto,auto
|
||||
|
||||
# Sources
|
||||
source = /usr/share/hyprland/hyprland.conf.d/env_vars.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/game_workspace.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/discord_workspace.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/autostart.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/terminal.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/keybinds.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/browser.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/keybinds.conf.d/arrow_move_window.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/keybinds.conf.d/workspace_binds.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/keybinds.conf.d/media_binds.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/misc_apps.conf
|
||||
source = /usr/share/hyprland/hyprland.conf.d/devices.conf
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
|
||||
# workspaces
|
||||
workspace = 1, persistent:true, default:true
|
||||
workspace = 2
|
||||
workspace = 3
|
||||
workspace = 4
|
||||
workspace = 5, persistent:true, border:false, rounding:false
|
||||
workspace = 6
|
||||
workspace = 7
|
||||
workspace = 8
|
||||
workspace = 9
|
||||
workspace = 10
|
||||
workspace = special:magic
|
||||
|
||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
natural_scroll = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 to 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
gaps_in = 5
|
||||
gaps_out = 10
|
||||
border_size = 2
|
||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
layout = dwindle
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
}
|
||||
|
||||
#xwayland {
|
||||
# force_zero_scaling = true
|
||||
#}
|
||||
|
||||
decoration {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
}
|
||||
|
||||
shadow {
|
||||
enabled = yes
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
rounding = 15
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
animation = specialWorkspace, 1, 3, default, slidefadevert -50%
|
||||
}
|
||||
|
||||
dwindle {
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = yes # you probably want this
|
||||
}
|
||||
|
||||
master {
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
new_status = slave
|
||||
}
|
||||
|
||||
gestures {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
workspace_swipe = off
|
||||
}
|
||||
|
||||
misc {
|
||||
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_splash_rendering = true
|
||||
}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
debug {
|
||||
disable_logs = false
|
||||
}
|
||||
|
||||
experimental {
|
||||
#hdr = true
|
||||
#xx_color_management_v4 = true
|
||||
}
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float, ^(kitty)$
|
||||
# Example windowrule v2
|
||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
|
||||
#windowrulev2 = workspace special, class:(scratchy)
|
@@ -0,0 +1,31 @@
|
||||
# autostart.conf
|
||||
|
||||
$polkit = /usr/libexec/kf6/polkit-kde-authentication-agent-1
|
||||
#$kwalletInit = exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||
|
||||
# menu bar
|
||||
exec-once = /usr/bin/waybar
|
||||
|
||||
# hyprpaper
|
||||
# exec-once = hyprpaper
|
||||
|
||||
## services
|
||||
# polkit
|
||||
exec-once = $polkit
|
||||
|
||||
# notification system
|
||||
exec-once = /usr/bin/swaync
|
||||
|
||||
# unlock kwallet
|
||||
# exec-once = /usr/share/hyprland/scripts/load-kwallet.sh
|
||||
|
||||
# load kwallet dependent apps
|
||||
# exec-once = /usr/share/hyprland/scripts/load-kwallet-apps.sh
|
||||
|
||||
# dbus stuff
|
||||
exec-once = /usr/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
|
||||
# nextcloud
|
||||
# exec-once = sleep 1 && flatpak run --branch=stable --arch=x86_64 --command=nextcloud --file-forwarding com.nextcloud.desktopclient.nextcloud
|
||||
|
||||
# exec-once = akregator --hide-mainwindow
|
11
files/system/usr/share/hyprland/hyprland.conf.d/browser.conf
Normal file
11
files/system/usr/share/hyprland/hyprland.conf.d/browser.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
# browser.conf
|
||||
|
||||
# floorp
|
||||
$browser = /usr/bin/flatpak run one.ablaze.floorp
|
||||
$mainMod = SUPER
|
||||
|
||||
## autostart
|
||||
exec-once = [workspace 1 silent] $browser
|
||||
|
||||
## keybind
|
||||
bind = $mainMod, F, exec, $browser
|
@@ -0,0 +1,26 @@
|
||||
# discord_workspace.conf
|
||||
|
||||
$discord = /usr/bin/flatpak run com.discordapp.Discord
|
||||
|
||||
$discord_class = class:^(vesktop)$|^(discord)$|^(com.discord.app.Discord)$|^(WebCord)$|^(equibop)$
|
||||
|
||||
# workspace
|
||||
workspace = special:discord
|
||||
|
||||
# window rule
|
||||
windowrule = workspace special:discord silent, $discord_class
|
||||
#windowrule = workspace special:discord silent, class:^(discord)$
|
||||
#windowrule = opacity 0.9 0.9, $discord_class
|
||||
windowrule = allowsinput on, $discord_class
|
||||
|
||||
# key binds
|
||||
$mainMod = SUPER
|
||||
#bind = $mainMod, D, focuswindow, vesktop
|
||||
bind = $mainMod, D, togglespecialworkspace, discord
|
||||
bind = $mainMod SHIFT, D, movetoworkspace, special:discord
|
||||
|
||||
# discord overlay
|
||||
#exec-once = discover-overlay
|
||||
|
||||
# launch discord
|
||||
exec-once = $discord
|
@@ -0,0 +1,31 @@
|
||||
# env_vars.conf
|
||||
|
||||
# hyprcursor
|
||||
env = HYPRCURSOR_THEME,Bibata-Modern-Classic
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# Some default env vars.
|
||||
env = XCURSOR_THEME,Bibata-Modern-Classic
|
||||
env = XCURSOR_SIZE,24
|
||||
# Toolkit Backend Vars
|
||||
env = CLUTTER_BACKEND,wayland
|
||||
# QT Variables
|
||||
env = QT_QPA_PLATFORMTHEME,kde
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
env = QT_QPA_PLATFORM,wayland
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
# XDG specs vars
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
# set gtk-theme
|
||||
env = QT_QUICK_CONTROLS_STYLE,org.kde.desktop
|
||||
|
||||
# copy some environments into systemctl
|
||||
exec = /usr/bin/systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME
|
||||
|
||||
# set default editor
|
||||
env = EDITOR,/usr/bin/nvim
|
||||
|
||||
# for hdr games
|
||||
env = DXVK_HDR,1
|
@@ -0,0 +1,41 @@
|
||||
# game_workspace.conf
|
||||
|
||||
# workspace number
|
||||
$game-workspace-number = 5
|
||||
|
||||
exec-once = steam %U
|
||||
|
||||
# window rules
|
||||
windowrule = workspace 9 silent, title:^(Steam)$
|
||||
|
||||
# key binds
|
||||
$mainMod = SUPER
|
||||
bind = $mainMod, G, focuswindow, class:^(gamescope|steam)
|
||||
|
||||
# To put the window rules for the game workspace
|
||||
|
||||
# steam apps
|
||||
windowrule = workspace $game-workspace-number silent, class:^steam_app_\d+$
|
||||
|
||||
# gamescope
|
||||
windowrule = fullscreen, class:^(gamescope)$
|
||||
windowrule = workspace $game-workspace-number silent, class:^(gamescope)$
|
||||
|
||||
# Minecraft
|
||||
windowrule = workspace $game-workspace-number, class:^Minecraft.*
|
||||
|
||||
# factorio
|
||||
windowrule = workspace $game-workspace-number, class:^(factorio)$
|
||||
|
||||
# RetroArch flatpak
|
||||
windowrule = workspace $game-workspace-number, class:^(org.libretro.RetroArch)$
|
||||
|
||||
# dolphin emulator
|
||||
windowrule = workspace $game-workspace-number, class:^(dolphin-emu)$
|
||||
|
||||
# Slay the Spire
|
||||
windowrule = workspace $game-workspace-number, class:^(Slay the Spire)$
|
||||
|
||||
# Terraria
|
||||
windowrule = workspace $game-workspace-number, class:^(dotnet)$
|
||||
windowrule = fullscreen, class:^(dotnet)$
|
@@ -0,0 +1,38 @@
|
||||
# key_binds.conf
|
||||
|
||||
# Set programs that you use
|
||||
$fileManager = dolphin
|
||||
$menu = rofi -show drun
|
||||
#$menu = ags request -i launcher show
|
||||
$screenshot = grim -g "$(slurp -d)" - | wl-copy
|
||||
$powermenu = /usr/share/hyprland/scripts/local-lua /usr/share/hyprland/scripts/powermenu.lua
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod SHIFT, C, killactive,
|
||||
bind = $mainMod, M, exec, $powermenu
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, $menu
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
bind = $mainMod SHIFT, F, fullscreen
|
||||
|
||||
# screenshots and screen recorder aylur dot files
|
||||
bind = $mainMod SHIFT, Print, exec, $screenshot
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod SHIFT, mouse:272, movewindow
|
||||
bindm = $mainMod SHIFT, mouse:273, resizewindow
|
||||
|
||||
# global hotkeys
|
||||
# discord mute
|
||||
bind = CTRL SHIFT, M, pass, initialclass:^(discord)$
|
@@ -0,0 +1,7 @@
|
||||
# arrow_move_window.conf
|
||||
|
||||
# Move window with mainMod + Shift + arrow kyes
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
@@ -0,0 +1,16 @@
|
||||
# media_binds.conf
|
||||
$mainMod = SUPER
|
||||
|
||||
# media play-pause toggle
|
||||
bind = , XF86AudioPlay, exec, playerctl play-pause
|
||||
|
||||
# media volume up/down
|
||||
bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
|
||||
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 1%+
|
||||
|
||||
# media volume up/down
|
||||
bind = $mainMod, XF86AudioLowerVolume, exec, playerctl position 5-
|
||||
bind = $mainMod, XF86AudioRaiseVolume, exec, playerctl position 5+
|
||||
|
||||
# media pause
|
||||
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
@@ -0,0 +1,34 @@
|
||||
# workspace_binds.conf
|
||||
$mainMod = SUPER
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
@@ -0,0 +1,13 @@
|
||||
# terminal.conf
|
||||
$terminal = kitty
|
||||
|
||||
# workspace
|
||||
workspace = special:terminal
|
||||
|
||||
# launch a terminal
|
||||
exec-once = [workspace special:terminal silent] $terminal
|
||||
|
||||
# key binds
|
||||
$mainMod = SUPER
|
||||
bind = $mainMod, T, togglespecialworkspace, terminal
|
||||
bind = $mainMod SHIFT, T, movetoworkspace, special:terminal
|
18
files/system/usr/share/hyprland/scripts/hypr_power/hypr_close_clients
Executable file
18
files/system/usr/share/hyprland/scripts/hypr_power/hypr_close_clients
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
HYPRCMDS=$(hyprctl -j clients | jq -j '.[] | "dispatch closewindow address:\(.address); "')
|
||||
hyprctl --batch "$HYPRCMDS" >>/tmp/hyprexitwithgrace.log 2>&1
|
||||
|
||||
notify-send "power controls" "Closing Applications..."
|
||||
|
||||
sleep 2
|
||||
|
||||
COUNT=$(hyprctl clients | grep "class:" | wc -l)
|
||||
|
||||
if [ "$COUNT" -eq "0" ]; then
|
||||
notify-send "power controls" "Closed Applications."
|
||||
return
|
||||
else
|
||||
notify-send "power controls" "Some apps didn't close. Not shutting down."
|
||||
exit 1
|
||||
fi
|
5
files/system/usr/share/hyprland/scripts/hypr_power/hypr_logout
Executable file
5
files/system/usr/share/hyprland/scripts/hypr_power/hypr_logout
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
/usr/share/hyprland/scripts/hypr_power/hypr_close_clients
|
||||
|
||||
hyprctl dispatch exit
|
5
files/system/usr/share/hyprland/scripts/hypr_power/hypr_reboot
Executable file
5
files/system/usr/share/hyprland/scripts/hypr_power/hypr_reboot
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
/usr/share/hyprland/scripts/hypr_power/hypr_close_clients
|
||||
|
||||
systemctl reboot
|
5
files/system/usr/share/hyprland/scripts/hypr_power/hypr_shutdown
Executable file
5
files/system/usr/share/hyprland/scripts/hypr_power/hypr_shutdown
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
~/bin/hypr_power/hypr_close_clients
|
||||
|
||||
systemctl poweroff
|
3
files/system/usr/share/hyprland/scripts/load-kwallet-apps.sh
Executable file
3
files/system/usr/share/hyprland/scripts/load-kwallet-apps.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
# nextcloud desktop
|
||||
sleep 15 && flatpak run --branch=stable --arch=x86_64 --command=nextcloud --file-forwarding com.nextcloud.desktopclient.nextcloud
|
5
files/system/usr/share/hyprland/scripts/load-kwallet.sh
Executable file
5
files/system/usr/share/hyprland/scripts/load-kwallet.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
kwalletmanager5 &
|
||||
sleep 1 && exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||
notify-send -e --expire-time=2000 'Kwallet has been loaded. Loading dependent apps...'
|
||||
sleep 2 && hyprctl dispatch closewindow class:org.kde.kwalletmanager
|
4
files/system/usr/share/hyprland/scripts/local-lua
Executable file
4
files/system/usr/share/hyprland/scripts/local-lua
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
BIN_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
|
||||
LUA_PATH="${BIN_DIR}/?.lua;;" lua $1
|
27
files/system/usr/share/hyprland/scripts/menu.lua
Normal file
27
files/system/usr/share/hyprland/scripts/menu.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env lua
|
||||
local menu = {}
|
||||
|
||||
function menu:clean_string(str)
|
||||
str = string.gsub(str, "^%s+", "")
|
||||
str = string.gsub(str, "%s+$", "")
|
||||
return string.gsub(str, "[\n]+", " ")
|
||||
end
|
||||
|
||||
function menu:bring_menu(prompt, options)
|
||||
local options_string = ""
|
||||
local length = 1
|
||||
for _, value in pairs(options) do
|
||||
options_string = options_string .. value .. "\n"
|
||||
length = length + 1
|
||||
end
|
||||
|
||||
options_string = options_string:sub(1, -2)
|
||||
|
||||
local command = "echo -e '" .. options_string .. "' | rofi -dmenu -i -p '" .. prompt .. "'"
|
||||
local f = assert(io.popen(command, "r"))
|
||||
local s = menu:clean_string(assert(f:read("*a")))
|
||||
f:close()
|
||||
return s
|
||||
end
|
||||
|
||||
return menu
|
14
files/system/usr/share/hyprland/scripts/powermenu.lua
Normal file
14
files/system/usr/share/hyprland/scripts/powermenu.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env lua
|
||||
local menu = require("menu")
|
||||
local executable = {
|
||||
["Shutdown"] = "/usr/share/hyprland/scripts/hypr_power/hypr_shutdown",
|
||||
["Reboot"] = "/usr/share/hyprland/scripts/hypr_power/hypr_reboot",
|
||||
["Log out"] = "/usr/share/hyprland/scripts/hypr_power/hypr_logout",
|
||||
["Cancel"] = "",
|
||||
}
|
||||
|
||||
local options = { "Shutdown", "Reboot", "Log out", "Cancel" }
|
||||
|
||||
local s = menu:bring_menu("Power menu", options)
|
||||
|
||||
os.execute(executable[s])
|
@@ -0,0 +1,5 @@
|
||||
[Desktop Entry]
|
||||
Name=Steam Big Picture Mode
|
||||
Comment=Start Steam in Big Picture Mode
|
||||
Exec=/usr/bin/gamescope -H 1080 -r 60 --force-composition -fe -- /usr/bin/steam -tenfoot
|
||||
Type=Application
|
@@ -21,13 +21,12 @@ modules:
|
||||
repos:
|
||||
- https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora-%OS_VERSION%/atim-starship-fedora-%OS_VERSION%.repo
|
||||
- https://copr.fedorainfracloud.org/coprs/solopasha/hyprland/repo/fedora-%OS_VERSION%/solopasha-hyprland-fedora-%OS_VERSION%.repo
|
||||
- https://copr.fedorainfracloud.org/coprs/bazzite-org/bazzite/repo/fedora-%OS_VERSION%/bazzite-org-bazzite-fedora-%OS_VERSION%.repo
|
||||
install:
|
||||
- micro
|
||||
- starship
|
||||
- hyprland-git
|
||||
- waybar
|
||||
- gamescope-session-steam
|
||||
- nvim
|
||||
|
||||
- type: default-flatpaks
|
||||
notify: true # Send notification after install/uninstall is finished (true/false)
|
||||
@@ -35,6 +34,7 @@ modules:
|
||||
# If no repo information is specified, Flathub will be used by default
|
||||
install:
|
||||
- one.ablaze.floorp
|
||||
- com.discordapp.Discord
|
||||
user: {} # Also add Flathub user repo, but no user packages
|
||||
|
||||
- type: signing # this sets up the proper policy & signing files for signed images to work fully
|
||||
|
Reference in New Issue
Block a user