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/log
mpd/mpd mpd/mpd
mpd/sticker.sql mpd/sticker.sql
mpd/state
+73 -68
View File
@@ -1,78 +1,98 @@
HISTFILE="$HOME/.zsh_history" HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000 HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
bindkey -v 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 KEYTIMEOUT=1
setopt APPEND_HISTORY setopt APPEND_HISTORY
setopt SHARE_HISTORY setopt SHARE_HISTORY
setopt PROMPT_SUBST setopt PROMPT_SUBST
autoload -U compinit autoload -U compinit
compinit compinit
source <(fzf --zsh) source <(fzf --zsh)
if [[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then if [[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi fi
if [[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then 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 source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi fi
if [[ -f ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh ]]; then if [[ -f ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh ]]; then
source ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh source ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh
fi fi
if [[ -f ~/.zsh/plugins/fzf-tab-completion/zsh/fzf-tab-completion.plugin.zsh ]]; then 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 source ~/.zsh/plugins/fzf-tab-completion/zsh/fzf-tab-completion.plugin.zsh
fi fi
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main cursor)
typeset -A ZSH_HIGHLIGHT_STYLES typeset -gA ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[default]='fg=#eceff4' ZSH_HIGHLIGHT_STYLES[comment]='fg=#585b70'
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=#bf616a' ZSH_HIGHLIGHT_STYLES[alias]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[command]='fg=#88c0d0' ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[builtin]='fg=#88c0d0' ZSH_HIGHLIGHT_STYLES[global-alias]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[alias]='fg=#8fbcbb' ZSH_HIGHLIGHT_STYLES[function]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[function]='fg=#88c0d0' ZSH_HIGHLIGHT_STYLES[command]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[precommand]='fg=#81a1c1,bold' ZSH_HIGHLIGHT_STYLES[precommand]='fg=#a6e3a1,italic'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#81a1c1' ZSH_HIGHLIGHT_STYLES[autodirectory]='fg=#fab387,italic'
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#d08770' ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#fab387'
ZSH_HIGHLIGHT_STYLES[path]='fg=#eceff4,underline' ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=#fab387'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#eceff4,underline' ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='fg=#cba6f7'
ZSH_HIGHLIGHT_STYLES[optstring]='fg=#ebcb8b' ZSH_HIGHLIGHT_STYLES[builtin]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[argument-base]='fg=#eceff4' ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[dollar-parameter]='fg=#b48ead' ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=#a6e3a1'
ZSH_HIGHLIGHT_STYLES[dollar-parameter_extension]='fg=#b48ead' ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=#a3be8c' ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=#a3be8c' ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter-unquoted]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=#a3be8c' ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]='fg=#cdd6f4'
ZSH_HIGHLIGHT_STYLES[comment]='fg=#4c566a,italic' ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[globbing]='fg=#ebcb8b' ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=#f38ba8'
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=#d08770' 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 \ zstyle ':fzf-tab:*' fzf-flags \
--color=fg:#eceff4,bg:#2e3440,fg+:#eceff4,bg+:#3b4252 \ --color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \
--color=hl:#88c0d0,hl+:#88c0d0,info:#b48ead,prompt:#81a1c1 \ --color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \
--color=pointer:#88c0d0,marker:#a3be8c,spinner:#88c0d0,header:#5e81ac \ --color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
--color=border:#4c566a,label:#8fbcbb,query:#eceff4 \ --color=selected-bg:#45475A \
--color=preview-fg:#eceff4,preview-bg:#2e3440,preview-border:#4c566a,preview-label:#8fbcbb \ --color=border:#6C7086,label:#CDD6F4
--color=gutter:#3b4252,separator:#434c5e,scrollbar:#5e81ac,preview-scrollbar:#5e81ac \ export FZF_DEFAULT_OPTS=" \
--color=disabled:#4c566a \ --color=bg+:#313244,bg:#1E1E2E,spinner:#F5E0DC,hl:#F38BA8 \
--prompt='❯ ' --color=fg:#CDD6F4,header:#F38BA8,info:#CBA6F7,pointer:#F5E0DC \
--color=marker:#B4BEFE,fg+:#CDD6F4,prompt:#CBA6F7,hl+:#F38BA8 \
export FZF_DEFAULT_OPTS=" --color=selected-bg:#45475A \
--color=fg:#eceff4,bg:#2e3440,fg+:#eceff4,bg+:#3b4252 --color=border:#6C7086,label:#CDD6F4"
--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='❯ '
"
prompt_symbol() { prompt_symbol() {
if [[ "$KEYMAP" == "vicmd" ]]; then if [[ "$KEYMAP" == "vicmd" ]]; then
print -r -- "%F{#ebcb8b}❮%f" print -r -- "%F{#ebcb8b}❮%f"
@@ -80,20 +100,16 @@ prompt_symbol() {
print -r -- "%F{#88c0d0}❯%f" print -r -- "%F{#88c0d0}❯%f"
fi fi
} }
update_vim_prompt() { update_vim_prompt() {
zle reset-prompt zle reset-prompt
} }
zle-keymap-select() { zle-keymap-select() {
update_vim_prompt update_vim_prompt
} }
zle-line-init() { zle-line-init() {
zle -K viins zle -K viins
update_vim_prompt update_vim_prompt
} }
git_prompt_info() { git_prompt_info() {
local branch local branch
local staged local staged
@@ -102,19 +118,15 @@ git_prompt_info() {
local deleted local deleted
local conflicts local conflicts
local git_state="" local git_state=""
branch=$(git branch --show-current 2>/dev/null) branch=$(git branch --show-current 2>/dev/null)
if [[ -z "$branch" ]]; then if [[ -z "$branch" ]]; then
return return
fi fi
staged=$(git diff --cached --name-only 2>/dev/null | wc -l | tr -d ' ') 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 ' ') 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 ' ') 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 ' ') 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 ' ') conflicts=$(git diff --name-only --diff-filter=U 2>/dev/null | wc -l | tr -d ' ')
if (( staged > 0 )); then if (( staged > 0 )); then
git_state+=" %F{#b48ead} ${staged}%f" git_state+=" %F{#b48ead} ${staged}%f"
fi fi
@@ -122,7 +134,7 @@ git_prompt_info() {
git_state+=" %F{#ebcb8b} ${modified}%f" git_state+=" %F{#ebcb8b} ${modified}%f"
fi fi
if (( untracked > 0 )); then if (( untracked > 0 )); then
git_state+=" %F{#a3be8c} ${untracked}%f" git_state+=" %F{#a3be8c} ${untracked}%f"
fi fi
if (( deleted > 0 )); then if (( deleted > 0 )); then
git_state+=" %F{#d08770} ${deleted}%f" git_state+=" %F{#d08770} ${deleted}%f"
@@ -133,31 +145,24 @@ git_prompt_info() {
if [[ -n "$git_state" ]]; then if [[ -n "$git_state" ]]; then
git_state=" %F{#88c0d0}❯%f${git_state}" git_state=" %F{#88c0d0}❯%f${git_state}"
fi fi
print -r -- " %F{#88c0d0}❯%f %F{#8fbcbb}󰘬 ${branch}%f${git_state}" print -r -- " %F{#88c0d0}❯%f %F{#8fbcbb}󰘬 ${branch}%f${git_state}"
} }
precmd() { precmd() {
local exit_code=$? local exit_code=$?
if (( exit_code != 0 )); then if (( exit_code != 0 )); then
PROMPT_EXIT="%F{#941703}✗${exit_code}%f " PROMPT_EXIT="%F{#941703}✗${exit_code}%f "
else else
PROMPT_EXIT="" PROMPT_EXIT=""
fi fi
} }
nvim() { nvim() {
printf '\033]0;nvim\007' printf '\033]0;nvim\007'
command nvim "$@" command nvim "$@"
printf '\033]0;foot\007' printf '\033]0;foot\007'
} }
zle -N zle-keymap-select zle -N zle-keymap-select
zle -N zle-line-init zle -N zle-line-init
PROMPT='%F{#eceff4}%~%f$(git_prompt_info) $(prompt_symbol) '
vi() { nvim "$@"; } vi() { nvim "$@"; }
vim() { 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"' 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 \ mpc \
mpd \ mpd \
mpd-mpris \ mpd-mpris \
mpdscribble \
playerctl \ playerctl \
xdg-utils \ xdg-utils \
xdg-desktop-portal-gtk \ xdg-desktop-portal-gtk \
@@ -131,12 +132,28 @@ rbw config set base_url $url
rbw config set pinentry ~/.local/bin/pinentry-rofi-wrapper 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 ```bash
systemctl --user enable --now clipvault systemctl --user enable --now clipvault
systemctl --user enable --now gtk-settings systemctl --user enable --now gtk-settings
systemctl --user enable --now per-window-layout systemctl --user enable --now per-window-layout
systemctl --user enable --now swaddle systemctl --user enable --now swaddle
systemctl --user enable --now swayidle 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] [global]
monitor = 0 monitor = 1
follow = mouse follow = none
origin = top-right origin = bottom-right
offset = 5x5 offset = 0x0
scale = 0 scale = 0
width = 350
width = 340 height = 250
height = 300
notification_limit = 5 notification_limit = 5
progress_bar = true progress_bar = true
progress_bar_height = 10 progress_bar_height = 20
progress_bar_frame_width = 0 progress_bar_frame_width = 1
progress_bar_min_width = 150 progress_bar_min_width = 330
progress_bar_max_width = 300 progress_bar_max_width = 330
progress_bar_corner_radius = 0 progress_bar_corner_radius = 0
indicate_hidden = yes indicate_hidden = yes
separator_height = 0 separator_height = 1
padding = 10 padding = 10
horizontal_padding = 10 horizontal_padding = 10
text_icon_padding = 10 text_icon_padding = 10
frame_width = 0 frame_width = 1
separator_color = frame separator_color = frame
sort = yes sort = yes
idle_threshold = 120 idle_threshold = 120
gap_size = 5 gap_size = 0
frame_color = "#313244"
font = Noto Mono 10 highlight = "#313244"
font = JetBrains Mono 10
line_height = 0 line_height = 0
markup = full markup = full
format = "<b>%s</b>\n%b" format = "<b>%s</b>\n%b"
@@ -38,45 +36,36 @@
ignore_newline = no ignore_newline = no
stack_duplicates = true stack_duplicates = true
hide_duplicate_count = false hide_duplicate_count = false
show_indicators = yes show_indicators = no
icon_position = right
icon_position = left
min_icon_size = 32 min_icon_size = 32
max_icon_size = 48 max_icon_size = 48
sticky_history = yes sticky_history = yes
history_length = 20 history_length = 20
dmenu = rofi -dmenu -p dunst dmenu = rofi -dmenu -p dunst
browser = xdg-open browser = xdg-open
always_run_script = true always_run_script = true
title = Dunst title = Dunst
class = Dunst class = Dunst
corner_radius = 0 corner_radius = 0
ignore_dbusclose = false ignore_dbusclose = false
force_xwayland = false force_xwayland = false
force_xinerama = false force_xinerama = false
mouse_left_click = close_current mouse_left_click = close_current
mouse_middle_click = do_action, close_current mouse_middle_click = do_action, close_current
mouse_right_click = close_all mouse_right_click = close_all
[experimental] [experimental]
per_monitor_dpi = false per_monitor_dpi = false
[urgency_low] [urgency_low]
background = "#2e3440" background = "#1e1e2e"
foreground = "#eceff4" foreground = "#cdd6f4"
timeout = 2 timeout = 2
[urgency_normal] [urgency_normal]
background = "#2e3440" background = "#1e1e2e"
foreground = "#eceff4" foreground = "#cdd6f4"
timeout = 8 timeout = 8
[urgency_critical] [urgency_critical]
background = "#2e3440" background = "#1e1e2e"
foreground = "#bf616a" foreground = "#1e1e2e"
frame_color = "#f38ba8"
timeout = 0 timeout = 0
+29 -5
View File
@@ -1,11 +1,35 @@
[main] [main]
font=Noto Mono:size=10 font=JetBrains Mono:size=10,Symbols Nerd Font Mono:size=10
dpi-aware=no dpi-aware=no
pad=0x0 pad=0x0
[colors-dark]
background=2e3440
[key-bindings] [key-bindings]
clipboard-copy=Control+Shift+c clipboard-copy=Control+Shift+c
clipboard-paste=Control+Shift+v 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') require('core.configs')
require("config.lazy")
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,
},
})
+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.ignorecase = true
vim.opt.smartcase = true vim.opt.smartcase = true
vim.opt.number = true vim.opt.number = true
vim.opt.relativenumber = true vim.opt.relativenumber = true
vim.o.termguicolors = true vim.o.termguicolors = true
vim.cmd("syntax enable") 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, header_background_color: None,
modal_background_color: None, modal_background_color: None,
modal_backdrop: false, modal_backdrop: false,
preview_label_style: (fg: "#88c0d0"), preview_label_style: (fg: "#b4befe"),
preview_metadata_group_style: (fg: "#88c0d0", modifiers: "Bold"), preview_metadata_group_style: (fg: "#b4befe", modifiers: "Bold"),
highlighted_item_style: (fg: "#88c0d0", modifiers: "Bold"), highlighted_item_style: (fg: "#89dceb", modifiers: "Bold"),
current_item_style: (fg: "#2e3440", bg: "#88c0d0", modifiers: "Bold"), current_item_style: (fg: "#11111b", bg: "#b4befe", modifiers: "Bold"),
borders_style: (fg: "#88c0d0"), borders_style: (fg: "#b4befe"),
highlight_border_style: (fg: "#88c0d0"), highlight_border_style: (fg: "#b4befe"),
symbols: ( symbols: (
song: "S", song: "S",
dir: "D", dir: "D",
playlist: "P", playlist: "P",
marker: "M", marker: "M",
ellipsis: "...", ellipsis: "...",
song_style: (fg: "#88c0d0"), song_style: (fg: "#89b4fa"),
dir_style: (fg: "#ebcb8b"), dir_style: (fg: "#a6e3a1"),
playlist_style: (fg: "#b48ead"), playlist_style: (fg: "#cba6f7"),
), ),
level_styles: ( level_styles: (
info: (fg: "blue", bg: "black"), info: (fg: "blue", bg: "black"),
@@ -35,20 +35,20 @@
), ),
progress_bar: ( progress_bar: (
symbols: ["█", "█", "█", "█", "█"], symbols: ["█", "█", "█", "█", "█"],
track_style: (fg: "#4c566a"), track_style: (fg: "#313244"),
elapsed_style: (fg: "#88c0d0"), elapsed_style: (fg: "#74c7ec"),
thumb_style: (fg: "#5e81ac"), thumb_style: (fg: "#89b4fa"),
use_track_when_empty: true, use_track_when_empty: true,
), ),
scrollbar: ( scrollbar: (
symbols: ["│", "█", "", ""], symbols: ["│", "█", "", ""],
track_style: (), track_style: (),
ends_style: (), ends_style: (),
thumb_style: (fg: "#88c0d0"), thumb_style: (fg: "#b4befe"),
), ),
tab_bar: ( tab_bar: (
active_style: (fg: "#2e3440", bg: "#88c0d0"), active_style: (fg: "#181825", bg: "#94e2d5"),
inactive_style: (fg: "#eceff4", bg: "#2e3440"),), inactive_style: (fg: "#cdd6f4", bg: "#1e1e2e"),),
lyrics: ( lyrics: (
timestamp: false timestamp: false
), ),
@@ -70,32 +70,32 @@
], ],
song_table_format: [ song_table_format: [
( (
prop: (kind: Property(Artist), style: (fg: "#eceff4"), prop: (kind: Property(Artist), style: (fg: "#cdd6f4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4")) 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%", width: "20%",
), ),
( (
prop: (kind: Property(Title), style: (fg: "#eceff4"), prop: (kind: Property(Title), style: (fg: "#cdd6f4"),
default: (kind: Text("unknown"), style: (fg: "#eceff4")) 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%", width: "35%",
), ),
( (
prop: (kind: Property(Album), style: (fg: "#eceff4"), prop: (kind: Property(Album), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#eceff4")) default: (kind: Text("unknown"), style: (fg: "#bac2de"))
), ),
label_prop: (kind: Text("album"), style: (fg: "#b48ead", modifiers: "Bold")), label_prop: (kind: Text("album"), style: (fg: "#fab387", modifiers: "Bold")),
width: "30%", width: "35%",
), ),
( (
prop: (kind: Property(Duration), style: (fg: "#eceff4"), prop: (kind: Property(Duration), style: (fg: "#a6adc8"),
default: (kind: Text("-"), style: (fg: "#eceff4")) default: (kind: Text("-"), style: (fg: "#a6adc8"))
), ),
label_prop: (kind: Text("duration"), style: (fg: "#ebcb8b", modifiers: "Bold")), label_prop: (kind: Text("duration"), style: (fg: "#cba6f7", modifiers: "Bold")),
width: "15%", width: "10%",
alignment: Right, alignment: Right,
), ),
], ],
@@ -161,59 +161,59 @@
), ),
"state": Pane(Property( "state": Pane(Property(
content: [ content: [
(kind: Text("state: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("state: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Status(StateV2( ))), style: (fg: "#eceff4")), (kind: Property(Status(StateV2( ))), style: (fg: "#bac2de")),
], align: Left, scroll_speed: 1 ], align: Left, scroll_speed: 1
)), )),
"artist": Pane(Property( "artist": Pane(Property(
content: [ content: [
(kind: Text("artist: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("artist: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Artist)), style: (fg: "#eceff4"), (kind: Property(Song(Artist)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))), default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1 ], align: Left, scroll_speed: 1
)), )),
"album": Pane(Property( "album": Pane(Property(
content: [ content: [
(kind: Text("album: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("album: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Album)), style: (fg: "#eceff4"), (kind: Property(Song(Album)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))), default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1 ], align: Left, scroll_speed: 1
)), )),
"track": Pane(Property( "track": Pane(Property(
content: [ content: [
(kind: Text("track: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("track: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Track)), style: (fg: "#eceff4"), (kind: Property(Song(Track)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))), default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1 ], align: Left, scroll_speed: 1
)), )),
"title": Pane(Property( "title": Pane(Property(
content: [ content: [
(kind: Text("title: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("title: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Title)), style: (fg: "#eceff4"), (kind: Property(Song(Title)), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))), default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1 ], align: Left, scroll_speed: 1
)), )),
"date": Pane(Property( "date": Pane(Property(
content: [ content: [
(kind: Text("date: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("date: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Song(Other("date"))), style: (fg: "#eceff4"), (kind: Property(Song(Other("date"))), style: (fg: "#bac2de"),
default: (kind: Text("unknown"), style: (fg: "#eceff4"))), default: (kind: Text("unknown"), style: (fg: "#bac2de"))),
], align: Left, scroll_speed: 1 ], align: Left, scroll_speed: 1
)), )),
"elapsed": Pane(Property( "elapsed": Pane(Property(
content: [ content: [
(kind: Text("elapsed: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("elapsed: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Status(Elapsed)), style: (fg: "#eceff4")), (kind: Property(Status(Elapsed)), style: (fg: "#bac2de")),
(kind: Text(" / ")), (kind: Text(" / ")),
(kind: Property(Status(Duration)), style: (fg: "#eceff4")), (kind: Property(Status(Duration)), style: (fg: "#bac2de")),
], ],
align: Left, scroll_speed: 1 align: Left, scroll_speed: 1
)), )),
"bitrate": Pane(Property( "bitrate": Pane(Property(
content: [ content: [
(kind: Text("bitrate: "), style: (fg: "#88c0d0", modifiers: "Bold")), (kind: Text("bitrate: "), style: (fg: "#94e2d5", modifiers: "Bold")),
(kind: Property(Status(Bitrate)), style: (fg: "#eceff4")), (kind: Property(Status(Bitrate)), style: (fg: "#bac2de")),
(kind: Text(" kbps"), style: (fg: "#eceff4")), (kind: Text(" kbps"), style: (fg: "#bac2de")),
], ],
align: Left, scroll_speed: 1 align: Left, scroll_speed: 1
)), )),
@@ -222,9 +222,9 @@
panes: [ panes: [
(size: "100%", pane: Pane(Volume(kind: Slider( (size: "100%", pane: Pane(Volume(kind: Slider(
symbols: (filled: "█", thumb: "█", track: "█"), symbols: (filled: "█", thumb: "█", track: "█"),
filled_style: (fg: "#d08770"), filled_style: (fg: "#f5e0dc"),
track_style: (fg: "#4c566a"), track_style: (fg: "#313244"),
thumb_style: (fg: "#bf616a"), thumb_style: (fg: "#f2cdcd"),
)))), )))),
], align: Right ], align: Right
), ),
@@ -246,36 +246,36 @@
( (
size: "6", size: "6",
pane: Pane(Property(content: [ pane: Pane(Property(content: [
(kind: Text(" "), style: (bg: "#4c566a")), (kind: Text(" "), style: (bg: "#313244")),
(kind: Property(Status(RepeatV2( (kind: Property(Status(RepeatV2(
on_label: "z", on_label: "z",
off_label: "z", off_label: "z",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"), on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"), off_style: (fg: "#cdd6f4", bg: "#313244"),
)))), )))),
(kind: Property(Status(RandomV2( (kind: Property(Status(RandomV2(
on_label: "x", on_label: "x",
off_label: "x", off_label: "x",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"), on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"), off_style: (fg: "#cdd6f4", bg: "#313244"),
)))), )))),
(kind: Property(Status(ConsumeV2( (kind: Property(Status(ConsumeV2(
on_label: "c", on_label: "c",
off_label: "c", off_label: "c",
oneshot_label: "c", oneshot_label: "c",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"), on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"), off_style: (fg: "#cdd6f4", bg: "#313244"),
oneshot_style: (fg: "#d08770", bg: "#4c566a", modifiers: "Bold"), oneshot_style: (fg: "#f38ba8", bg: "#313244", modifiers: "Bold"),
)))), )))),
(kind: Property(Status(SingleV2( (kind: Property(Status(SingleV2(
on_label: "v", on_label: "v",
off_label: "v", off_label: "v",
oneshot_label: "v", oneshot_label: "v",
on_style: (fg: "#ebcb8b", bg: "#4c566a", modifiers: "Bold"), on_style: (fg: "#fab387", bg: "#313244", modifiers: "Bold"),
off_style: (fg: "#eceff4", bg: "#4c566a"), off_style: (fg: "#cdd6f4", bg: "#313244"),
oneshot_style: (fg: "#d08770", bg: "#4c566a", modifiers: "Bold"), oneshot_style: (fg: "#f38ba8", bg: "#313244", modifiers: "Bold"),
)))), )))),
(kind: Text(" "), style: (bg: "#4c566a")), (kind: Text(" "), style: (bg: "#313244")),
], ],
align: Right align: Right
)) ))
@@ -285,8 +285,8 @@
"input_mode": Pane(Property( "input_mode": Pane(Property(
content: [ content: [
(kind: Transform(Replace(content: (kind: Property(Status(InputMode()))), replacements: [ (kind: Transform(Replace(content: (kind: Property(Status(InputMode()))), replacements: [
(match: "Normal", replace: (kind: Text(" normal "), style: (fg: "#eceff4", bg: "#4c566a"))), (match: "Normal", replace: (kind: Text(" normal "), style: (fg: "#cdd6f4", bg: "#313244"))),
(match: "Insert", replace: (kind: Text(" insert "), style: (fg: "#2e3440", bg: "#a3be8c"))), (match: "Insert", replace: (kind: Text(" insert "), style: (fg: "#11111b", bg: "#94e2d5"))),
]))) ])))
], align: Left ], align: Left
)), )),
+2 -8
View File
@@ -1,29 +1,23 @@
@import "config.rasi" @import "config.rasi"
window { window {
children: [ mainbox ]; children: [ mainbox ];
} }
mainbox { mainbox {
background-color: transparent; background-color: transparent;
children: [ inputbar, listview, message ]; children: [ inputbar, listview, message ];
} }
element { element {
children: [ element-icon, element-text ]; children: [ element-icon, element-text ];
} }
element-icon { element-icon {
size: 0px; size: 0px;
margin: 0; margin: 0;
} }
message { message {
background-color: @NORD1; background-color: @mantle;
padding: 6px 0 12px 12px; padding: 6px 0 12px 12px;
} }
textbox { textbox {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
} }
+59 -66
View File
@@ -4,116 +4,115 @@ configuration {
scroll-method: 1; scroll-method: 1;
show-icons: true; show-icons: true;
sidebar-mode: 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-drun: "ALL";
display-internet: "NET"; display-internet: "NET";
display-dev: "DEV"; display-dev: "DEV";
display-games: "GMS"; display-games: "GMS";
display-system: "SYS"; display-system: "SYS";
display-office: "DOC";
display-media: "MED"; display-media: "MED";
display-notifications: "NTF"; display-notifications: "NTF";
display-clipboard: "CLP"; display-clipboard: "CLP";
display-powermenu: "PWR"; display-powermenu: "PWR";
kb-remove-to-eol: ""; kb-mode-next: "Alt+l,Shift+Right,Control+Tab";
kb-mode-complete: ""; kb-mode-previous: "Alt+h,Shift+Left,Control+ISO_Left_Tab";
kb-remove-char-back: "BackSpace,Shift+BackSpace"; kb-row-down: "Down,Control+n,Alt+j";
kb-row-down: "Down,Control+j"; kb-row-up: "Up,Control+p,Alt+k";
kb-row-up: "Up,Control+k";
kb-accept-entry: "Control+m,Return,KP_Enter";
} }
* { * {
NORD0: #2e3440; rosewater: #f5e0dc;
NORD1: #3b4252; flamingo: #f2cdcd;
NORD2: #434c5e; pink: #f5c2e7;
NORD3: #4c566a; mauve: #cba6f7;
NORD4: #d8dee9; red: #f38ba8;
NORD5: #e5e9f0; maroon: #eba0ac;
NORD6: #eceff4; peach: #fab387;
NORD7: #8fbcbb; yellow: #f9e2af;
NORD8: #88c0d0; green: #a6e3a1;
NORD9: #81a1c1; teal: #94e2d5;
NORD10: #5e81ac; sky: #89dceb;
NORD11: #bf616a; sapphire: #74c7ec;
NORD12: #d08770; blue: #89b4fa;
NORD13: #ebcb8b; lavender: #b4befe;
NORD14: #a3be8c; text: #cdd6f4;
NORD15: #b48ead; subtext1: #bac2de;
font: "Noto Sans Mono 10"; 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 { window {
background-color: @NORD0; background-color: @base;
location: north west; border-color: @surface0;
anchor: north west; location: center;
width: 540px; anchor: center;
height: 550px; width: 660px;
x-offset: 5px; height: 560px;
y-offset: 5px; x-offset: 0px;
y-offset: 0px;
padding: 0px; padding: 0px;
border: 0px; border: 1px;
border-radius: 0px; border-radius: 0px;
children: [ sb-mainbox ]; children: [ sb-mainbox ];
} }
sb-mainbox { sb-mainbox {
orientation: horizontal; orientation: horizontal;
spacing: 0px; spacing: 0px;
children: [ left-bar-container, vertibox ]; children: [ left-bar-container, vertibox ];
} }
left-bar-container { left-bar-container {
background-color: @NORD0; background-color: @base;
orientation: vertical; orientation: vertical;
width: 40px; width: 40px;
expand: false; expand: false;
children: [ mode-switcher ]; children: [ mode-switcher ];
} }
mode-switcher { mode-switcher {
orientation: vertical; orientation: vertical;
spacing: 0px; spacing: 0px;
padding: 0px; padding: 0px;
} }
button { button {
text-color: @NORD4; text-color: @text;
background-color: transparent; background-color: transparent;
border-color: transparent; border-color: transparent;
horizontal-align: 0.5; horizontal-align: 0.5;
vertical-align: 0.5; vertical-align: 0.5;
padding: 6px 0px; padding: 8px 0px;
border: 0px 0px 0px 2px; border: 0px 0px 0px 0px;
font: "Noto Sans Mono Bold 8";
} }
button selected { button selected {
text-color: @NORD6; text-color: @text;
background-color: @NORD1; background-color: @surface0;
border-color: @NORD8; border-color: @lavender;
} }
vertibox { vertibox {
background-color: @NORD0; background-color: @base;
orientation: vertical; orientation: vertical;
spacing: 0px; spacing: 0px;
padding: 0px; padding: 0px;
children: [ inputbar, listview ]; children: [ inputbar, listview ];
} }
inputbar { inputbar {
background-color: transparent; background-color: transparent;
expand: false;
children: [ entry ]; children: [ entry ];
} }
entry { entry {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
placeholder-color: @NORD4; placeholder-color: @subtext0;
padding: 6px; padding: 6px;
placeholder: " [search...]"; placeholder: " [search...]";
} }
listview { listview {
background-color: transparent; background-color: transparent;
margin: 0px; margin: 0px;
@@ -125,42 +124,36 @@ listview {
dynamic: true; dynamic: true;
scrollbar: false; scrollbar: false;
} }
element { element {
background-color: transparent; background-color: transparent;
padding: 8px; padding: 8px;
children: [ element-icon, element-text ]; children: [ element-icon, element-text ];
} }
element normal.normal, element normal.normal,
element normal.urgent, element normal.urgent,
element normal.active { element normal.active {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
} }
element alternate.normal, element alternate.normal,
element alternate.urgent, element alternate.urgent,
element alternate.active { element alternate.active {
text-color: @NORD6; text-color: @text;
background-color: transparent; background-color: transparent;
} }
element selected.normal, element selected.normal,
element selected.urgent, element selected.urgent,
element selected.active { element selected.active {
text-color: @NORD4; text-color: @text;
background-color: @NORD1; background-color: @surface0;
border: 0px 0px 0px 2px; border: 0px 0px 0px 0px;
border-color: @NORD8; border-color: @lavender;
} }
element-icon { element-icon {
background-color: transparent; background-color: transparent;
size: 14px; size: 14px;
margin: 0 8px 0 6px; margin: 0 8px 0 6px;
} }
element-text { element-text {
text-color: inherit; text-color: inherit;
background-color: transparent; background-color: transparent;
+9 -13
View File
@@ -1,28 +1,24 @@
@import "config.rasi" @import "config.rasi"
window { window {
width: 540px; width: 660px;
height: 60px; height: 72px;
children: [ vertibox ]; children: [ vertibox ];
} }
vertibox { vertibox {
children: [ label-box, inputbar ]; children: [ label-box, inputbar ];
} }
label-box { label-box {
background-color: @NORD1; background-color: @surface0;
expand: false;
children: [ prompt ]; children: [ prompt ];
} }
prompt { prompt {
text-color: @NORD4; text-color: @text;
background-color: @NORD1; background-color: @surface0;
border-color: @NORD8; padding: 8px 6px;
padding: 6px;
border: 0px 0px 0px 2px;
} }
entry { entry {
placeholder: " [password...]"; placeholder: " [password...]";
expand: false;
padding: 8px 6px;
} }
+3 -5
View File
@@ -1,11 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -uo pipefail set -uo pipefail
tmp_dir="/tmp/cliphist" tmp_dir="/tmp/cliphist"
mkdir -p "$tmp_dir" mkdir -p "$tmp_dir"
mode="${1:-}" mode="${1:-}"
selection="${2:-}" selection="${2:-}"
if [[ -n "$selection" ]]; then if [[ -n "$selection" ]]; then
if [[ "$mode" == "clipboard" ]]; then if [[ "$mode" == "clipboard" ]]; then
id="${selection%% *}" id="${selection%% *}"
@@ -31,7 +29,6 @@ if [[ -n "$selection" ]]; then
fi fi
exit 0 exit 0
fi fi
case "$mode" in case "$mode" in
clipboard) clipboard)
find "$tmp_dir" -type f -mmin +30 -delete 2>/dev/null find "$tmp_dir" -type f -mmin +30 -delete 2>/dev/null
@@ -60,11 +57,12 @@ case "$mode" in
"\(.appname.data): \(.summary.data) — \(.body.data)" "\(.appname.data): \(.summary.data) — \(.body.data)"
' '
;; ;;
internet|dev|media|games|system) internet|dev|media|office|games|system)
case "$mode" in case "$mode" in
internet) category="Network" ;; internet) category="Network" ;;
dev) category="Development" ;; dev) category="Development" ;;
media) category="AudioVideo" ;; media) category="AudioVideo" ;;
office) category="Office" ;;
games) category="Game" ;; games) category="Game" ;;
system) category="System" ;; system) category="System" ;;
esac esac
@@ -86,7 +84,7 @@ case "$mode" in
printf '%s\0info\x1flock\n' "<span foreground=\"#88c0d0\"></span> lock" printf '%s\0info\x1flock\n' "<span foreground=\"#88c0d0\"></span> lock"
printf '%s\0info\x1fsuspend\n' "<span foreground=\"#5e81ac\">󰤄</span> suspend" printf '%s\0info\x1fsuspend\n' "<span foreground=\"#5e81ac\">󰤄</span> suspend"
printf '%s\0info\x1freboot\n' "<span foreground=\"#ebcb8b\"></span> reboot" 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" printf '%s\0info\x1flogout\n' "<span foreground=\"#b48ead\">󰗽</span> logout"
;; ;;
esac esac
-1
View File
@@ -1,5 +1,4 @@
debug = false debug = false
[server] [server]
inhibit_duration = 25 inhibit_duration = 25
sleep_duration = 5 sleep_duration = 5
+58 -16
View File
@@ -1,12 +1,40 @@
client.focused #88c0d0 #88c0d0 #eceff4 #88c0d0 #88c0d0 set $rosewater #f5e0dc
client.focused_inactive #00000000 #00000000 #81a1c1 #00000000 #00000000 set $flamingo #f2cdcd
client.unfocused #00000000 #00000000 #81a1c1 #00000000 #00000000 set $pink #f5c2e7
client.urgent #d08770 #d08770 #eceff4 #d08770 #d08770 set $mauve #cba6f7
font pango:Noto Sans Mono 10 set $red #f38ba8
smart_gaps off set $maroon #eba0ac
smart_borders off set $peach #fab387
gaps inner 3 set $yellow #f9e2af
gaps outer 1 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_border pixel 1
default_floating_border pixel 1 default_floating_border pixel 1
titlebar_border_thickness 0 titlebar_border_thickness 0
@@ -31,14 +59,18 @@ workspace 3 output HDMI-A-2
workspace 4 output HDMI-A-2 workspace 4 output HDMI-A-2
workspace 5 output HDMI-A-2 workspace 5 output HDMI-A-2
workspace 6 output HDMI-A-2 workspace 6 output HDMI-A-2
workspace 7 output DP-1 workspace 7 output HDMI-A-2
workspace 8 output DP-1 workspace 8 output HDMI-A-2
workspace 9 output DP-2 workspace 9 output DP-1
workspace 10 output DP-2 workspace 10 output DP-2
workspace 1 workspace 1
output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill #output DP-1 bg ~/Pictures/wallhaven-43qlkd.jpg fill
output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill #output HDMI-A-2 bg ~/Pictures/wallhaven-478kjo.jpg fill
output DP-2 bg ~/Pictures/wallhaven-4gx713.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 DP-1 resolution 1280x1024 position 0,220
output HDMI-A-2 resolution 1920x1080 position 1280,0 output HDMI-A-2 resolution 1920x1080 position 1280,0
output DP-2 resolution 1280x102 position 3200,220 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+Shift+m floating toggle
bindsym --to-code $mod+s scratchpad show bindsym --to-code $mod+s scratchpad show
bindsym --to-code $mod+Shift+s move scratchpad 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 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 XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindsym --to-code --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle 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 XF86AudioPause exec playerctl play-pause
bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause bindsym --to-code --locked XF86AudioPlay exec playerctl play-pause
bindsym --to-code --locked XF86AudioPrev exec playerctl previous 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 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 $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 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+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" { mode "resize" {
bindsym --to-code $left resize shrink width 10px bindsym --to-code $left resize shrink width 10px
bindsym --to-code $down resize grow height 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+Shift+r mode "reload sway? [y/n]"
bindsym --to-code $mod+x mode "lock sway? [y/n]" bindsym --to-code $mod+x mode "lock sway? [y/n]"
bindsym --to-code $mod+Shift+x mode "exit 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 ignore-empty-password
show-failed-attempts show-failed-attempts
daemonize daemonize
color=2e3440
indicator-idle-visible indicator-idle-visible
indicator-caps-lock indicator-caps-lock
disable-caps-lock-text disable-caps-lock-text
hide-keyboard-layout hide-keyboard-layout
indicator-radius=42 indicator-radius=42
indicator-thickness=2 indicator-thickness=4
font=Noto Sans Mono font=JetBrains Mono
font-size=10 font-size=13
inside-color=00000000 color=1e1e2e
inside-clear-color=00000000 bs-hl-color=f5e0dc
inside-ver-color=00000000 caps-lock-bs-hl-color=f5e0dc
inside-wrong-color=00000000 caps-lock-key-hl-color=a6e3a1
inside-caps-lock-color=00000000 inside-color=1e1e2e
ring-color=4c566a inside-clear-color=1e1e2e
ring-clear-color=ebcb8b inside-caps-lock-color=1e1e2e
ring-ver-color=a3be8c inside-ver-color=1e1e2e
ring-wrong-color=bf616a inside-wrong-color=1e1e2e
ring-caps-lock-color=d08770 key-hl-color=a6e3a1
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
layout-bg-color=00000000 layout-bg-color=00000000
layout-border-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 Description=clipvault
PartOf=graphical-session.target PartOf=graphical-session.target
After=graphical-session.target After=graphical-session.target
[Service] [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 Restart=on-failure
RestartSec=2 RestartSec=2
[Install] [Install]
WantedBy=graphical-session.target WantedBy=graphical-session.target
-2
View File
@@ -2,11 +2,9 @@
Description=GTK dark mode settings Description=GTK dark mode settings
After=graphical-session.target After=graphical-session.target
PartOf=graphical-session.target PartOf=graphical-session.target
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark 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 ExecStart=/usr/bin/gsettings set org.gnome.desktop.interface color-scheme prefer-dark
[Install] [Install]
WantedBy=graphical-session.target WantedBy=graphical-session.target
-3
View File
@@ -1,10 +1,8 @@
[Unit] [Unit]
Description=Per window keyboard layout (sway) Description=Per window keyboard layout (sway)
Documentation=https://github.com/pyrschtjag
PartOf=graphical-session.target PartOf=graphical-session.target
After=graphical-session.target After=graphical-session.target
BindsTo=graphical-session.target BindsTo=graphical-session.target
[Service] [Service]
Type=notify Type=notify
NotifyAccess=main NotifyAccess=main
@@ -19,6 +17,5 @@ StandardOutput=journal
StandardError=journal StandardError=journal
TimeoutStartSec=30 TimeoutStartSec=30
TimeoutStopSec=5 TimeoutStopSec=5
[Install] [Install]
WantedBy=graphical-session.target WantedBy=graphical-session.target
-2
View File
@@ -1,12 +1,10 @@
[Unit] [Unit]
Description=Swaddle Description=Swaddle
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/sbin/swaddle ExecStart=/usr/sbin/swaddle
NoNewPrivileges=yes NoNewPrivileges=yes
Restart=on-failure Restart=on-failure
RestartSec=3 RestartSec=3
[Install] [Install]
WantedBy=graphical-session.target WantedBy=graphical-session.target
-2
View File
@@ -3,7 +3,6 @@ Description=Sway idle daemon
PartOf=graphical-session.target PartOf=graphical-session.target
After=graphical-session.target After=graphical-session.target
BindsTo=graphical-session.target BindsTo=graphical-session.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/swayidle -w \ ExecStart=/usr/bin/swayidle -w \
@@ -16,6 +15,5 @@ Restart=always
RestartSec=1 RestartSec=1
StandardOutput=journal StandardOutput=journal
StandardError=journal StandardError=journal
[Install] [Install]
WantedBy=graphical-session.target 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=qt6ct
export QT_QPA_PLATFORMTHEME_QT6=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 SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"
export SWAY_UNSUPPORTED_GPU=true export SWAY_UNSUPPORTED_GPU=true
+27 -180
View File
@@ -1,197 +1,44 @@
{ [{
"layer": "top", "include": ["~/.config/waybar/modules"],
"position": "top", "output": "HDMI-A-2",
"margin-top": 5,
"margin-left": 5,
"margin-right": 5,
"height": 34,
"modules-left": [ "modules-left": [
"custom/rofi", "custom/rofi",
"sway/workspaces", "sway/workspaces",
"sway/mode" "sway/mode"
], ],
"modules-center": [ "modules-center": [
"clock#time" "clock#time",
"clock#date"
], ],
"modules-right": [ "modules-right": [
"tray", "tray",
"privacy",
"idle_inhibitor", "idle_inhibitor",
"group/keyboard", "group/keyboard",
"disk", "disk",
"group/hardware", "group/hardware",
"group/temp", "group/temp",
"custom/mouse",
"group/audio" "group/audio"
]
}, {
"include": ["~/.config/waybar/modules"],
"output": ["DP-1", "DP-2"],
"no-center": true,
"modules-left": [
"sway/workspaces",
"sway/mode"
], ],
"modules-right": [
"group/keyboard": { "privacy",
"orientation": "horizontal", "idle_inhibitor",
/*"modules": [ "group/keyboard",
"keyboard-state", "disk",
"sway/language" "group/hardware",
]*/ "group/temp",
"modules": ["sway/language"] "custom/mouse",
}, "group/audio",
"clock#date",
"group/hardware": { "clock#time"
"orientation": "horizontal",
"modules": [
"cpu",
"memory"
] ]
}, }]
"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 rosewater #f5e0dc;
@define-color nord1 #3b4252; @define-color flamingo #f2cdcd;
@define-color nord2 #434c5e; @define-color pink #f5c2e7;
@define-color nord3 #4c566a; @define-color mauve #cba6f7;
@define-color nord4 #d8dee9; @define-color red #f38ba8;
@define-color nord5 #e5e9f0; @define-color maroon #eba0ac;
@define-color nord6 #eceff4; @define-color peach #fab387;
@define-color nord7 #8fbcbb; @define-color yellow #f9e2af;
@define-color nord8 #88c0d0; @define-color green #a6e3a1;
@define-color nord9 #81a1c1; @define-color teal #94e2d5;
@define-color nord10 #5e81ac; @define-color sky #89dceb;
@define-color nord11 #bf616a; @define-color sapphire #74c7ec;
@define-color nord12 #d08770; @define-color blue #89b4fa;
@define-color nord13 #ebcb8b; @define-color lavender #b4befe;
@define-color nord14 #a3be8c; @define-color text #cdd6f4;
@define-color nord15 #b48ead; @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-family: "JetBrains Mono", "Symbols Nerd Font Mono";
font-size: 13px; font-size: 10pt;
border: 0px; border: 0px;
border-radius: 0px; border-radius: 0px;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;
transition: none; transition: none;
} }
window#waybar { window#waybar {
color: @nord6; color: @text;
background-color: @nord0; background-color: @base;
} }
#custom-rofi { #custom-rofi {
margin: 0 10px 0 10px; margin: 0 10px 0 10px;
} }
#workspaces button { #workspaces button {
color: @nord4; color: @subtext1;
padding: 0px 10px; padding: 0px 10px;
border-bottom: 2px solid transparent;
} }
#workspaces button.visible { #workspaces button.visible {
color: @nord5; color: @subtext0;
background-color: transparent; background-color: @surface0;
border-bottom: 2px solid @nord9;
} }
#workspaces button.focused { #workspaces button.focused {
color: @nord6; color: @text;
background-color: @nord1; background-color: @surface0;
border-bottom: 2px solid @nord8;
} }
#workspaces button.urgent { #workspaces button.urgent {
color: @nord8; color: @subtext1;
} }
#workspaces button:hover { #workspaces button:hover {
background: transparent; background: transparent;
border-bottom: 2px solid transparent;
} }
#workspaces button:hover.active, #workspaces button:hover.active,
#workspaces button:hover.visible { #workspaces button:hover.visible {
background-color: @nord1; background-color: @surface0;
border-bottom: 2px solid @nord8;
} }
#workspaces button.urgent { #workspaces button.urgent {
border-bottom: 2px solid @nord12; background-color: @peach;
} }
#mode { #mode {
margin: 0 0 0 10px; margin: 0 0 0 10px;
} }
#tray menu { #tray menu {
background-color: @nord0; background-color: @base;
padding: 4px 0; padding: 4px 0;
} }
#tray menu menuitem { #tray menu menuitem {
color: @nord4; color: @subtext1;
padding: 4px 0px; padding: 4px 0px;
border-left: 2px solid transparent; border-left: 2px solid transparent;
} }
#tray menu menuitem:hover { #tray menu menuitem:hover {
background-color: @nord1; color: @color;
color: @nord6; background-color: @surface0;
border-left: 2px solid @nord8; border-left: 2px solid @lavender;
} }
#tray menu separator { #tray menu separator {
background-color: @nord3; background-color: @surface0;
margin: 4px 0; margin: 4px 0;
min-height: 1px; min-height: 1px;
} }
#tray > .passive { opacity: 0.6; } #tray > .passive { opacity: 0.6; }
#tray > .needs-attention { color: @nord8; } #tray > .needs-attention { color: @lavender; }
/* delete when release waybar 0.16+ */ /* delete when release waybar 0.16+ */
#idle_inhibitor { #idle_inhibitor {
margin: 0 10px 0 0; margin: 0 10px 0 0;
opacity: 1; opacity: 1;
} }
/* enable when release waybar 0.16+ /* enable when release waybar 0.16+
#idle_inhibitor { #idle_inhibitor {
margin: 0; margin: 0;
opacity: 0; opacity: 0;
} }
#idle_inhibitor.activated { #idle_inhibitor.activated {
margin: 0 10px 0 0; margin: 0 10px 0 0;
opacity: 1; opacity: 1;
} }
*/ */
#tray, #tray,
#keyboard, #keyboard,
#custom-kbd,
#disk, #disk,
#hardware, #hardware,
#temp, #temp,
#custom-mouse,
#clock.time,
#clock.date,
#privacy,
#audio { #audio {
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
#wireplumber.muted { #wireplumber.muted {
color: @nord3; color: @surface2;
} }
#wireplumber { #wireplumber {
color: @nord6; color: @text;
} }
#cpu, #cpu,
#temperature.cpu, #temperature.cpu,
#wireplumber.source { #wireplumber.source {
padding: 0 5px 0 0; padding: 0 5px 0 0;
} }
#memory, #memory,
#custom-gpu_temperature, #custom-gpu_temperature,
#wireplumber.sink { #wireplumber.sink {
padding: 0 0 0 5px; 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 { tooltip {
background-color: @nord0; background-color: @base;
} }
tooltip label { tooltip label {
background-color: @nord0; background-color: @base;
color: @nord6; color: @text;
} }