Compare commits

..
18 Commits
Author SHA1 Message Date
pyrschtjag 4ce40fd9c3 style(waybar): cleanup formatting in razer-battery script 2026-10-30 11:12:05 +04:00
pyrschtjag 343d0a20ae refactor(waybar): finalize modular layout structure 2026-10-30 11:10:22 +04:00
pyrschtjag a1a8b49116 env: set GTK_THEME and QT_STYLE_OVERRIDE variables 2026-10-30 11:10:13 +04:00
pyrschtjag 8e825194fa refactor(systemd): update and cleanup user units 2026-10-30 11:10:07 +04:00
pyrschtjag cc16fee5aa style(rofi): update color scheme 2026-10-30 11:10:01 +04:00
pyrschtjag 6526f27f01 fix(sway): tweak theme styles and add keybindings 2026-10-30 11:09:56 +04:00
pyrschtjag 4e3c4e6470 feat(waybar): add custom language layout indicator script 2026-10-30 11:09:50 +04:00
pyrschtjag ce3c0735c6 refactor(waybar): split main config into standalone modules 2026-10-30 11:09:34 +04:00
pyrschtjag b9b5fc4104 feat(systemd): add dbus proxy service for systemd-nspawn 2026-10-30 11:09:24 +04:00
pyrschtjag f24a55d57a config(swaddle): update layout and application rules 2026-10-30 11:09:13 +04:00
pyrschtjag 7180a46e7d style(rofi): update theme and add new launcher category 2026-10-30 11:09:07 +04:00
pyrschtjag 596cec1e99 style(rmpc): refine ui theme settings 2026-10-30 11:08:55 +04:00
pyrschtjag a3c454edc1 style(foot): apply catppuccin color theme 2026-10-30 11:08:41 +04:00
pyrschtjag 4aa861dde8 style(dunst): adjust notification window geometry 2026-10-30 11:08:32 +04:00
pyrschtjag 57c83a61af docs: update installation and setup instructions 2026-10-30 11:08:25 +04:00
pyrschtjag 404e88878a chore(zsh): update .zshrc aliases and env 2026-10-30 11:08:16 +04:00
pyrschtjag e611a1852b chore(git): update .gitignore rules 2026-10-30 11:07:47 +04:00
pyrschtjag a282614a6a feat(nvim): add new plugins and bootstrap lazy.nvim 2026-10-30 11:07:30 +04:00
34 changed files with 893 additions and 719 deletions

No files matched your search

