Updated config

This commit is contained in:
Eduard Urbach 2024-03-02 17:06:30 +01:00
parent d6871eb3b9
commit 30c02876e8
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
15 changed files with 193 additions and 155 deletions

13
.config/fuzzel/fuzzel.ini Normal file
View File

@ -0,0 +1,13 @@
font=Ubuntu Nerd Font:size=18
prompt=""
lines=5
width=20
horizontal-pad=16
vertical-pad=8
inner-pad=8
line-height=32
fields=filename,name,generic,exec
[border]
width=0
radius=8

View File

@ -1,12 +1,10 @@
exec-once = dunst
exec-once = ~/.bin/launch-waybar
exec-once = $statusbar
exec-once = waypaper --restore
exec-once = wl-paste --watch cliphist store
exec-once = dbus-update-activation-environment --all
exec-once = gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
exec-once = [workspace 1 silent] godot
exec-once = [workspace 2 silent] $editor
exec-once = [workspace 3 silent] $browser
exec-once = [workspace 4 silent] $terminal
exec-once = [workspace 5 silent] $terminal

View File

@ -1,6 +1,6 @@
general {
gaps_in = 5
gaps_out = 20
gaps_out = 10
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
@ -27,7 +27,7 @@ input {
}
decoration {
rounding = 8
rounding = 10
blur {
enabled = true
@ -46,17 +46,17 @@ animations {
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 = windows, 1, 6, myBezier
animation = windowsOut, 1, 6, default, popin 80%
animation = border, 1, 9, default
animation = borderangle, 1, 7, default
animation = fade, 1, 6, default
animation = workspaces, 1, 1, default
}
dwindle {
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
pseudotile = yes
preserve_split = yes
}
master {
@ -68,5 +68,5 @@ gestures {
}
misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
force_default_wallpaper = 0
}

View File

@ -1,43 +0,0 @@
background {
monitor =
path = $HOME/pictures/wallpapers/lockscreen.png
color = rgba(25, 20, 20, 1.0)
blur_passes = 4
blur_size = 2
noise = 0.0117
contrast = 0.8916
brightness = 0.8172
vibrancy = 0.1696
vibrancy_darkness = 0.0
}
input-field {
monitor =
size = 200, 50
outline_thickness = 1
dots_size = 0.2 # 0.2 - 0.8
dots_spacing = 0.15 # 0.0 - 1.0
dots_center = true
outer_color = rgb(000000)
inner_color = rgb(200, 200, 200)
font_color = rgb(10, 10, 10)
fade_on_empty = true
placeholder_text = <i>Input Password...</i>
hide_input = false
position = 0, -20
halign = center
valign = center
}
label {
monitor =
text = Enter your password to unlock
color = rgba(200, 200, 200, 1.0)
font_size = 24
font_family = Ubuntu Nerd Font
position = 0, 200
halign = center
valign = center
}

View File

@ -6,10 +6,9 @@ bind = $leader, T, exec, $terminal
bind = $leader, B, exec, $browser
bind = $leader, E, exec, $files
bind = $leader, Super_L, exec, $menu
bind = $leader, L, exec, hyprlock
# Screenshot
bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy
bind = $leader, L, exec, $lockscreen
bind = $leader, F12, exec, $logout
bind = , Print, exec, $screenshot
# Window management
bind = $leader, C, killactive,

View File

@ -1,6 +1,10 @@
$browser = firefox
$editor = code
$editor = nvim
$email = geary
$files = nautilus
$logout = wlogout
$lockscreen = swaylock
$menu = ~/.bin/toggle-fuzzel
$screenshot = grim -g "$(slurp -d)" - | wl-copy
$statusbar = ~/.bin/launch-waybar
$terminal = alacritty

View File

@ -6,12 +6,12 @@
"mini.completion": { "branch": "main", "commit": "0cf6c4e257b5e8189ac6b3ffa2064a319c4eb8a8" },
"neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" },
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
"nui.nvim": { "branch": "main", "commit": "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" },
"nui.nvim": { "branch": "main", "commit": "b81333d12f824dbed5eb231c8a4409a290fdd848" },
"nvim-lspconfig": { "branch": "master", "commit": "9553725789be682ecd945a527ec552e489ea8534" },
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
"nvim-tree.lua": { "branch": "master", "commit": "d52fdeb0a300ac42b9cfa65ae0600a299f8e8677" },
"nvim-treesitter": { "branch": "master", "commit": "c2a265156d5799adbd9f9e7d5385735fa5d21776" },
"nvim-web-devicons": { "branch": "master", "commit": "0bb67ef952ea3eb7b1bac9c011281471d99a27bc" },
"nvim-treesitter": { "branch": "master", "commit": "e3e5ff4ebddcbfa8f5798253ebd1f9b449e8ee69" },
"nvim-web-devicons": { "branch": "master", "commit": "4adea17610d140a99c313e3f79a9dc01825d59ae" },
"onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" },
"plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
"telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" },

View File

@ -4,17 +4,28 @@ end
-- Basics
map("n", ";", ":", "Command mode")
map("n", "qq", "<cmd>qa!<cr>", "Quit all")
map("n", "U", "<cmd>redo<cr>", "Redo")
map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
map({ "i", "n", "s", "v" }, "<C-s>", "<cmd>w<cr><esc>", "Save file")
map("n", "<C-l>", "^Da", "Rewrite line")
map("i", "<C-l>", "<esc>^Da", "Rewrite line")
map("n", "<C-a>", "ggVG", "Select all")
map("n", "<C-r>", ":%s/<C-R><C-W>//g<Left><Left>", "Replace word under cursor")
map({ "n", "v" }, "<C-b>", "^", "Beginning of line")
map("i", "<C-b>", "<esc>^i", "Beginning of line")
map({ "i", "n", "v" }, "<C-e>", "<end>", "End of line")
map("n", "qq", "<cmd>qa!<cr>", "Quit all")
-- Editing multiple instances
map("n", "<C-d>", "*#", "Search word under cursor")
map("n", "<C-r>", "*#:%s//<C-r><C-w>", "Replace word under cursor")
map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
map("v", "<C-r>", "y/<C-r>\"<cr>N:%s//<C-r>\"", "Replace selection")
-- Increasing and decreasing numbers
map("n", "+", "<C-a>", "Increase number")
map("n", "-", "<C-x>", "Decrease number")
map("n", "<kPlus>", "<C-a>", "Increase number")
map("n", "<kMinus>", "<C-x>", "Decrease number")
-- Buffer management
map("n", "<C-n>", "<cmd>enew<cr>", "New file")

View File

@ -8,50 +8,46 @@ end
-- Options
local opt = vim.opt
opt.autoindent = true
opt.autowrite = false
opt.clipboard = "unnamedplus"
opt.completeopt = "menu,menuone,noinsert"
opt.conceallevel = 0
opt.cursorline = true
opt.cursorlineopt = "number"
opt.expandtab = false
opt.grepformat = "%f:%l:%c:%m"
opt.grepprg = "rg --grep"
opt.ignorecase = false
opt.mouse = "a"
opt.ruler = false
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftwidth = 4
opt.shortmess:append "scCFI"
opt.showmode = false
opt.showtabline = 0
opt.smartindent = true
opt.softtabstop = 4
opt.spell = false
opt.splitbelow = true
opt.splitright = true
opt.tabstop = 4
opt.termguicolors = true
opt.undofile = true
opt.undolevels = 10000
opt.updatetime = 250
opt.virtualedit = "onemore"
opt.wildmode = "longest:full,full"
opt.wrap = false
-- Indentation
opt.autoindent = true
opt.expandtab = false
opt.shiftwidth = 4
opt.smartindent = true
opt.softtabstop = 4
opt.tabstop = 4
-- UI
opt.fillchars = { eob = " ", vert = " " }
opt.laststatus = 0
opt.number = true
opt.relativenumber = false
opt.showtabline = 0
opt.signcolumn = "yes"
opt.statusline = "%{repeat('─',winwidth('.'))}"
-- Neovide
if g.neovide then
opt.linespace = 3
g.neovide_fullscreen = true
g.neovide_transparency = 0.92
vim.o.guifont = "UbuntuMono Nerd Font:h20:#h-none"
end
-- Undo
opt.undofile = true
opt.undolevels = 10000

38
.config/swaylock/config Normal file
View File

@ -0,0 +1,38 @@
daemonize
show-failed-attempts
clock
screenshot
effect-blur=9x5
effect-vignette=0.5:0.5
color=1f1d2e80
font=Ubuntu Nerd Font
indicator
indicator-radius=200
indicator-thickness=20
line-color=1f1d2e
ring-color=33CCFE
inside-color=1f1d2e
key-hl-color=EC4899
separator-color=00000000
text-color=e0def4
text-caps-lock-color=
line-ver-color=eb6f92
ring-ver-color=eb6f92
inside-ver-color=1f1d2e
text-ver-color=e0def4
ring-wrong-color=31748f
text-wrong-color=31748f
inside-wrong-color=1f1d2e
inside-clear-color=1f1d2e
text-clear-color=e0def4
ring-clear-color=9ccfd8
line-clear-color=1f1d2e
line-wrong-color=1f1d2e
bs-hl-color=31748f
grace=2
grace-no-mouse
grace-no-touch
datestr=
timestr=%H : %M
fade-in=0.2
ignore-empty-password

View File