+1
View File
@@ -3,3 +3,4 @@ mpd/database
mpd/log
mpd/mpd
mpd/sticker.sql
mpd/state
+73 -68
View File
@@ -1,78 +1,98 @@
HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000
SAVEHIST=10000
bindkey -v
bindkey -v
bindkey -M viins "^[[3~" delete-char
bindkey -M vicmd "^[[3~" delete-char
bindkey -M viins "^[[2~" overwrite-mode
bindkey -M vicmd "^[[2~" overwrite-mode
bindkey -M viins "^[[H" beginning-of-line
bindkey -M vicmd "^[[H" beginning-of-line
bindkey -M viins "^[[F" end-of-line
bindkey -M vicmd "^[[F" end-of-line
bindkey -M viins "^[[5~" history-search-backward
bindkey -M vicmd "^[[5~" history-search-backward
bindkey -M viins "^[[6~" history-search-forward
bindkey -M vicmd "^[[6~" history-search-forward
KEYTIMEOUT=1
setopt APPEND_HISTORY
setopt SHARE_HISTORY
setopt PROMPT_SUBST
autoload -U compinit
compinit
source <(fzf --zsh)
if [[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
if [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
if [[ -f ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh ]]; then
source ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh
fi
if [[ -f ~/.zsh/plugins/fzf-tab-completion/zsh/fzf-tab-completion.plugin.zsh ]]; then
source ~/.zsh/plugins/fzf-tab-completion/zsh/fzf-tab-completion.plugin.zsh
fi
typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[default]='fg=#eceff4'
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#bf616a'
ZSH_HIGHLIGHT_STYLES[command]='fg=#88c0d0'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=#88c0d0'
ZSH_HIGHLIGHT_STYLES[alias]='fg=#8fbcbb'
ZSH_HIGHLIGHT_STYLES[function]='fg=#88c0d0'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=#81a1c1,bold'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#81a1c1'
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#d08770'
ZSH_HIGHLIGHT_STYLES[path]='fg=#eceff4,underline'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#eceff4,underline'
ZSH_HIGHLIGHT_STYLES[optstring]='fg=#ebcb8b'
ZSH_HIGHLIGHT_STYLES[argument-base]='fg=#eceff4'
ZSH_HIGHLIGHT_STYLES[dollar-parameter]='fg=#b48ead'
ZSH_HIGHLIGHT_STYLES[dollar-parameter_extension]='fg=#b48ead'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#a3be8c'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#a3be8c'
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#a3be8c'
ZSH_HIGHLIGHT_STYLES[comment]='fg=#4c566a,italic'
ZSH_HIGHLIGHT_STYLES[globbing]='fg=#ebcb8b'
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#d08770'
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor)
typeset -gA ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[comment]='fg=#585b70'
ZSH_HIGHLIGHT_STYLES[alias]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[function]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[command]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=#a6e3a1,italic'
ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#fab387,italic'
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#fab387'
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#fab387'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#cba6f7'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[command-substitution-quoted]='fg=#f9e2af'
ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-quoted]='fg=#f9e2af'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#f9e2af'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument-unclosed]='fg=#eba0ac'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#f9e2af'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument-unclosed]='fg=#eba0ac'
ZSH_HIGHLIGHT_STYLES[rc-quote]='fg=#f9e2af'
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument-unclosed]='fg=#eba0ac'
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[assign]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[named-fd]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[numeric-fd]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#eba0ac'
ZSH_HIGHLIGHT_STYLES[path]='fg=#cdd6f4,underline'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#cdd6f4,underline'
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#f38ba8,underline'
ZSH_HIGHLIGHT_STYLES[globbing]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#cba6f7'
ZSH_HIGHLIGHT_STYLES[back-quoted-argument-unclosed]='fg=#eba0ac'
ZSH_HIGHLIGHT_STYLES[redirection]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[arg0]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[default]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[cursor]='fg=#cdd6f4'
zstyle ':fzf-tab:*' fzf-flags \
--color=fg:#eceff4,bg:#2e3440,fg+:#eceff4,bg+:#3b4252 \
--color=hl:#88c0d0,hl+:#88c0d0,info:#b48ead,prompt:#81a1c1 \
--color=pointer:#88c0d0,marker:#a3be8c,spinner:#88c0d0,header:#5e81ac \
--color=border:#4c566a,label:#8fbcbb,query:#eceff4 \
--color=preview-fg:#eceff4,preview-bg:#2e3440,preview-border:#4c566a,preview-label:#8fbcbb \
--color=gutter:#3b4252,separator:#434c5e,scrollbar:#5e81ac,preview-scrollbar:#5e81ac \
--color=disabled:#4c566a \
--prompt='❯ '
export FZF_DEFAULT_OPTS="
--color=fg:#eceff4,bg:#2e3440,fg+:#eceff4,bg+:#3b4252
--color=hl:#88c0d0,hl+:#88c0d0,info:#b48ead,prompt:#81a1c1
--color=pointer:#88c0d0,marker:#a3be8c,spinner:#88c0d0,header:#5e81ac
--color=border:#4c566a,label:#8fbcbb,query:#eceff4
--color=preview-fg:#eceff4,preview-bg:#2e3440,preview-border:#4c566a,preview-label:#8fbcbb
--color=gutter:#3b4252,separator:#434c5e,scrollbar:#5e81ac,preview-scrollbar:#5e81ac
--color=disabled:#4c566a
--prompt='❯ '
"
--color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \
--color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \
--color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
--color=selected-bg:#45475A \
--color=border:#6C7086,label:#CDD6F4
export FZF_DEFAULT_OPTS=" \
--color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \
--color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \
--color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
--color=selected-bg:#45475A \
--color=border:#6C7086,label:#CDD6F4"
prompt_symbol() {
if [[ "$KEYMAP" == "vicmd" ]]; then
print -r -- "%F{#ebcb8b}❮%f"
@@ -80,20 +100,16 @@ prompt_symbol() {
print -r -- "%F{#88c0d0}❯%f"
fi
}
update_vim_prompt() {
zle reset-prompt
}
zle-keymap-select() {
update_vim_prompt
}
zle-line-init() {
zle -K viins
update_vim_prompt
}
git_prompt_info() {
local branch
local staged
@@ -102,19 +118,15 @@ git_prompt_info() {
local deleted
local conflicts
local git_state=""
branch=$(git branch --show-current 2>/dev/null)
if [[ -z "$branch" ]]; then
return
fi
staged=$(git diff --cached --name-only 2>/dev/null | wc -l | tr -d ' ')
modified=$(git diff --name-only 2>/dev/null | wc -l | tr -d ' ')
untracked=$(git ls-files --others --exclude-standard 2>/dev/null | wc -l | tr -d ' ')
deleted=$(git diff --name-only --diff-filter=D 2>/dev/null | wc -l | tr -d ' ')
conflicts=$(git diff --name-only --diff-filter=U 2>/dev/null | wc -l | tr -d ' ')
if (( staged > 0 )); then
git_state+=" %F{#b48ead} ${staged}%f"
fi
@@ -122,7 +134,7 @@ git_prompt_info() {
git_state+=" %F{#ebcb8b} ${modified}%f"
fi
if (( untracked > 0 )); then
git_state+=" %F{#a3be8c} ${untracked}%f"
git_state+=" %F{#a3be8c} ${untracked}%f"
fi
if (( deleted > 0 )); then
git_state+=" %F{#d08770} ${deleted}%f"
@@ -133,31 +145,24 @@ git_prompt_info() {
if [[ -n "$git_state" ]]; then
git_state=" %F{#88c0d0}❯%f${git_state}"
fi
print -r -- " %F{#88c0d0}❯%f %F{#8fbcbb}󰘬 ${branch}%f${git_state}"
}
precmd() {
local exit_code=$?
if (( exit_code != 0 )); then
PROMPT_EXIT="%F{#941703}✗${exit_code}%f "
else
PROMPT_EXIT=""
fi
}
nvim() {
printf '\033]0;nvim\007'
command nvim "$@"
printf '\033]0;foot\007'
}
zle -N zle-keymap-select
zle -N zle-line-init
PROMPT='%F{#eceff4}%~%f$(git_prompt_info) $(prompt_symbol) '
vi() { nvim "$@"; }
vim() { nvim "$@"; }
PROMPT='%F{#eceff4}%~%f$(git_prompt_info) $(prompt_symbol) '
alias rmpc='printf "\033]0;rmpc\007"; command rmpc; printf "\033]0;foot\007"'
+17
View File
@@ -55,6 +55,7 @@ sudo pacman -S \
mpc \
mpd \
mpd-mpris \
mpdscribble \
playerctl \
xdg-utils \
xdg-desktop-portal-gtk \
@@ -131,12 +132,28 @@ rbw config set base_url $url
rbw config set pinentry ~/.local/bin/pinentry-rofi-wrapper
```
```bash
mkdir -p ~/.config/mpdscribble
touch ~/.config/mpdscribble/mpdscribble.conf
```
Документация: https://man.archlinux.org/man/extra/mpdscribble/mpdscribble.1.en
```ini
url=https://post.audioscrobbler.com/
username=$username
password=$password
```
```bash
systemctl --user enable --now clipvault
systemctl --user enable --now gtk-settings
systemctl --user enable --now per-window-layout
systemctl --user enable --now swaddle
systemctl --user enable --now swayidle
systemctl --user enable --now mpd.service
systemctl --user enable --now mpd-mpris.service
systemctl --user enable --now work-dbus-proxy.service
```
## Скриншоты
+25 -36
View File
@@ -1,33 +1,31 @@
[global]
monitor = 0
follow = mouse
origin = top-right
offset = 5x5
monitor = 1
follow = none
origin = bottom-right
offset = 0x0
scale = 0
width = 340
height = 300
width = 350
height = 250
notification_limit = 5
progress_bar = true
progress_bar_height = 10
progress_bar_frame_width = 0
progress_bar_min_width = 150
progress_bar_max_width = 300
progress_bar_height = 20
progress_bar_frame_width = 1
progress_bar_min_width = 330
progress_bar_max_width = 330
progress_bar_corner_radius = 0
indicate_hidden = yes
separator_height = 0
separator_height = 1
padding = 10
horizontal_padding = 10
text_icon_padding = 10
frame_width = 0
frame_width = 1
separator_color = frame
sort = yes
idle_threshold = 120
gap_size = 5
font = Noto Mono 10
gap_size = 0
frame_color = "#313244"
highlight = "#313244"
font = JetBrains Mono 10
line_height = 0
markup = full
format = "<b>%s</b>\n%b"
@@ -38,45 +36,36 @@
ignore_newline = no
stack_duplicates = true
hide_duplicate_count = false
show_indicators = yes
icon_position = left
show_indicators = no
icon_position = right
min_icon_size = 32
max_icon_size = 48
sticky_history = yes
history_length = 20
dmenu = rofi -dmenu -p dunst
browser = xdg-open
always_run_script = true
title = Dunst
class = Dunst
corner_radius = 0
ignore_dbusclose = false
force_xwayland = false
force_xinerama = false
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
[experimental]
per_monitor_dpi = false
[urgency_low]
background = "#2e3440"
foreground = "#eceff4"
background = "#1e1e2e"
foreground = "#cdd6f4"
timeout = 2
[urgency_normal]
background = "#2e3440"
foreground = "#eceff4"
background = "#1e1e2e"
foreground = "#cdd6f4"
timeout = 8
[urgency_critical]
background = "#2e3440"
foreground = "#bf616a"
background = "#1e1e2e"
foreground = "#1e1e2e"
frame_color = "#f38ba8"
timeout = 0
+29 -5
View File
@@ -1,11 +1,35 @@
[main]
font=Noto Mono:size=10
font=JetBrains Mono:size=10,Symbols Nerd Font Mono:size=10
dpi-aware=no
pad=0x0
[colors-dark]
background=2e3440
[key-bindings]
clipboard-copy=Control+Shift+c
clipboard-paste=Control+Shift+v
[colors-dark]
cursor=11111b f5e0dc
foreground=cdd6f4
background=1e1e2e
regular0=45475a
regular1=f38ba8
regular2=a6e3a1
regular3=f9e2af
regular4=89b4fa
regular5=f5c2e7
regular6=94e2d5
regular7=bac2de
bright0=585b70
bright1=f38ba8
bright2=a6e3a1
bright3=f9e2af
bright4=89b4fa
bright5=f5c2e7
bright6=94e2d5
bright7=a6adc8
16=fab387
17=f5e0dc
selection-foreground=cdd6f4
selection-background=414356
search-box-no-match=11111b f38ba8
search-box-match=cdd6f4 313244
jump-labels=11111b fab387
urls=89b4fa
+1 -140
View File
@@ -1,141 +1,2 @@
require('core.configs')
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"shaunsingh/nord.nvim",
lazy = false,
priority = 1000,
config = function()
vim.cmd("colorscheme nord")
end,
},
{
"NvChad/nvim-colorizer.lua",
opts = {
filetypes = { "*" },
user_default_options = {
RGB = true,
RRGGBB = true,
names = false,
RRGGBBAA = true,
css = true,
mode = "background",
},
},
},
{
"MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
ft = { "markdown" },
opts = {},
},
{
"nvim-tree/nvim-tree.lua",
version = "*",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("nvim-tree").setup({
view = { side = "left", width = 30 },
})
end,
},
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
if not status_ok then
return
end
configs.setup({
ensure_installed = { "python", "bash", "lua", "vim", "markdown" },
highlight = { enable = true },
})
end,
},
{
"lewis6991/gitsigns.nvim",
opts = {},
},
{
"akinsho/bufferline.nvim",
version = "*",
dependencies = "nvim-tree/nvim-web-devicons",
config = function()
require("bufferline").setup({
options = {
mode = "buffers",
separator_style = "thick",
diagnostics = "nvim_lsp",
enforce_regular_tabs = true,
tab_size = 14,
},
highlights = {
fill = {
bg = "#2e3440",
},
background = {
bg = "#2e3440",
fg = "#eceff4",
},
buffer_selected = {
bg = "#3b4252",
fg = "#eceff4",
bold = false,
italic = false,
},
close_button_selected = {
bg = "#3b4252",
fg = "#eceff4",
},
close_button = {
bg = "#2e3440",
fg = "#4c566a",
},
close_button_visible = {
bg = "#2e3440",
fg = "#4c566a",
},
separator = {
bg = "#2e3440",
fg = "#2e3440",
},
separator_selected = {
bg = "#3b4252",
fg = "#3b4252",
},
indicator_selected = {
bg = "#3b4252",
fg = "#88c0d0",
},
modified_selected = {
bg = "#3b4252",
fg = "#a3be8c",
},
modified = {
bg = "#2e3440",
fg = "#4c566a",
},
modified_visible = {
bg = "#2e3440",
fg = "#4c566a",
},
},
})
end,
},
})
require("config.lazy")
+24
View File
@@ -0,0 +1,24 @@
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)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
require("lazy").setup({
spec = {
{ import = "plugins" },
},
install = { colorscheme = { "habamax" } },
checker = { enabled = true },
})
+8
View File
@@ -1,6 +1,14 @@
vim.keymap.set("", "<up>", "<nop>", { noremap = true })
vim.keymap.set("", "<left>", "<nop>", { noremap = true })
vim.keymap.set("", "<right>", "<nop>", { noremap = true })
vim.keymap.set("", "<down>", "<nop>", { noremap = true })
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.number = true
vim.opt.relativenumber = true
vim.o.termguicolors = true
vim.cmd("syntax enable")
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
+29
View File
@@ -0,0 +1,29 @@
return {
"akinsho/bufferline.nvim",
version = "*",
dependencies = {
"nvim-tree/nvim-web-devicons",
"catppuccin/nvim",
},
config = function()
require("bufferline").setup({
options = {
mode = "buffers",
separator_style = "thick",
always_show_bufferline = true,
diagnostics = "nvim_lsp",
offsets = {
{
filetype = "NvimTree",
text = "File Explorer",
text_align = "left",
separator = true,
},
},
},
})
vim.keymap.set("n", "<S-h>", "<cmd>BufferLineCyclePrev<CR>", { silent = true, desc = "Prev buffer" })
vim.keymap.set("n", "<S-l>", "<cmd>BufferLineCycleNext<CR>", { silent = true, desc = "Next buffer" })
vim.keymap.set("n", "<leader>x", "<cmd>bdelete<CR>", { silent = true, desc = "Close current buffer" })
end,
}
+20
View File
@@ -0,0 +1,20 @@
return {
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
require("catppuccin").setup({
flavour = "mocha",
transparent_background = false,
term_colors = true,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
telescope = { enabled = true },
},
})
vim.cmd.colorscheme("catppuccin")
end,
}
+18
View File
@@ -0,0 +1,18 @@
return {
"catgoose/nvim-colorizer.lua",
event = { "BufReadPre", "BufNewFile" },
opts = {
filetypes = { "*" },
user_default_options = {
RGB = true,
RRGGBB = true,
names = true,
RRGGBBAA = false,
rgb_fn = false,
hsl_fn = false,
css = false,
css_fn = false,
mode = "background",
},
},
}
+43
View File
@@ -0,0 +1,43 @@
return {
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup({
signs = {
add = { text = "▎" },
change = { text = "▎" },
delete = { text = "_" },
topdelete = { text = "‾" },
changedelete = { text = "~" },
untracked = { text = "┆" },
},
current_line_blame = true,
current_line_blame_opts = {
virt_text = true,
virt_text_pos = "eol",
delay = 500,
},
on_attach = function(bufnr)
local gs = package.loaded.gitsigns
local function map(mode, l, r, opts)
opts = opts or {}
opts.buffer = bufnr
vim.keymap.set(mode, l, r, opts)
end
map("n", "]c", function()
if vim.wo.diff then return "]c" end
vim.schedule(function() gs.next_hunk() end)
return "<Ignore>"
end, { expr = true, desc = "Next git hunk" })
map("n", "[c", function()
if vim.wo.diff then return "[c" end
vim.schedule(function() gs.prev_hunk() end)
return "<Ignore>"
end, { expr = true, desc = "Prev git hunk" })
map("n", "<leader>hs", gs.stage_hunk, { desc = "Stage git hunk" })
map("n", "<leader>hr", gs.reset_hunk, { desc = "Reset git hunk" })
map("n", "<leader>hp", gs.preview_hunk, { desc = "Preview git hunk" })
map("n", "<leader>hb", function() gs.blame_line{full=true} end, { desc = "Git blame line" })
end,
})
end,
}
+25
View File
@@ -0,0 +1,25 @@
return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
require("nvim-tree").setup({
sort = {
sorter = "case_sensitive",
},
view = {
width = 30,
},
renderer = {
group_empty = true,
},
filters = {
dotfiles = false,
},
})
vim.keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", { silent = true, desc = "Toggle file explorer" })
end,
}
+8
View File
@@ -0,0 +1,8 @@
{
"plugins": {
"catppuccin": {
"rev": "edefef779ab08ce1a4a404713e3012b0d202bd35",
"src": "https://github.com/catppuccin/nvim"
}
}
}
+69 -69
View File
@@ -10,21 +10,21 @@
header_background_color: None,
modal_background_color: None,
modal_backdrop: false,
preview_label_style: (fg: "#88c0d0"),
preview_metadata_group_style: (fg: "#88c0d0", modifiers: "Bold"),
highlighted_item_style: (fg: "#88c0d0", modifiers: "Bold"),
current_item_style: (fg: "#2e3440", bg: "#88c0d0", modifiers: "Bold"),
borders_style: (fg: "#88c0d0"),
highlight_border_style: (fg: "#88c0d0"),
preview_label_style: (fg: "#b4befe"),
preview_metadata_group_style: (fg: "#b4befe", modifiers: "Bold"),
highlighted_item_style: (fg: "#89dceb", modifiers: "Bold"),
current_item_style: (fg: "#11111b", bg: "#b4befe", modifiers: "Bold"),
borders_style: (fg: "#b4befe"),
highlight_border_style: (fg: "#b4befe"),
symbols: (
song: "S",
dir: "D",
playlist: "P",
marker: "M",
ellipsis: "...",
song_style: (fg: "#88c0d0"),
dir_style: (fg: "#ebcb8b"),
playlist_style: (fg: "#b48ead"),
song_style: (fg: "#89b4fa"),
dir_style: (fg: "#a6e3a1"),
playlist_style: (fg: "#cba6f7"),
),
level_styles: (
info: (fg: "blue", bg: "black"),
@@ -35,20 +35,20 @@
),
progress_bar: (
symbols: ["█", "█", "█", "█", "█"],
track_style: (fg: "#4c566a"),
elapsed_style: (fg: "#88c0d0"),
thumb_style: (fg: "#5e81ac"),
track_style: (fg: "#313244"),
elapsed_style: (fg: "#74c7ec"),
thumb_style: (fg: "#89b4fa"),
use_track_when_empty: true,
),
scrollbar: (
symbols: ["│", "█", "", ""],
track_style: (),
ends_style: (),
thumb_style: (fg: "#88c0d0"),
thumb_style: (fg: "#b4befe"),
),
tab_bar: (
active_style: (fg: "#2e3440", bg: "#88c0d0"),
inactive_style: (fg: "#eceff4", bg: "#2e3440"),),
active_style: (fg: "#181825", bg: "#94e2d5"),
inactive_style: (fg: "#cdd6f4", bg: "#1e1e2e"),),
lyrics: (
timestamp: false
),
@@ -70,32 +70,32 @@
],
song_table_format: [
(
prop: (kind: Property(Artist), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))
prop: (kind: Property(Artist), style: (fg: "#cdd6f4"),
default: (kind: Text("unknown"), style: (fg: "#cdd6f4"))
),
label_prop: (kind: Text("artist"), style: (fg: "#8fbcbb", modifiers: "Bold")),
label_prop: (kind: Text("artist"), style: (fg: "#74c7ec", modifiers: "Bold")),
width: "20%",
),
(
prop: (kind: Property(Title), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))
prop: (kind: Property(Title), style: (fg: "#cdd6f4"),
default: (kind: Text("unknown"), style: (fg: "#cdd6f4"))
),
label_prop: (kind: Text("title"), style: (fg: "#a3be8c", modifiers: "Bold")),
label_prop: (kind: Text("title"), style: (fg: "#a6e3a1", modifiers: "Bold")),
width: "35%",
),
(
prop: (kind: Property(Album), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))
prop: (kind: Property(Album), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#bac2de"))
),
label_prop: (kind: Text("album"), style: (fg: "#b48ead", modifiers: "Bold")),
width: "30%",
label_prop: (kind: Text("album"), style: (fg: "#fab387", modifiers: "Bold")),
width: "35%",
),
(
prop: (kind: Property(Duration), style: (fg: "#eceff4"),
default: (kind: Text("-"), style: (fg: "#eceff4"))
prop: (kind: Property(Duration), style: (fg: "#a6adc8"),
default: (kind: Text("-"), style: (fg: "#a6adc8"))
),
label_prop: (kind: Text("duration"), style: (fg: "#ebcb8b", modifiers: "Bold")),
width: "15%",
label_prop: (kind: Text("duration"), style: (fg: "#cba6f7", modifiers: "Bold")),
width: "10%",
alignment: Right,
),
],
@@ -161,59 +161,59 @@
),
"state": Pane(Property(
content: [
(kind: Text("state: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Status(StateV2( ))), style: (fg: "#eceff4")),
(kind: Text("state: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Status(StateV2( ))), style: (fg: "#bac2de")),
], align: Left, scroll_speed: 1
)),
"artist": Pane(Property(
content: [
(kind: Text("artist: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Song(Artist)), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))),
(kind: Text("artist: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Artist)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1
)),
"album": Pane(Property(
content: [
(kind: Text("album: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Song(Album)), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))),
(kind: Text("album: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Album)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1
)),
"track": Pane(Property(
content: [
(kind: Text("track: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Song(Track)), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))),
(kind: Text("track: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Track)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1
)),
"title": Pane(Property(
content: [
(kind: Text("title: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Song(Title)), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))),
(kind: Text("title: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Title)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1
)),
"date": Pane(Property(
content: [
(kind: Text("date: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Song(Other("date"))), style: (fg: "#eceff4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))),
(kind: Text("date: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Other("date"))), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1
)),
"elapsed": Pane(Property(
content: [
(kind: Text("elapsed: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Status(Elapsed)), style: (fg: "#eceff4")),
(kind: Text("elapsed: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Status(Elapsed)), style: (fg: "#bac2de")),
(kind: Text(" / ")),
(kind: Property(Status(Duration)), style: (fg: "#eceff4")),
(kind: Property(Status(Duration)), style: (fg: "#bac2de")),
],
align: Left, scroll_speed: 1
)),
"bitrate": Pane(Property(
content: [
(kind: Text("bitrate: "), style: (fg: "#88c0d0", modifiers: "Bold")),
(kind: Property(Status(Bitrate)), style: (fg: "#eceff4")),
(kind: Text(" kbps"), style: (fg: "#eceff4")),
(kind: Text("bitrate: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Status(Bitrate)), style: (fg: "#bac2de")),
(kind: Text(" kbps"), style: (fg: "#bac2de")),
],
align: Left, scroll_speed: 1
)),
@@ -222,9 +222,9 @@
panes: [
(size: "100%", pane: Pane(Volume(kind: Slider(
symbols: (filled: "█", thumb: "█", track: "█"),
filled_style: (fg: "#d08770"),
track_style: (fg: "#4c566a"),
thumb_style: (fg: "#bf616a"),
filled_style: (fg: "#f5e0dc"),
track_style: (fg: "#313244"),
thumb_style: (fg: "#f2cdcd"),
)))),
], align: Right
),
@@ -246,36 +246,36 @@
(
size: "6",
pane: Pane(Property(content: [
(kind: Text(" "), style: (bg: "#4c566a")),
(kind: Text(" "), style: (bg: "#313244")),
(kind: Property(Status(RepeatV2(
on_label: "z",
off_label: "z",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"),
on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#cdd6f4", bg: "#313244"),
)))),
(kind: Property(Status(RandomV2(
on_label: "x",
off_label: "x",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"),
on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#cdd6f4", bg: "#313244"),
)))),
(kind: Property(Status(ConsumeV2(
on_label: "c",
off_label: "c",
oneshot_label: "c",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"),
oneshot_style: (fg: "#d08770", bg: "#4c566a", modifiers: "Bold"),
on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#cdd6f4", bg: "#313244"),
oneshot_style: (fg: "#f38ba8", bg: "#313244", modifiers: "Bold"),
)))),
(kind: Property(Status(SingleV2(
on_label: "v",
off_label: "v",
oneshot_label: "v",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"),
oneshot_style: (fg: "#d08770", bg: "#4c566a", modifiers: "Bold"),
on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#cdd6f4", bg: "#313244"),
oneshot_style: (fg: "#f38ba8", bg: "#313244", modifiers: "Bold"),
)))),
(kind: Text(" "), style: (bg: "#4c566a")),
(kind: Text(" "), style: (bg: "#313244")),
],
align: Right
))
@@ -285,8 +285,8 @@
"input_mode": Pane(Property(
content: [
(kind: Transform(Replace(content: (kind: Property(Status(InputMode()))), replacements: [
(match: "Normal", replace: (kind: Text(" normal "), style: (fg: "#eceff4", bg: "#4c566a"))),
(match: "Insert", replace: (kind: Text(" insert "), style: (fg: "#2e3440", bg: "#a3be8c"))),
(match: "Normal", replace: (kind: Text(" normal "), style: (fg: "#cdd6f4", bg: "#313244"))),
(match: "Insert", replace: (kind: Text(" insert "), style: (fg: "#11111b", bg: "#94e2d5"))),
])))
], align: Left
)),
+2 -8
View File
@@ -1,29 +1,23 @@
@import "config.rasi"
window {
children: [ mainbox ];
}
mainbox {
background-color: transparent;
children: [ inputbar, listview, message ];
}
element {
children: [ element-icon, element-text ];
}
element-icon {
size: 0px;
margin: 0;
}
message {
background-color: @NORD1;
background-color: @mantle;
padding: 6px 0 12px 12px;
}
textbox {
text-color: @NORD6;
text-color: @text;
background-color: transparent;
}
+59 -66
View File
@@ -4,116 +4,115 @@ configuration {
scroll-method: 1;
show-icons: true;
sidebar-mode: true;
modi: "drun,internet:~/.config/rofi/rofi-filter internet,dev:~/.config/rofi/rofi-filter dev,games:~/.config/rofi/rofi-filter games,system:~/.config/rofi/rofi-filter system,media:~/.config/rofi/rofi-filter media,notifications:~/.config/rofi/rofi-filter notifications,clipboard:~/.config/rofi/rofi-filter clipboard,powermenu:~/.config/rofi/rofi-filter powermenu";
modi: "drun,internet:~/.config/rofi/rofi-filter internet,dev:~/.config/rofi/rofi-filter dev,games:~/.config/rofi/rofi-filter games,system:~/.config/rofi/rofi-filter system,media:~/.config/rofi/rofi-filter media,office:~/.config/rofi/rofi-filter office,notifications:~/.config/rofi/rofi-filter notifications,clipboard:~/.config/rofi/rofi-filter clipboard,powermenu:~/.config/rofi/rofi-filter powermenu";
display-drun: "ALL";
display-internet: "NET";
display-dev: "DEV";
display-games: "GMS";
display-system: "SYS";
display-office: "DOC";
display-media: "MED";
display-notifications: "NTF";
display-clipboard: "CLP";
display-powermenu: "PWR";
kb-remove-to-eol: "";
kb-mode-complete: "";
kb-remove-char-back: "BackSpace,Shift+BackSpace";
kb-row-down: "Down,Control+j";
kb-row-up: "Up,Control+k";
kb-accept-entry: "Control+m,Return,KP_Enter";
kb-mode-next: "Alt+l,Shift+Right,Control+Tab";
kb-mode-previous: "Alt+h,Shift+Left,Control+ISO_Left_Tab";
kb-row-down: "Down,Control+n,Alt+j";
kb-row-up: "Up,Control+p,Alt+k";
}
* {
NORD0: #2e3440;
NORD1: #3b4252;
NORD2: #434c5e;
NORD3: #4c566a;
NORD4: #d8dee9;
NORD5: #e5e9f0;
NORD6: #eceff4;
NORD7: #8fbcbb;
NORD8: #88c0d0;
NORD9: #81a1c1;
NORD10: #5e81ac;
NORD11: #bf616a;
NORD12: #d08770;
NORD13: #ebcb8b;
NORD14: #a3be8c;
NORD15: #b48ead;
font: "Noto Sans Mono 10";
rosewater: #f5e0dc;
flamingo: #f2cdcd;
pink: #f5c2e7;
mauve: #cba6f7;
red: #f38ba8;
maroon: #eba0ac;
peach: #fab387;
yellow: #f9e2af;
green: #a6e3a1;
teal: #94e2d5;
sky: #89dceb;
sapphire: #74c7ec;
blue: #89b4fa;
lavender: #b4befe;
text: #cdd6f4;
subtext1: #bac2de;
subtext0: #a6adc8;
overlay2: #9399b2;
overlay1: #7f849c;
overlay0: #6c7086;
surface2: #585b70;
surface1: #45475a;
surface0: #313244;
base: #1e1e2e;
mantle: #181825;
crust: #11111b;
font: "JetBrains Mono 10";
}
window {
background-color: @NORD0;
location: north west;
anchor: north west;
width: 540px;
height: 550px;
x-offset: 5px;
y-offset: 5px;
background-color: @base;
border-color: @surface0;
location: center;
anchor: center;
width: 660px;
height: 560px;
x-offset: 0px;
y-offset: 0px;
padding: 0px;
border: 0px;
border: 1px;
border-radius: 0px;
children: [ sb-mainbox ];
}
sb-mainbox {
orientation: horizontal;
spacing: 0px;
children: [ left-bar-container, vertibox ];
}
left-bar-container {
background-color: @NORD0;
background-color: @base;
orientation: vertical;
width: 40px;
expand: false;
children: [ mode-switcher ];
}
mode-switcher {
orientation: vertical;
spacing: 0px;
padding: 0px;
}
button {
text-color: @NORD4;
text-color: @text;
background-color: transparent;
border-color: transparent;
horizontal-align: 0.5;
vertical-align: 0.5;
padding: 6px 0px;
border: 0px 0px 0px 2px;
font: "Noto Sans Mono Bold 8";
padding: 8px 0px;
border: 0px 0px 0px 0px;
}
button selected {
text-color: @NORD6;
background-color: @NORD1;
border-color: @NORD8;
text-color: @text;
background-color: @surface0;
border-color: @lavender;
}
vertibox {
background-color: @NORD0;
background-color: @base;
orientation: vertical;
spacing: 0px;
padding: 0px;
children: [ inputbar, listview ];
}
inputbar {
background-color: transparent;
expand: false;
children: [ entry ];
}
entry {
text-color: @NORD6;
text-color: @text;
background-color: transparent;
placeholder-color: @NORD4;
placeholder-color: @subtext0;
padding: 6px;
placeholder: " [search...]";
}
listview {
background-color: transparent;
margin: 0px;
@@ -125,42 +124,36 @@ listview {
dynamic: true;
scrollbar: false;
}
element {
background-color: transparent;
padding: 8px;
children: [ element-icon, element-text ];
}
element normal.normal,
element normal.urgent,
element normal.active {
text-color: @NORD6;
text-color: @text;
background-color: transparent;
}
element alternate.normal,
element alternate.urgent,
element alternate.active {
text-color: @NORD6;
text-color: @text;
background-color: transparent;
}
element selected.normal,
element selected.urgent,
element selected.active {
text-color: @NORD4;
background-color: @NORD1;
border: 0px 0px 0px 2px;
border-color: @NORD8;
text-color: @text;
background-color: @surface0;
border: 0px 0px 0px 0px;
border-color: @lavender;
}
element-icon {
background-color: transparent;
size: 14px;
margin: 0 8px 0 6px;
}
element-text {
text-color: inherit;
background-color: transparent;
+9 -13
View File
@@ -1,28 +1,24 @@
@import "config.rasi"
window {
width: 540px;
height: 60px;
width: 660px;
height: 72px;
children: [ vertibox ];
}
vertibox {
children: [ label-box, inputbar ];
}
label-box {
background-color: @NORD1;
background-color: @surface0;
expand: false;
children: [ prompt ];
}
prompt {
text-color: @NORD4;
background-color: @NORD1;
border-color: @NORD8;
padding: 6px;
border: 0px 0px 0px 2px;
text-color: @text;
background-color: @surface0;
padding: 8px 6px;
}
entry {
placeholder: " [password...]";
expand: false;
padding: 8px 6px;
}
+3 -5
View File
@@ -1,11 +1,9 @@
#!/usr/bin/env bash
set -uo pipefail
tmp_dir="/tmp/cliphist"
mkdir -p "$tmp_dir"
mode="${1:-}"
selection="${2:-}"
if [[ -n "$selection" ]]; then
if [[ "$mode" == "clipboard" ]]; then
id="${selection%% *}"
@@ -31,7 +29,6 @@ if [[ -n "$selection" ]]; then
fi
exit 0
fi
case "$mode" in
clipboard)
find "$tmp_dir" -type f -mmin +30 -delete 2>/dev/null
@@ -60,11 +57,12 @@ case "$mode" in
"\(.appname.data): \(.summary.data) — \(.body.data)"
'
;;
internet|dev|media|games|system)
internet|dev|media|office|games|system)
case "$mode" in
internet) category="Network" ;;
dev) category="Development" ;;
media) category="AudioVideo" ;;
office) category="Office" ;;
games) category="Game" ;;
system) category="System" ;;
esac
@@ -86,7 +84,7 @@ case "$mode" in
printf '%s\0info\x1flock\n' "<span foreground=\"#88c0d0\"></span> lock"
printf '%s\0info\x1fsuspend\n' "<span foreground=\"#5e81ac\">󰤄</span> suspend"
printf '%s\0info\x1freboot\n' "<span foreground=\"#ebcb8b\"></span> reboot"
printf '%s\0info\x1fshutdown\n' "<span foreground=\"#bf616a\">⏻</span> shutdown"
printf '%s\0info\x1fshutdown\n' "<span foreground=\"#bf616a\">󰐥</span> shutdown"
printf '%s\0info\x1flogout\n' "<span foreground=\"#b48ead\">󰗽</span> logout"
;;
esac
-1
View File
@@ -1,5 +1,4 @@
debug = false
[server]
inhibit_duration = 25
sleep_duration = 5
+58 -16
View File
@@ -1,12 +1,40 @@
client.focused #88c0d0 #88c0d0 #eceff4 #88c0d0 #88c0d0
client.focused_inactive #00000000 #00000000 #81a1c1 #00000000 #00000000
client.unfocused #00000000 #00000000 #81a1c1 #00000000 #00000000
client.urgent #d08770 #d08770 #eceff4 #d08770 #d08770
font pango:Noto Sans Mono 10
smart_gaps off
smart_borders off
gaps inner 3
gaps outer 1
set $rosewater #f5e0dc
set $flamingo #f2cdcd
set $pink #f5c2e7
set $mauve #cba6f7
set $red #f38ba8
set $maroon #eba0ac
set $peach #fab387
set $yellow #f9e2af
set $green #a6e3a1
set $teal #94e2d5
set $sky #89dceb
set $sapphire #74c7ec
set $blue #89b4fa
set $lavender #b4befe
set $text #cdd6f4
set $subtext1 #bac2de
set $subtext0 #a6adc8
set $overlay2 #9399b2
set $overlay1 #7f849c
set $overlay0 #6c7086
set $surface2 #585b70
set $surface1 #45475a
set $surface0 #313244
set $base #1e1e2e
set $mantle #181825
set $crust #11111b
client.focused $surface0 $surface0 $text $maroon $teal
client.focused_inactive $surface0 $surface0 $text $surface0 $surface0
client.unfocused $base $base $text $surface0 $surface0
client.urgent $peach $surface0 $peach $peach $peach
client.placeholder $surface0 $base $text $surface0 $surface0
client.background $base
font pango:JetBrainsMono Nerd Font 10
smart_gaps no
smart_borders yes
gaps inner 0
gaps outer 0
default_border pixel 1
default_floating_border pixel 1
titlebar_border_thickness 0
@@ -31,14 +59,18 @@ workspace 3 output HDMI-A-2
workspace 4 output HDMI-A-2
workspace 5 output HDMI-A-2
workspace 6 output HDMI-A-2
workspace 7 output DP-1
workspace 8 output DP-1
workspace 9 output DP-2
workspace 7 output HDMI-A-2
workspace 8 output HDMI-A-2
workspace 9 output DP-1
workspace 10 output DP-2
workspace 1
output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill
output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill
output DP-2 bg ~/Pictures/wallhaven-4gx713.jpg fill
#output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill
#output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill
#output DP-2 bg ~/Pictures/wallhaven-4gx713.jpg fill
seat * xcursor_theme Bibata-Original-Classic 28
output DP-1 bg $base solid_color
output HDMI-A-2 bg $base solid_color
output DP-2 bg $base solid_color
output DP-1 resolution 1280x1024 position 0,220
output HDMI-A-2 resolution 1920x1080 position 1280,0
output DP-2 resolution 1280x102 position 3200,220
@@ -82,6 +114,10 @@ bindsym --to-code $mod+m focus mode_toggle
bindsym --to-code $mod+Shift+m floating toggle
bindsym --to-code $mod+s scratchpad show
bindsym --to-code $mod+Shift+s move scratchpad
bindsym --to-code $mod+w layout toggle split
bindsym --to-code $mod+t layout tabbed
bindsym --to-code $mod+Ctrl+$right splith
bindsym --to-code $mod+Ctrl+$down splitv
bindsym --to-code --locked XF86AudioRaiseVolume exec wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindsym --to-code --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindsym --to-code --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
@@ -92,11 +128,15 @@ bindsym --to-code --locked XF86AudioNext exec playerctl next
bindsym --to-code --locked XF86AudioPause exec playerctl play-pause
bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause
bindsym --to-code --locked XF86AudioPrev exec playerctl previous
bindsym --to-code XF86Tools exec foot zsh -ic 'rmpc'
bindsym --to-code XF86Explorer exec $file
bindsym --to-code XF86Mail exec firefox
#bindsym --to-code XF86Calculator exec firefox
bindsym --to-code Print exec area=$(slurp) && grim -g "$area" - | wl-copy && notify-send -u low "Screenshot" "Captured: $area"
bindsym --to-code $mod+Print exec active_class=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true) | .app_id // .window_properties.class // "unknown"') && geom=$(swaymsg -t get_tree | jq -r '.. | select(.focused? == true) | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"') && grim -g "$geom" - | wl-copy && notify-send -u low "Screenshot" "Captured: $active_class"
bindsym --to-code ctrl+Print exec monitor=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused==true) | .name') && grim -o "$monitor" - | wl-copy && notify-send -u low "Screenshot" "Captured: $monitor"
bindsym --to-code $mod+u exec sh -c 'rbw get ed-ssh | jq -r ".fields[]? | select(.name==\"privateKey\") | .text" | ssh-add -'
bindsym --to-code $mod+b exec rofi-rbw --selector rofi --selector-args="-theme ~/.config/rofi/bitwarden.rasi -mesg 'alt+1: <span foreground=\\\"#d8dee9\\\">type username/password</span>\nalt+2: <span foreground=\\\"#d8dee9\\\">type username</span>\talt+3: <span foreground=\\\"#d8dee9\\\">type password</span>\talt+4: <span foreground=\\\"#d8dee9\\\">type totp</span>\talt+u: <span foreground=\\\"#d8dee9\\\">copy username</span>\talt+c: <span foreground=\\\"#d8dee9\\\">copy password</span>\talt+t: <span foreground=\\\"#d8dee9\\\">copy totp</span>\talt+m: <span foreground=\\\"#d8dee9\\\">menu</span>\t\talt+s: <span foreground=\\\"#d8dee9\\\">sync logins</span>'"
bindsym --to-code $mod+b exec rofi-rbw --selector rofi --selector-args="-theme ~/.config/rofi/bitwarden.rasi -mesg 'alt+1: <span foreground=\\\"#a6adc8\\\">type username/password</span>\nalt+2: <span foreground=\\\"#a6adc8\\\">type username</span>\talt+3: <span foreground=\\\"#a6adc8\\\">type password</span>\talt+4: <span foreground=\\\"#a6adc8\\\">type totp</span>\t\talt+u: <span foreground=\\\"#a6adc8\\\">copy username</span>\talt+c: <span foreground=\\\"#a6adc8\\\">copy password</span>\talt+t: <span foreground=\\\"#a6adc8\\\">copy totp</span>\t\talt+m: <span foreground=\\\"#a6adc8\\\">menu</span>\t\talt+s: <span foreground=\\\"#a6adc8\\\">sync logins</span>'"
mode "resize" {
bindsym --to-code $left resize shrink width 10px
bindsym --to-code $down resize grow height 10px
@@ -124,3 +164,5 @@ bindsym --to-code $mod+r mode "resize"
bindsym --to-code $mod+Shift+r mode "reload sway? [y/n]"
bindsym --to-code $mod+x mode "lock sway? [y/n]"
bindsym --to-code $mod+Shift+x mode "exit sway? [y/n]"
#for_window [title="rmpc"] floating enable, resize set width 800 height 500, move position center
for_window [class="steam_app(.*)"] floating enable
+30 -29
View File
@@ -1,39 +1,40 @@
ignore-empty-password
show-failed-attempts
daemonize
color=2e3440
indicator-idle-visible
indicator-caps-lock
disable-caps-lock-text
hide-keyboard-layout
indicator-radius=42
indicator-thickness=2
font=Noto Sans Mono
font-size=10
inside-color=00000000
inside-clear-color=00000000
inside-ver-color=00000000
inside-wrong-color=00000000
inside-caps-lock-color=00000000
ring-color=4c566a
ring-clear-color=ebcb8b
ring-ver-color=a3be8c
ring-wrong-color=bf616a
ring-caps-lock-color=d08770
line-color=00000000
line-clear-color=00000000
line-ver-color=00000000
line-wrong-color=00000000
line-caps-lock-color=00000000
text-color=eceff4
text-clear-color=ebcb8bff
text-ver-color=a3be8cff
text-wrong-color=bf616aff
text-caps-lock-color=d08770ff
separator-color=00000000
key-hl-color=88c0d0ff
caps-lock-key-hl-color=88c0d0ff
bs-hl-color=ebcb8bff
indicator-thickness=4
font=JetBrains Mono
font-size=13
color=1e1e2e
bs-hl-color=f5e0dc
caps-lock-bs-hl-color=f5e0dc
caps-lock-key-hl-color=a6e3a1
inside-color=1e1e2e
inside-clear-color=1e1e2e
inside-caps-lock-color=1e1e2e
inside-ver-color=1e1e2e
inside-wrong-color=1e1e2e
key-hl-color=a6e3a1
layout-bg-color=00000000
layout-border-color=00000000
layout-text-color=d8dee9ff
layout-text-color=cdd6f4
line-color=00000000
line-clear-color=00000000
line-caps-lock-color=00000000
line-ver-color=00000000
line-wrong-color=00000000
ring-color=313244
ring-clear-color=f5e0dc
ring-caps-lock-color=fab387
ring-ver-color=89b4fa
ring-wrong-color=eba0ac
separator-color=00000000
text-color=cdd6f4
text-clear-color=f5e0dc
text-caps-lock-color=fab387
text-ver-color=89b4fa
text-wrong-color=eba0ac
+1 -3
View File
@@ -2,11 +2,9 @@
Description=clipvault
PartOf=graphical-session.target
After=graphical-session.target
[Service]
ExecStart=/usr/bin/wl-paste --watch clipvault store --max-entries 5000
ExecStart=/usr/bin/wl-paste --watch clipvault store --max-entries 200
Restart=on-failure
RestartSec=2
[Install]
WantedBy=graphical-session.target
-2
View File
@@ -2,11 +2,9 @@
Description=GTK dark mode settings
After=graphical-session.target
PartOf=graphical-session.target
[Service]
Type=oneshot
ExecStart=/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark
ExecStart=/usr/bin/gsettings set org.gnome.desktop.interface color-scheme prefer-dark
[Install]
WantedBy=graphical-session.target
-3
View File
@@ -1,10 +1,8 @@
[Unit]
Description=Per window keyboard layout (sway)
Documentation=https://github.com/pyrschtjag
PartOf=graphical-session.target
After=graphical-session.target
BindsTo=graphical-session.target
[Service]
Type=notify
NotifyAccess=main
@@ -19,6 +17,5 @@ StandardOutput=journal
StandardError=journal
TimeoutStartSec=30
TimeoutStopSec=5
[Install]
WantedBy=graphical-session.target
-2
View File
@@ -1,12 +1,10 @@
[Unit]
Description=Swaddle
[Service]
Type=simple
ExecStart=/usr/sbin/swaddle
NoNewPrivileges=yes
Restart=on-failure
RestartSec=3
[Install]
WantedBy=graphical-session.target
-2
View File
@@ -3,7 +3,6 @@ Description=Sway idle daemon
PartOf=graphical-session.target
After=graphical-session.target
BindsTo=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/swayidle -w \
@@ -16,6 +15,5 @@ Restart=always
RestartSec=1
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=graphical-session.target
+8
View File
@@ -0,0 +1,8 @@
[Service]
ExecStart=/usr/bin/xdg-dbus-proxy unix:path=%t/bus %t/work-bus --filter \
--talk=org.freedesktop.Notifications \
--talk=org.kde.StatusNotifierWatcher \
--own=org.kde.*
Restart=on-failure
[Install]
WantedBy=default.target
+2
View File
@@ -1,4 +1,6 @@
export QT_QPA_PLATFORMTHEME=qt6ct
export QT_QPA_PLATFORMTHEME_QT6=qt6ct
export GTK_THEME=Adwaita:dark
export QT_STYLE_OVERRIDE=adwaita-dark
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"
export SWAY_UNSUPPORTED_GPU=true
+27 -180
View File
@@ -1,197 +1,44 @@
{
"layer": "top",
"position": "top",
"margin-top": 5,
"margin-left": 5,
"margin-right": 5,
"height": 34,
[{
"include": ["~/.config/waybar/modules"],
"output": "HDMI-A-2",
"modules-left": [
"custom/rofi",
"sway/workspaces",
"sway/mode"
],
"modules-center": [
"clock#time"
"clock#time",
"clock#date"
],
"modules-right": [
"tray",
"privacy",
"idle_inhibitor",
"group/keyboard",
"disk",
"group/hardware",
"group/temp",
"custom/mouse",
"group/audio"
]
}, {
"include": ["~/.config/waybar/modules"],
"output": ["DP-1", "DP-2"],
"no-center": true,
"modules-left": [
"sway/workspaces",
"sway/mode"
],
"group/keyboard": {
"orientation": "horizontal",
/*"modules": [
"keyboard-state",
"sway/language"
]*/
"modules": ["sway/language"]
},
"group/hardware": {
"orientation": "horizontal",
"modules": [
"cpu",
"memory"
"modules-right": [
"privacy",
"idle_inhibitor",
"group/keyboard",
"disk",
"group/hardware",
"group/temp",
"custom/mouse",
"group/audio",
"clock#date",
"clock#time"
]
},
"group/temp": {
"orientation": "horizontal",
"modules": [
"temperature#cpu",
"custom/gpu_temperature"
]
},
"group/audio": {
"orientation": "horizontal",
"modules": [
"wireplumber#source",
"wireplumber#sink"
]
},
"custom/rofi": {
"exec-if": "[ \"$USER\" != \"pyrschtjag\" ]",
"exec": "echo '{\"text\": \"\", \"tooltip\": \"\"}'",
"return-type": "json",
"format": "<span color='#88c0d0'>{icon}</span><span rise='1000' font='Symbols Nerd Font Mono 8'>{text}</span>",
"format-icons": ["󰀻"],
"interval": "once",
"on-click": "rofi -show drun",
"tooltip": false
},
"sway/workspaces": {
"format": "<span color='#88c0d0' weight='bold'>{icon}</span><span rise='1000' font='Symbols Nerd Font Mono 8'>{windows}</span>",
"window-rewrite": {
"class<firefox>": " 󰈹",
"class<foot>": " ",
"class<discord>": " 󰙯",
"class<org.telegram.desktop>": " ",
"class<steam>": " 󰓓",
"class<org.gajim.Gajim>": " 󰷕",
"class<Spotify>": " ",
"title<nvim>": " ",
"title<rmpc>": " 󰎈",
"title<mc(.*)>": " ",
"": " "
},
"tooltip": false
},
"sway/mode": {
"format": "<span color='#ebcb8b'>{}</span>",
"max-length": 18,
"tooltip": false
},
"clock#time": {
"format": "{:%H:%M}",
"tooltip": false
},
"tray": {
"icon-size": 12,
"spacing": 10,
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "<span color='#d08770' rise='1000' font='Symbols Nerd Font Mono 8'></span>",
// "deactivated": ""
"deactivated": "<span color='#ebcb8b' rise='1000' font='Symbols Nerd Font Mono 8'>󱎴</span>"
},
"signal": 13,
"tooltip": false,
"cursor": ""
},
"sway/language": {
// "format": "{}",
"format": "<span color='#8fbcbb' rise='1000' font='Symbols Nerd Font Mono 8'>󰌌</span> {}",
"format-en": "EN",
"format-ru": "RU",
"tooltip": false
},
"keyboard-state": {
"format": "{name}{icon}",
"numlock": true,
"capslock": true,
"scrolllock": false,
"format-icons": {
"numlock": {
"locked": "<span color='#a3be8c' rise='1000' font='Symbols Nerd Font Mono 8'>󰎠</span> ",
"unlocked": ""
},
"capslock": {
"locked": "<span color='##8fbcbb' rise='1000' font='Symbols Nerd Font Mono 8'>󰌌</span> <span color='#bf616a' rise='1000' font='Symbols Nerd Font Mono 8'>󰬴</span> ",
"unlocked": "<span color='##8fbcbb' rise='1000' font='Symbols Nerd Font Mono 8'>󰌌</span> "
}
}
},
"disk": {
// enable when release waybar 0.16+
// "format": "<span color='#a3be8c' rise='1000' font='Symbols Nerd Font Mono 8'></span> {free:5G}G",
"format": "<span color='#a3be8c' rise='1000' font='Symbols Nerd Font Mono 8'></span> {free:7}",
"paths": ["/"],
"interval": 120,
"tooltip": false
},
"cpu": {
"format": "<span color='#5e81ac' rise='1000' font='Symbols Nerd Font Mono 8'></span> {usage:03}%",
"interval": 5,
"tooltip": false
},
"memory": {
"format": "<span color='#81a1c1' rise='1000' font='Symbols Nerd Font Mono 8'></span> {percentage:03}%",
"interval": 5,
"tooltip": false
},
"temperature#cpu": {
"format": "<span color='#ebcb8b' rise='1000' font='Symbols Nerd Font Mono 8'></span> {temperatureC:03}°C",
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"interval": 5,
"tooltip": false
},
"custom/gpu_temperature": {
"format": "<span color='#d08770' rise='1000' font='Symbols Nerd Font Mono 8'>󰢮</span> {text}°C",
"exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | xargs printf '%03d'",
"interval": 5,
"tooltip": false
},
"wireplumber#source": {
"format": "<span color='#b48ead' rise='1000' font='Symbols Nerd Font Mono 8'></span> {volume:03}%",
"format-muted": "<span color='#4c566a' rise='1000' font='Symbols Nerd Font Mono 8'></span> 000%",
"node-type": "Audio/Source",
"scroll-step": 5,
"tooltip": false
},
"wireplumber#sink": {
"format": "<span color='#b48ead' rise='1000' font='Symbols Nerd Font Mono 8'>{icon}</span> {volume:03}%",
"format-muted": "<span color='#4c566a' rise='1000' font='Symbols Nerd Font Mono 8'></span> 000%",
"format-icons": ["", "", ""],
"scroll-step": 5,
"tooltip": false
}
}
}]
+199
View File
@@ -0,0 +1,199 @@
{
"layer": "bottom",
"position": "top",
"margin-top": 0,
"margin-left": 0,
"margin-right": 0,
"height": 35,
"group/hardware": {
"orientation": "horizontal",
"modules": [
"cpu",
"memory"
]
},
"group/temp": {
"orientation": "horizontal",
"modules": [
"temperature#cpu",
"custom/gpu_temperature"
]
},
"group/audio": {
"orientation": "horizontal",
"modules": [
"wireplumber#source",
"wireplumber#sink"
]
},
"group/keyboard": {
"orientation": "horizontal",
"modules": [
"custom/kbd",
"keyboard-state#num",
"keyboard-state#caps",
"custom/language"
]
},
"custom/rofi": {
"exec-if": "[ \"$USER\" != \"pyrschtjag\" ]",
"exec": "echo '{\"text\": \"\", \"tooltip\": \"\"}'",
"return-type": "json",
"format": "<span color='#b4befe'>{icon}</span>{text}",
"format-icons": ["󰀻"],
"interval": "once",
"on-click": "rofi -show drun",
"tooltip": false
},
"sway/workspaces": {
"format": "<span color='#cdd6f4' weight='bold'>{icon}</span>{windows}",
"window-rewrite": {
"class<firefox>": " <span color='#fab387'>󰈹</span>",
"class<foot>": " <span color='#f5c2e7'></span>",
"class<discord>": " <span color='#cba6f7'>󰙯</span>",
"class<org.telegram.desktop>": " <span color='#74c7ec'></span>",
"class<steam>": " <span color='#a6adc8'>󰓓</span>",
"class<org.gajim.Gajim>": " <span color='#f38ba8'>󰷕</span>",
"class<Spotify>": " <span color='#a6e3a1'></span>",
"class<steam_app(.*)>": " <span color='#89b4fa'>󰊗</span>",
"title<nvim>": " <span color='#f5e0dc'></span>",
"title<rmpc>": " <span color='#b4befe'></span>",
"title<mc(.*)>": " <span color='#89dceb'></span>",
"title<\\[work\\] .*Thunderbird.*>": " <span color='#89dceb'></span>",
"title<\\[work\\] .*Firefox.*>": " <span color='#f38ba8'>󰈹</span>",
"title<\\[work\\] .*Element.*>": " <span color='#a6e3a1'>󰭻</span>",
"title<\\[work\\] .*Octo Browser.*>": " <span color='#89b4fa'></span>",
"title<(.*)Octium>": " <span color='#89b4fa'></span>",
"title<(.*)LibreOffice Calc>": " <span color='#a6e3a1'></span>",
"": " <span color='#f5c2e7'></span>"
},
"disable-scroll": true,
"disable-auto-back-and-forth": true,
"tooltip": false,
"cursor": ""
},
"sway/mode": {
"format": "<span color='#f9e2af'>{}</span>",
"max-length": 18,
"tooltip": false
},
"clock#time": {
"format": "<span color='#a6e3a1'></span> {:%H:%M}",
"tooltip": false
},
"clock#date": {
"format": "<span color='#94e2d5'>󰃭</span> {:%d/%m}",
"tooltip": false
},
"privacy": {
"icon-spacing": 10,
"icon-size": 14,
"transition-duration": 0,
"modules": [
{
"type": "screenshare",
"tooltip": false
},
{
"type": "audio-in",
"tooltip": false
}
]
},
"tray": {
"icon-size": 14,
"spacing": 10,
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "<span color='#fab387'></span>",
"deactivated": "<span color='#f9e2af'>󱎴</span>"
},
"signal": 13,
"tooltip": false,
"cursor": ""
},
"custom/kbd": {
"format": "<span color='#94e2d5'>󰌌</span>",
"tooltip": false
},
"keyboard-state#num": {
"numlock": true,
"capslock": false,
"format": "{icon}",
"format-icons": {
"locked": "<span color='#a3be8c'>󰎠</span>",
"unlocked": ""
}
},
"keyboard-state#caps": {
"numlock": false,
"capslock": true,
"format": "{icon}",
"format-icons": {
"locked": "<span color='#bf616a'>󰬴</span>",
"unlocked": ""
}
},
"sway/language": {
"format": "<span text_transform='uppercase'>{shortDescription}</span>",
"tooltip": false
},
"custom/language": {
"exec": "~/.config/waybar/scripts/lang.sh",
"format": "{}",
"tooltip": false
},
"disk": {
"format": "<span color='#a6e3a1'></span> {specific_free:0.1f}GB",
"paths": ["/"],
"unit": "GB",
"interval": 120,
"tooltip": false
},
"cpu": {
"format": "<span color='#cba6f7'></span> {usage:03}%",
"interval": 5,
"tooltip": false
},
"memory": {
"format": "<span color='#89b4fa'></span> {percentage:03}%",
"interval": 5,
"tooltip": false
},
"temperature#cpu": {
"format": "<span color='#f2cdcd'></span> {temperatureC:03}°C",
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"interval": 5,
"tooltip": false
},
"custom/gpu_temperature": {
"format": "<span color='#f5c2e7'>󰢮</span> {text}°C",
"exec": "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | xargs printf '%03d'",
"interval": 5,
"tooltip": false
},
"custom/mouse": {
"format": "{text} {percentage}%",
"exec": "~/.config/waybar/scripts/razer-battery.sh",
"return-type": "json",
"interval": 60,
"tooltip": false
},
"wireplumber#source": {
"format": "<span color='#f9e2af'></span> {volume:03}%",
"format-muted": "<span color='#585b70'></span> {volume:03}%",
"node-type": "Audio/Source",
"scroll-step": 5,
"tooltip": false
},
"wireplumber#sink": {
"format": "<span color='#eba0ac'>{icon}</span> {volume:03}%",
"format-muted": "<span color='#585b70'></span> {volume:03}%",
"format-icons": ["", "", ""],
"scroll-step": 5,
"tooltip": false
}
}
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
print_layout() {
swaymsg -t get_inputs | jq -r '
[.[] | select(.type=="keyboard" and .xkb_active_layout_name != null)]
| first | .xkb_active_layout_name
| if test("Russian") then "RU"
elif test("English") then "EN"
else .[0:2] end'
}
while true; do
print_layout
swaymsg -t subscribe -m '["input"]' | while read -r _; do
print_layout
done
sleep 1
done
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
output=$(razer-cli --battery print 2>/dev/null)
charge=$(echo "$output" | grep -oP 'charge:\s*\K\d+')
charging=$(echo "$output" | grep -oP 'charging:\s*\K\w+')
mouse_icon="<span color='#b4befe'>󰍽</span>"
bolt_icon="<span color='#f9e2af'></span>"
if [[ -z "$charge" ]]; then
echo '{"text": "'"$mouse_icon"'", "tooltip": "", "class": ""}'
exit 0
fi
if [[ "$charging" == "True" ]]; then
text="${mouse_icon} ${bolt_icon}"
class="charging"
else
text="${mouse_icon}"
class="idle"
fi
echo "{\"text\": \"${text}\", \"tooltip\": \"\", \"percentage\": ${charge}, \"class\": \"${class}\"}"
+71 -71
View File
@@ -1,158 +1,158 @@
@define-color nord0 #2e3440;
@define-color nord1 #3b4252;
@define-color nord2 #434c5e;
@define-color nord3 #4c566a;
@define-color nord4 #d8dee9;
@define-color nord5 #e5e9f0;
@define-color nord6 #eceff4;
@define-color nord7 #8fbcbb;
@define-color nord8 #88c0d0;
@define-color nord9 #81a1c1;
@define-color nord10 #5e81ac;
@define-color nord11 #bf616a;
@define-color nord12 #d08770;
@define-color nord13 #ebcb8b;
@define-color nord14 #a3be8c;
@define-color nord15 #b48ead;
@define-color rosewater #f5e0dc;
@define-color flamingo #f2cdcd;
@define-color pink #f5c2e7;
@define-color mauve #cba6f7;
@define-color red #f38ba8;
@define-color maroon #eba0ac;
@define-color peach #fab387;
@define-color yellow #f9e2af;
@define-color green #a6e3a1;
@define-color teal #94e2d5;
@define-color sky #89dceb;
@define-color sapphire #74c7ec;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color text #cdd6f4;
@define-color subtext1 #bac2de;
@define-color subtext0 #a6adc8;
@define-color overlay2 #9399b2;
@define-color overlay1 #7f849c;
@define-color overlay0 #6c7086;
@define-color surface2 #585b70;
@define-color surface1 #45475a;
@define-color surface0 #313244;
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
* {
font-family: "Noto Sans Mono";
font-size: 13px;
font-family: "JetBrains Mono", "Symbols Nerd Font Mono";
font-size: 10pt;
border: 0px;
border-radius: 0px;
box-shadow: none;
text-shadow: none;
transition: none;
}
window#waybar {
color: @nord6;
background-color: @nord0;
color: @text;
background-color: @base;
}
#custom-rofi {
margin: 0 10px 0 10px;
}
#workspaces button {
color: @nord4;
color: @subtext1;
padding: 0px 10px;
border-bottom: 2px solid transparent;
}
#workspaces button.visible {
color: @nord5;
background-color: transparent;
border-bottom: 2px solid @nord9;
color: @subtext0;
background-color: @surface0;
}
#workspaces button.focused {
color: @nord6;
background-color: @nord1;
border-bottom: 2px solid @nord8;
color: @text;
background-color: @surface0;
}
#workspaces button.urgent {
color: @nord8;
color: @subtext1;
}
#workspaces button:hover {
background: transparent;
border-bottom: 2px solid transparent;
}
#workspaces button:hover.active,
#workspaces button:hover.visible {
background-color: @nord1;
border-bottom: 2px solid @nord8;
background-color: @surface0;
}
#workspaces button.urgent {
border-bottom: 2px solid @nord12;
background-color: @peach;
}
#mode {
margin: 0 0 0 10px;
}
#tray menu {
background-color: @nord0;
background-color: @base;
padding: 4px 0;
}
#tray menu menuitem {
color: @nord4;
color: @subtext1;
padding: 4px 0px;
border-left: 2px solid transparent;
}
#tray menu menuitem:hover {
background-color: @nord1;
color: @nord6;
border-left: 2px solid @nord8;
color: @color;
background-color: @surface0;
border-left: 2px solid @lavender;
}
#tray menu separator {
background-color: @nord3;
background-color: @surface0;
margin: 4px 0;
min-height: 1px;
}
#tray > .passive { opacity: 0.6; }
#tray > .needs-attention { color: @nord8; }
#tray > .needs-attention { color: @lavender; }
/* delete when release waybar 0.16+ */
#idle_inhibitor {
margin: 0 10px 0 0;
opacity: 1;
}
/* enable when release waybar 0.16+
#idle_inhibitor {
margin: 0;
opacity: 0;
}
#idle_inhibitor.activated {
margin: 0 10px 0 0;
opacity: 1;
}
*/
#tray,
#keyboard,
#custom-kbd,
#disk,
#hardware,
#temp,
#custom-mouse,
#clock.time,
#clock.date,
#privacy,
#audio {
margin: 0 10px 0 0;
}
#wireplumber.muted {
color: @nord3;
color: @surface2;
}
#wireplumber {
color: @nord6;
color: @text;
}
#cpu,
#temperature.cpu,
#wireplumber.source {
padding: 0 5px 0 0;
}
#memory,
#custom-gpu_temperature,
#wireplumber.sink {
padding: 0 0 0 5px;
}
#keyboard-state.num label,
#keyboard-state.caps label {
margin: 0;
opacity: 0;
}
#keyboard-state.num label.locked,
#keyboard-state.caps label.locked {
margin: 0 10px 0 0;
opacity: 1;
}
#privacy-item.screenshare {
color: @maroon;
}
#privacy-item.audio-in {
color: @red;
}
tooltip {
background-color: @nord0;
background-color: @base;
}
tooltip label {
background-color: @nord0;
color: @nord6;
background-color: @base;
color: @text;
}