@ -1,8 +1,8 @@
{
"layer": "top",
"modules-left": ["custom/launcher","hyprland/workspaces"],
"modules-left": ["custom/os","hyprland/workspaces"],
"modules-center": ["clock"],
"modules-right": ["mpris","wireplumber","cpu","memory","network","disk"],
"modules-right": ["cpu","memory","disk","network","custom/power"],
"clock": {
"interval": 60,
"format": "{:%a %H : %M}",
@ -10,24 +10,25 @@
},
"cpu": {
"interval": 2,
"format": " {usage}%",
"format": "{icon} {usage}%",
"format-icons": ["󰾆", "󰾅", "󰓅"],
"max-length": 10
},
"memory": {
"interval": 2,
"format": "󰍜 {used} GiB",
"format": " {used} GiB",
"max-length": 10
},
"network": {
"interval": 2,
"format": "{ifname}",
"format": "{ifname}",
"format-wifi": " {essid}",
"format-ethernet": "󰛳 {bandwidthTotalBytes}",
"format-ethernet": " {bandwidthUpBits}  {bandwidthDownBits}",
"format-disconnected": "",
"tooltip-format": "{ifname} via {gwaddr}",
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
"tooltip-format-ethernet": " {ifname}",
"tooltip-format-disconnected": "Disconnected",
"tooltip-format-disconnected": "",
"max-length": 50
},
"disk": {
@ -63,13 +64,13 @@
"format-icons": {
"urgent": "",
"active": "",
"default": ""
"default": ""
},
"sort-by-number": true
},
"custom/launcher":{
"custom/os":{
"format": "",
"on-click": "fuzzel",
"on-click-right": "killall fuzzel"
"tooltip": false,
"on-click": "alacritty --hold -e neofetch",
}
}

View File

@ -1,8 +1,9 @@
* {
border: none;
border-radius: 8px;
font-family: "Ubuntu Nerd Font";
font-size: 16px;
font-size: 14px;
padding: 0;
margin: 0;
}
window#waybar {
@ -13,15 +14,6 @@ window#waybar.hidden {
opacity: 0.2;
}
#window {
margin-top: 6px;
padding-left: 10px;
padding-right: 10px;
transition: none;
color: transparent;
background: transparent;
}
#clock,
#cpu,
#disk,
@ -29,62 +21,24 @@ window#waybar.hidden {
#mpris,
#network,
#wireplumber,
#workspaces {
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 10px;
margin-bottom: 0px;
#workspaces,
#custom-os {
color: @fg;
background: @bg;
margin: 0 4px;
transition: none;
}
#clock {
color: #161320;
background: #ABE9B3;
#workspaces button {
padding: 0px 5px;
color: rgba(255, 255, 255, 0.5);
}
#cpu {
color: #161320;
background: #96CDFB;
#workspaces button.active {
color: rgba(255, 255, 255, 1.0);
}
#disk {
color: #161320;
background: #E8A2AF;
}
#memory {
color: #161320;
background: #DDB6F2;
}
#mpris {
color: #1A1826;
background: #FAE3B0;
}
#network {
color: #161320;
background: #bd93f9;
}
#wireplumber {
color: #1A1826;
background: #FAE3B0;
}
#workspaces {
color: white;
background: transparent;
}
#custom-launcher {
#custom-os {
font-size: 24px;
margin-top: 6px;
margin-left: 8px;
padding-left: 10px;
padding-right: 5px;
transition: none;
color: #89DCEB;
background: transparent;
}

18
.config/wlogout/layout Normal file
View File

@ -0,0 +1,18 @@
{
"label" : "logout",
"action" : "loginctl terminate-user $USER",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "shutdown",
"action" : "systemctl poweroff",
"text" : "Shutdown",
"keybind" : "s"
}
{
"label" : "reboot",
"action" : "systemctl reboot",
"text" : "Reboot",
"keybind" : "r"
}

46
.config/wlogout/style.css Normal file
View File

@ -0,0 +1,46 @@
* {
background-image: none;
}
window {
background-color: rgba(0, 0, 0, 0.5);
}
button {
color: #ffffff;
background-color: rgba(0, 0, 0, 1);
border-style: solid;
border-color: #33ccfe;
border-width: 2px;
border-radius: 10px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
margin: 50px;
}
button:focus, button:active, button:hover {
background-color: #353c4a;
outline-style: none;
}
#logout {
background-image: image(
url("/usr/share/wlogout/icons/logout.png"),
url("/usr/local/share/wlogout/icons/logout.png")
);
}
#shutdown {
background-image: image(
url("/usr/share/wlogout/icons/shutdown.png"),
url("/usr/local/share/wlogout/icons/shutdown.png")
);
}
#reboot {
background-image: image(
url("/usr/share/wlogout/icons/reboot.png"),
url("/usr/local/share/wlogout/icons/reboot.png")
);
}

3
.gitignore vendored
View File

@ -9,10 +9,13 @@
/.config/*
!/.config/alacritty
!/.config/fish
!/.config/fuzzel
!/.config/htop
!/.config/hypr
!/.config/nushell
!/.config/nvim
!/.config/swaylock
!/.config/tmux
!/.config/vscode
!/.config/waybar
!/.config/wlogout