Compare commits
3 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
30fb0e5959 | |
|
|
c8ad498fae | |
|
|
5498ae76fa |
19
.tmux.conf
|
|
@ -4,16 +4,31 @@ set -g set-titles on
|
||||||
set -g set-titles-string '#{session_name}: #{window_name}'
|
set -g set-titles-string '#{session_name}: #{window_name}'
|
||||||
|
|
||||||
# List of plugins
|
# List of plugins
|
||||||
|
set -g @plugin 'catppuccin/tmux#v2.1.3'
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||||
|
set -g @plugin 'catppuccin/tmux'
|
||||||
|
set -g @plugin 'omerxx/tmux-floax'
|
||||||
|
# set -g @plugin 'niksingh710/minimal-tmux-status'
|
||||||
|
|
||||||
|
# Einstellungen für den Zen-Look:
|
||||||
|
# set -g @minimal-tmux-justify "left"
|
||||||
|
# set -g @minimal-tmux-indicator false
|
||||||
|
# set -g @minimal-tmux-status "bottom" # oder "top"
|
||||||
# Other examples:
|
# Other examples:
|
||||||
# set -g @plugin 'github_username/plugin_name'
|
# set -g @plugin 'github_username/plugin_name'
|
||||||
# set -g @plugin 'github_username/plugin_name#branch'
|
# set -g @plugin 'github_username/plugin_name#branch'
|
||||||
# set -g @plugin 'git@github.com:user/plugin'
|
# set -g @plugin 'git@github.com:user/plugin'
|
||||||
# set -g @plugin 'git@bitbucket.com:user/plugin'
|
# set -g @plugin 'git@bitbucket.com:user/plugin'
|
||||||
|
# Erlaubt Yazi & Neovim Bilder/Grafiken in Ghostty anzuzeigen
|
||||||
|
set -g allow-passthrough on
|
||||||
|
|
||||||
set -g @plugin 'catppuccin/tmux'
|
# Verhindert Verzögerungen beim Wechsel in den Normal-Mode in AstroNvim
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
# Stellt sicher, dass Ghostty die Farben korrekt darstellt
|
||||||
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
# set -g @catppuccin_flavor 'macchiato' # or frappe, macchiato, mocha
|
# set -g @catppuccin_flavor 'macchiato' # or frappe, macchiato, mocha
|
||||||
set -g @catppuccin_flavor 'macchiato' # or frappe, macchiato, mocha
|
set -g @catppuccin_flavor 'macchiato' # or frappe, macchiato, mocha
|
||||||
set -g @catppuccin_window_status_style 'rounded'
|
set -g @catppuccin_window_status_style 'rounded'
|
||||||
|
|
@ -29,6 +44,8 @@ set -ag status-right "#{E:@catppuccin_status_user}"
|
||||||
set -ag status-right "#{E:@catppuccin_status_session}"
|
set -ag status-right "#{E:@catppuccin_status_session}"
|
||||||
set -ag status-right "#{E:@catppuccin_status_host}"
|
set -ag status-right "#{E:@catppuccin_status_host}"
|
||||||
|
|
||||||
|
# set allow-passthrough on
|
||||||
|
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
|
||||||
30
.zshrc
|
|
@ -15,9 +15,9 @@ fi
|
||||||
#export TERM="xterm-256color"
|
#export TERM="xterm-256color"
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
export PATH=$HOME/.cargo/bin:$PATH
|
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
||||||
|
|
||||||
export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts:$HOME/.local/bin"
|
export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts"
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
||||||
|
|
@ -155,3 +155,29 @@ if [[ -z "$TMUX" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
|
|
||||||
|
alias freecad='LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 /opt/FreeCAD-0.21.2-Linux-x86_64.AppImage'
|
||||||
|
export NDK_HOME=/home/crimsen/Android/Sdk/ndk/29.0.14206865
|
||||||
|
export ANDROID_HOME=/home/crimsen/Android/Sdk
|
||||||
|
export EDITOR=nvim
|
||||||
|
|
||||||
|
|
||||||
|
if command -v yazi >/dev/null 2>&1; then
|
||||||
|
# Hier kommt der Code hin, der nur mit Yazi läuft
|
||||||
|
echo "Yazi gefunden! Initialisiere Aliase..."
|
||||||
|
|
||||||
|
# Beispiel: Ein Alias, der beim Beenden von Yazi ins letzte Verzeichnis wechselt
|
||||||
|
function y() {
|
||||||
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||||
|
command yazi "$@" --cwd-file="$tmp"
|
||||||
|
IFS= read -r -d '' cwd < "$tmp"
|
||||||
|
[ "$cwd" != "$PWD" ] && [ -d "$cwd" ] && builtin cd -- "$cwd"
|
||||||
|
rm -f -- "$tmp"
|
||||||
|
}
|
||||||
|
else
|
||||||
|
# Optionaler Fallback oder einfach gar nichts tun
|
||||||
|
echo "Yazi ist nicht installiert. Nutze stattdessen 'ls' oder 'cd'."
|
||||||
|
fi
|
||||||
|
|
||||||
|
source ~/.env.secrets
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,9 @@ key = "Return"
|
||||||
mods = "Control|Shift"
|
mods = "Control|Shift"
|
||||||
|
|
||||||
[window]
|
[window]
|
||||||
opacity = 0.9
|
opacity = 0.7
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
import = ["/home/crimsen/.config/alacritty/catppuccin/catppuccin-macchiato.toml"]
|
import = [
|
||||||
|
"/home/crimsen/.config/alacritty/catppuccin/catppuccin-macchiato.toml",
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Font-Einstellungen (Wichtig für Icons in AstroNvim)
|
||||||
|
font-family = "Hack Nerd Font"
|
||||||
|
font-size = 11
|
||||||
|
|
||||||
|
# Performance & Grafik (Für Bild-Support & Geschwindigkeit) # Oder dein bevorzugtes Theme
|
||||||
|
|
||||||
|
theme = catppuccin-machiato.conf
|
||||||
|
window-decoration = false
|
||||||
|
confirm-close-surface = false
|
||||||
|
|
||||||
|
# Maus-Support für Neovim
|
||||||
|
mouse-hide-while-typing = true
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
palette = 0=#494d64
|
||||||
|
palette = 1=#ed8796
|
||||||
|
palette = 2=#a6da95
|
||||||
|
palette = 3=#eed49f
|
||||||
|
palette = 4=#8aadf4
|
||||||
|
palette = 5=#f5bde6
|
||||||
|
palette = 6=#8bd5ca
|
||||||
|
palette = 7=#a5adcb
|
||||||
|
palette = 8=#5b6078
|
||||||
|
palette = 9=#ed8796
|
||||||
|
palette = 10=#a6da95
|
||||||
|
palette = 11=#eed49f
|
||||||
|
palette = 12=#8aadf4
|
||||||
|
palette = 13=#f5bde6
|
||||||
|
palette = 14=#8bd5ca
|
||||||
|
palette = 15=#b8c0e0
|
||||||
|
background = 24273a
|
||||||
|
foreground = cad3f5
|
||||||
|
cursor-color = f4dbd6
|
||||||
|
cursor-text = 181926
|
||||||
|
selection-background = 3a3e53
|
||||||
|
selection-foreground = cad3f5
|
||||||
|
split-divider-color = 363a4f
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
---
|
||||||
|
name: {{ session_name }}
|
||||||
|
|
||||||
|
startup:
|
||||||
|
- command: echo
|
||||||
|
args:
|
||||||
|
- starting {{ session_name }} session # add commands here to run on session startup
|
||||||
|
|
||||||
|
shutdown:
|
||||||
|
- command: echo
|
||||||
|
args:
|
||||||
|
- stopping {{ session_name }} session # add commands here to run on session shutdown
|
||||||
|
|
||||||
|
path: {{ path }}
|
||||||
|
|
||||||
|
windows:
|
||||||
|
- name: code
|
||||||
|
flex_direction: column # panes are above one another, if ommited defaults to row where panes are side by side
|
||||||
|
panes:
|
||||||
|
- name: Editor
|
||||||
|
commands:
|
||||||
|
- command: {{ editor | default(value="nvim") }}
|
||||||
|
|
||||||
|
- name: misc
|
||||||
|
flex_direction: row
|
||||||
|
panes:
|
||||||
|
- flex: 1
|
||||||
|
- flex: 1
|
||||||
|
path: . # optional relative or absolute path
|
||||||
|
flex_direction: column
|
||||||
|
panes:
|
||||||
|
- flex: 1
|
||||||
|
- flex: 5
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
name: iron-thread
|
||||||
|
|
||||||
|
startup:
|
||||||
|
- command: echo
|
||||||
|
args:
|
||||||
|
- starting iron-thread session # add commands here to run on session startup
|
||||||
|
|
||||||
|
shutdown:
|
||||||
|
- command: echo
|
||||||
|
args:
|
||||||
|
- stopping iron-thread session # add commands here to run on session shutdown
|
||||||
|
|
||||||
|
path: /home/crimsen/git/iron-thread/
|
||||||
|
|
||||||
|
windows:
|
||||||
|
- name: editor
|
||||||
|
flex_direction: column # panes are above one another, if ommited defaults to row where panes are side by side
|
||||||
|
panes:
|
||||||
|
- name: Editor
|
||||||
|
commands:
|
||||||
|
- command: nvim
|
||||||
|
|
||||||
|
- name: env_starter
|
||||||
|
flex_direction: column
|
||||||
|
panes:
|
||||||
|
- commands:
|
||||||
|
- command: cargo tauri android dev
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
gui:
|
||||||
|
nerdFontsVersion: "3"
|
||||||
|
theme:
|
||||||
|
activeBorderColor:
|
||||||
|
- "#8bd5ca"
|
||||||
|
- bold
|
||||||
|
inactiveBorderColor:
|
||||||
|
- "#a5adcb"
|
||||||
|
optionsTextColor:
|
||||||
|
- "#8aadf4"
|
||||||
|
selectedLineBgColor:
|
||||||
|
- "#363a4f"
|
||||||
|
cherryPickedCommitBgColor:
|
||||||
|
- "#494d64"
|
||||||
|
cherryPickedCommitFgColor:
|
||||||
|
- "#8bd5ca"
|
||||||
|
unstagedChangesColor:
|
||||||
|
- "#ed8796"
|
||||||
|
defaultFgColor:
|
||||||
|
- "#cad3f5"
|
||||||
|
searchingActiveBorderColor:
|
||||||
|
- "#eed49f"
|
||||||
|
authorColors:
|
||||||
|
"*": "#b7bdf8"
|
||||||
|
|
||||||
|
git:
|
||||||
|
pagers:
|
||||||
|
- pager: delta --dark --paging=never
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
/home/crimsen/git/lazygit/themes-mergable/macchiato/teal.yml
|
||||||
|
|
@ -15,7 +15,8 @@ set $down n
|
||||||
set $up r
|
set $up r
|
||||||
set $right t
|
set $right t
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term alacritty
|
#set $term alacritty
|
||||||
|
set $term $HOME/.local/bin/ghostty
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||||
# on the original workspace that the command was run on.
|
# on the original workspace that the command was run on.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# target title bg text indicator border
|
# target title bg text indicator border
|
||||||
client.focused $pink $base $text $rosewater $pink
|
client.focused $teal $base $text $rosewater $teal
|
||||||
client.focused_inactive $mauve $base $text $rosewater $mauve
|
client.focused_inactive $mauve $base $text $rosewater $mauve
|
||||||
client.unfocused $mauve $base $text $rosewater $mauve
|
client.unfocused $mauve $base $text $rosewater $mauve
|
||||||
client.urgent $peach $base $peach $overlay0 $peach
|
client.urgent $peach $base $peach $overlay0 $peach
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,33 @@
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
exec swayidle -w \
|
#exec swayidle -w \
|
||||||
before-sleep 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg'
|
# before-sleep 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg'
|
||||||
# timeout 300 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' \
|
# timeout 300 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' \
|
||||||
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
|
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
|
||||||
#
|
#
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||||
# your displays after another 300 seconds, and turn your screens back on when
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||||
|
|
||||||
|
# Definiere den Lock-Befehl (falls noch nicht geschehen)
|
||||||
|
# set $lock_cmd swaylock --screenshots --clock --indicator --indicator-radius 120 --indicator-thickness 10 --ignore-empty-password --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.3 --ring-color 8bd5ca --key-hl-color 91d7e3 --text-color cad3f5 --line-color 00000000 --inside-color 24273a88 --separator-color 00000000 --ring-ver-color 8aadf4 --inside-ver-color 24273a88 --ring-wrong-color ed8796 --inside-wrong-color 24273a88 --text-wrong-color ed8796 --bs-hl-color ed8796 --effect-compose "50%,25%;150x150;center;/home/crimsen/Bilder/wallpaper/logo.png"
|
||||||
|
#
|
||||||
|
# # Swayidle Konfiguration
|
||||||
|
# exec swayidle -w \
|
||||||
|
# timeout 300 '$lock_cmd' \
|
||||||
|
# timeout 600 'swaymsg "output * power off"' \
|
||||||
|
# resume 'swaymsg "output * power on"' \
|
||||||
|
# before-sleep '$lock_cmd'
|
||||||
|
# Ich habe pkill -0 vorne ergänzt, damit kein zweiter Lock startet
|
||||||
|
set $lock_cmd pkill -0 swaylock || swaylock -f --screenshots --clock --indicator --indicator-radius 120 --indicator-thickness 10 --ignore-empty-password --effect-blur 7x5 --effect-vignette 0.5:0.5 --grace 0 --fade-in 0.3 --ring-color 8bd5ca --key-hl-color 91d7e3 --text-color cad3f5 --line-color 00000000 --inside-color 24273a88 --separator-color 00000000 --ring-ver-color 8aadf4 --inside-ver-color 24273a88 --ring-wrong-color ed8796 --inside-wrong-color 24273a88 --text-wrong-color ed8796 --bs-hl-color ed8796 --effect-compose "50%,25%;150x150;center;/home/crimsen/Bilder/wallpaper/logo.png" --no-unlock-indicator --indicator-idle-visible
|
||||||
|
|
||||||
|
# Swayidle Konfiguration
|
||||||
|
exec swayidle -w \
|
||||||
|
timeout 300 '$lock_cmd' \
|
||||||
|
timeout 600 'swaymsg "output * power off"' \
|
||||||
|
resume 'swaymsg "output * power on"' \
|
||||||
|
before-sleep '$lock_cmd' \
|
||||||
|
after-resume 'swaymsg "output * power on"'
|
||||||
|
# Shortcut zum Sperren (z.B. Mod + L)
|
||||||
|
bindsym $mod+Shift+j exec $lock_cmd
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
input "type:keyboard" {
|
input "type:keyboard" {
|
||||||
xkb_layout "de"
|
xkb_layout de,de
|
||||||
xkb_variant "neo"
|
xkb_variant neo,
|
||||||
}
|
}
|
||||||
input "type:touchpad" {
|
input "type:touchpad" {
|
||||||
tap enabled
|
tap enabled
|
||||||
|
|
@ -21,3 +21,5 @@ input "type:touchpad" {
|
||||||
}
|
}
|
||||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||||
# Read `man 5 sway-input` for more information about this section.
|
# Read `man 5 sway-input` for more information about this section.
|
||||||
|
|
||||||
|
bindsym $mod+BackSpace input "type:keyboard" xkb_switch_layout next
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,11 @@
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
|
||||||
# Exit sway (logs you out of your Wayland session)
|
# Exit sway (logs you out of your Wayland session)
|
||||||
bindsym $mod+Shift+l exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
# bindsym $mod+Shift+l exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
||||||
|
bindsym $mod+Shift+l exec wlogout -b 2 -c 50 -r 50 -m 200 -L 400 -R 400 --no-span
|
||||||
|
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
#
|
#
|
||||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||||
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
#output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||||
output * bg $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg fill
|
# output * bg $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg fill
|
||||||
|
output * bg $HOME/Bilder/wallpaper/romantic-night-sky-5120x2880-25549.jpg fill
|
||||||
#output * bg $HOME/Bilder/wallpaper.jpg fill
|
#output * bg $HOME/Bilder/wallpaper.jpg fill
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
|
|
@ -12,5 +13,7 @@ output * bg $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg fill
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
font pango:Hack Nerd Font mono:style=Regular 12
|
font pango:Hack Nerd Font mono:style=Regular 12
|
||||||
|
|
||||||
|
output "LG Electronics LG ULTRAWIDE 510NTJJN1324" resolution 3440x1440
|
||||||
|
output "Mars-Tech Corporation MTC26T42 0x000003E9" resolution --custom 1920x1080
|
||||||
bindswitch --locked --reload lid:on output eDP-1 disable
|
bindswitch --locked --reload lid:on output eDP-1 disable
|
||||||
bindswitch --locked --reload lid:off output eDP-1 enable
|
bindswitch --locked --reload lid:off output eDP-1 enable
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
set $gnome-schema org.gnome.desktop.interface
|
set $gnome-schema org.gnome.desktop.interface
|
||||||
|
|
||||||
exec_always {
|
exec_always {
|
||||||
gsettings set $gnome-schema gtk-theme 'Catppuccin-Macchiato-Standard-Blue-Dark'
|
# gsettings set $gnome-schema gtk-theme 'Catppuccin-Macchii#ato-Standard-Blue-Dark'
|
||||||
#gsettings set $gnome-schema icon-theme 'Your icon theme'
|
gsettings set $gnome-schema icon-theme 'candy-icons-master'
|
||||||
#gsettings set $gnome-schema cursor-theme 'Your cursor Theme'
|
gsettings set $gnome-schema cursor-theme 'Catppuccin-Macchiato-Teal-Cursors'
|
||||||
#gsettings set $gnome-schema font-name 'Your font name'
|
gsettings set $gnome-schema font-name 'Hack Nerd Font 11'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,43 @@
|
||||||
workspace_layout tabbed
|
workspace_layout tabbed
|
||||||
|
|
||||||
assign [app_id="Alacritty"] 1
|
assign [app_id="Alacritty"] 1
|
||||||
|
assign [instance="google-chrome"] 2
|
||||||
assign [app_id="google-chrome"] 2
|
assign [app_id="google-chrome"] 2
|
||||||
assign [class="jetbrains-studio"] 3
|
assign [class="jetbrains-studio"] 3
|
||||||
|
assign [app_id="blender"] 3
|
||||||
|
assign [instance="freecad"] 3
|
||||||
|
assign [instance="bambu-studio"] 3
|
||||||
assign [app_id="org.gnome.Nautilus"] 4
|
assign [app_id="org.gnome.Nautilus"] 4
|
||||||
|
assign [app_id="mpv"] 5
|
||||||
assign [instance="Mail"] 6
|
assign [instance="Mail"] 6
|
||||||
|
|
||||||
for_window [class="platformer"] floating enable
|
for_window [class="platformer"] floating enable
|
||||||
|
|
||||||
|
# 1. Floating für alle Emulator-Fenster deaktivieren
|
||||||
|
# for_window [class="Emulator"] floating disable
|
||||||
|
|
||||||
|
# 2. Das Hauptfenster (Pixel 9 Display) konfigurieren
|
||||||
|
# Wir suchen nach dem Titel, der den Namen des Geräts enthält
|
||||||
|
for_window [title="Android Emulator - Pixel_9*"] floating disable
|
||||||
|
for_window [title="Android Emulator - Pixel_9*"] move right
|
||||||
|
for_window [title="Android Emulator - Pixel_9*"] resize set width 500 px
|
||||||
|
|
||||||
|
# 3. Die Toolbar konfigurieren
|
||||||
|
# Diese hat meist nur den schlichten Titel "Emulator"
|
||||||
|
# for_window [title="^Emulator$"] move right, resize set width 60 px
|
||||||
|
|
||||||
|
# Optional: Fokus zurück auf das Terminal setzen, falls gewünscht
|
||||||
|
# for_window [class="Emulator"] focus left
|
||||||
|
|
||||||
|
# 1. Standardmäßig alle Godot-Fenster auf Floating setzen
|
||||||
|
for_window [class="Godot"] floating enable
|
||||||
|
|
||||||
|
# 2. Das Haupt-Editor-Fenster (Tiling) erzwingen
|
||||||
|
# Wir suchen nach Fenstern, die "Godot Engine" im Titel haben,
|
||||||
|
# aber NICHT den Projekt-Manager oder kleine Popups sind.
|
||||||
|
for_window [class="Godot" title="(?i).*Godot Engine.*"] floating disable
|
||||||
|
|
||||||
|
# 3. Optional: Den Projekt-Manager gezielt floaten lassen (falls er nicht schon durch Regel 1 floatet)
|
||||||
|
for_window [class="Godot" title="Project Manager"] floating enable
|
||||||
|
|
||||||
# ext: set ft=swayconfig
|
# ext: set ft=swayconfig
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
# In deiner Sway-Konfigurationsdatei (~/.config/sway/config)
|
||||||
|
exec --no-startup-id fcitx5
|
||||||
|
#setenv GTK_IM_MODULE fcitx
|
||||||
|
#setenv QT_IM_MODULE fcitx
|
||||||
|
#setenv XMODIFIERS "@im=fcitx"
|
||||||
|
|
||||||
|
|
@ -0,0 +1,79 @@
|
||||||
|
# # Ecken abrunden
|
||||||
|
# corner_radius 10
|
||||||
|
#
|
||||||
|
# # Schatten
|
||||||
|
# shadows on
|
||||||
|
# shadow_blur_radius 20
|
||||||
|
# shadow_color #00000077
|
||||||
|
#
|
||||||
|
# # Unschärfe (Blur) für transparente Fenster
|
||||||
|
# blur on
|
||||||
|
# blur_xray off
|
||||||
|
## Deaktiviert "Smart Gaps" (damit Lücken immer da sind)
|
||||||
|
smart_gaps off
|
||||||
|
|
||||||
|
# Optional: Versteckt die Ränder, wenn nur ein Fenster offen ist
|
||||||
|
smart_borders on
|
||||||
|
|
||||||
|
# Stelle sicher, dass die Werte gesetzt sind
|
||||||
|
gaps inner 10
|
||||||
|
gaps outer 5
|
||||||
|
|
||||||
|
|
||||||
|
### Optik-Tuning
|
||||||
|
# Abgerundete Ecken für alle Fenster
|
||||||
|
corner_radius 12
|
||||||
|
|
||||||
|
# Schatten-Konfiguration
|
||||||
|
shadows on
|
||||||
|
shadow_blur_radius 20
|
||||||
|
shadow_color #000000A0
|
||||||
|
|
||||||
|
# Blur (Unschärfe)
|
||||||
|
# Tipp: Damit das gut aussieht, muss das Terminal/App transparent sein!
|
||||||
|
blur on
|
||||||
|
blur_passes 3
|
||||||
|
blur_radius 7
|
||||||
|
|
||||||
|
# Entferne die hässlichen Standard-Titelleisten
|
||||||
|
# default_border pixel 2 blur_radius 5
|
||||||
|
# # Waybar Hintergrund weichzeichnen
|
||||||
|
# for_window [class="waybar"] blur on
|
||||||
|
# for_window [class="waybar"] opacity 0.8
|
||||||
|
|
||||||
|
default_border pixel 2
|
||||||
|
#
|
||||||
|
# title_window_icon yes
|
||||||
|
# border 10pixel
|
||||||
|
|
||||||
|
layer_effects "waybar" {
|
||||||
|
blur enable;
|
||||||
|
blur_xray enable
|
||||||
|
shadows enable;
|
||||||
|
corner_radius 12;
|
||||||
|
}
|
||||||
|
# Effekte für SwayNotificationCenter
|
||||||
|
layer_effects "swaync" {
|
||||||
|
blur enable;
|
||||||
|
blur_xray enable
|
||||||
|
shadows enable;
|
||||||
|
corner_radius 12;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Effekte für Wofi
|
||||||
|
layer_effects "wofi" {
|
||||||
|
blur enable;
|
||||||
|
blur_xray enable
|
||||||
|
shadows enable;
|
||||||
|
corner_radius 12;
|
||||||
|
}
|
||||||
|
default_dim_inactive 0.4
|
||||||
|
|
||||||
|
|
||||||
|
titlebar_separator enable
|
||||||
|
#titlebar_padding 10 5
|
||||||
|
titlebar_border_thickness 2
|
||||||
|
|
||||||
|
scratchpad_minimize enable
|
||||||
|
# Alle Fenster standardmäßig leicht transparent machen
|
||||||
|
for_window [class=".*"] opacity 0.8
|
||||||
|
|
@ -0,0 +1,96 @@
|
||||||
|
{
|
||||||
|
"$schema": "/etc/xdg/swaync/configSchema.json",
|
||||||
|
"ignore-gtk-theme": true,
|
||||||
|
"positionX": "right",
|
||||||
|
"positionY": "top",
|
||||||
|
"layer": "overlay",
|
||||||
|
"control-center-layer": "top",
|
||||||
|
"layer-shell": true,
|
||||||
|
"layer-shell-cover-screen": true,
|
||||||
|
"cssPriority": "highest",
|
||||||
|
"control-center-margin-top": 0,
|
||||||
|
"control-center-margin-bottom": 0,
|
||||||
|
"control-center-margin-right": 0,
|
||||||
|
"control-center-margin-left": 0,
|
||||||
|
"notification-2fa-action": true,
|
||||||
|
"notification-inline-replies": false,
|
||||||
|
"notification-body-image-height": 100,
|
||||||
|
"notification-body-image-width": 200,
|
||||||
|
"timeout": 10,
|
||||||
|
"timeout-low": 5,
|
||||||
|
"timeout-critical": 0,
|
||||||
|
"fit-to-screen": true,
|
||||||
|
"relative-timestamps": true,
|
||||||
|
"control-center-width": 500,
|
||||||
|
"control-center-height": 600,
|
||||||
|
"notification-window-width": 500,
|
||||||
|
"keyboard-shortcuts": true,
|
||||||
|
"notification-grouping": true,
|
||||||
|
"image-visibility": "when-available",
|
||||||
|
"transition-time": 200,
|
||||||
|
"hide-on-clear": false,
|
||||||
|
"hide-on-action": true,
|
||||||
|
"text-empty": "No Notifications",
|
||||||
|
"script-fail-notify": true,
|
||||||
|
"scripts": {
|
||||||
|
"example-script": {
|
||||||
|
"exec": "echo 'Do something...'",
|
||||||
|
"urgency": "Normal"
|
||||||
|
},
|
||||||
|
"example-action-script": {
|
||||||
|
"exec": "echo 'Do something actionable!'",
|
||||||
|
"urgency": "Normal",
|
||||||
|
"run-on": "action"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-visibility": {
|
||||||
|
"example-name": {
|
||||||
|
"state": "muted",
|
||||||
|
"urgency": "Low",
|
||||||
|
"app-name": "Spotify"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"widgets": [
|
||||||
|
"inhibitors",
|
||||||
|
"title",
|
||||||
|
"dnd",
|
||||||
|
"notifications"
|
||||||
|
],
|
||||||
|
"widget-config": {
|
||||||
|
"inhibitors": {
|
||||||
|
"text": "Inhibitors",
|
||||||
|
"button-text": "Clear All",
|
||||||
|
"clear-all-button": true
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"text": "Notifications",
|
||||||
|
"clear-all-button": true,
|
||||||
|
"button-text": "Clear All"
|
||||||
|
},
|
||||||
|
"dnd": {
|
||||||
|
"text": "Do Not Disturb"
|
||||||
|
},
|
||||||
|
"label": {
|
||||||
|
"max-lines": 5,
|
||||||
|
"text": "Label Text"
|
||||||
|
},
|
||||||
|
"mpris": {
|
||||||
|
"blacklist": [],
|
||||||
|
"autohide": false,
|
||||||
|
"show-album-art": "always",
|
||||||
|
"loop-carousel": false
|
||||||
|
},
|
||||||
|
"buttons-grid": {
|
||||||
|
"buttons-per-row": 7,
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"label": "直",
|
||||||
|
"type": "toggle",
|
||||||
|
"active": true,
|
||||||
|
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'",
|
||||||
|
"update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,330 @@
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: "Hack Nerd Font";
|
||||||
|
transition: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
trough highlight {
|
||||||
|
background: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
scale {
|
||||||
|
margin: 0 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
scale trough {
|
||||||
|
margin: 0rem 1rem;
|
||||||
|
min-height: 8px;
|
||||||
|
min-width: 70px;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
trough slider {
|
||||||
|
margin: -10px;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
background-color: #8aadf4;
|
||||||
|
}
|
||||||
|
|
||||||
|
trough slider:hover {
|
||||||
|
box-shadow:
|
||||||
|
0 0 2px rgba(0, 0, 0, 0.8),
|
||||||
|
0 0 8px #8aadf4;
|
||||||
|
}
|
||||||
|
|
||||||
|
trough {
|
||||||
|
background-color: #363a4f;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* notifications */
|
||||||
|
.notification-background {
|
||||||
|
box-shadow:
|
||||||
|
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
||||||
|
inset 0 0 0 1px #494d64;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
margin: 18px;
|
||||||
|
background: #1e2030;
|
||||||
|
color: #cad3f5;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .notification {
|
||||||
|
padding: 7px;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .notification.critical {
|
||||||
|
box-shadow: inset 0 0 7px 0 #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification .notification-content {
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification .notification-content overlay {
|
||||||
|
/* icons */
|
||||||
|
margin: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content .summary {
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content .time {
|
||||||
|
color: #a5adcb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content .body {
|
||||||
|
color: #b8c0e0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification > *:last-child > * {
|
||||||
|
min-height: 3.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .close-button {
|
||||||
|
margin: 7px;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 6.3px;
|
||||||
|
color: #24273a;
|
||||||
|
background-color: #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .close-button:hover {
|
||||||
|
background-color: #ee99a0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-background .close-button:active {
|
||||||
|
background-color: #f5bde6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification .notification-action {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #cad3f5;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
margin: 4px;
|
||||||
|
padding: 8px;
|
||||||
|
font-size: 0.2rem; /* controls the button size not text size*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification .notification-action {
|
||||||
|
background-color: #363a4f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification .notification-action:hover {
|
||||||
|
background-color: #494d64;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification .notification-action:active {
|
||||||
|
background-color: #5b6078;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification.critical progress {
|
||||||
|
background-color: #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification.low progress,
|
||||||
|
.notification.normal progress {
|
||||||
|
background-color: #8aadf4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification progress,
|
||||||
|
.notification trough,
|
||||||
|
.notification progressbar {
|
||||||
|
border-radius: 12.6px;
|
||||||
|
padding: 3px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* control center */
|
||||||
|
.control-center {
|
||||||
|
box-shadow:
|
||||||
|
0 0 8px 0 rgba(0, 0, 0, 0.8),
|
||||||
|
inset 0 0 0 1px #363a4f;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
background-color: #24273a;
|
||||||
|
color: #cad3f5;
|
||||||
|
padding: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-background {
|
||||||
|
border-radius: 7px;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
margin: 4px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-background .notification {
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-background .notification.low {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title > label {
|
||||||
|
color: #cad3f5;
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #cad3f5;
|
||||||
|
background-color: #363a4f;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button:hover {
|
||||||
|
background-color: #494d64;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button:active {
|
||||||
|
background-color: #5b6078;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-group {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
scrollbar slider {
|
||||||
|
margin: -3px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
scrollbar trough {
|
||||||
|
margin: 2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* dnd */
|
||||||
|
.widget-dnd {
|
||||||
|
margin-top: 5px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > switch {
|
||||||
|
font-size: initial;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #363a4f;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > switch:checked {
|
||||||
|
background: #8aadf4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-dnd > switch slider {
|
||||||
|
background: #494d64;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* mpris */
|
||||||
|
.widget-mpris-player {
|
||||||
|
background: #363a4f;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
color: #cdd6f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mpris-overlay {
|
||||||
|
background-color: #363a4f;
|
||||||
|
opacity: 0.9;
|
||||||
|
padding: 15px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-album-art {
|
||||||
|
-gtk-icon-size: 100px;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-title {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris-subtitle {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #b8c0e0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris button {
|
||||||
|
border-radius: 12.6px;
|
||||||
|
color: #cad3f5;
|
||||||
|
margin: 0 5px;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris button image {
|
||||||
|
-gtk-icon-size: 1.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris button:hover {
|
||||||
|
background-color: #363a4f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris button:active {
|
||||||
|
background-color: #494d64;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-mpris button:disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-menubar > box > .menu-button-bar > button > label {
|
||||||
|
font-size: 3rem;
|
||||||
|
padding: 0.5rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-menubar > box > .menu-button-bar > :last-child {
|
||||||
|
color: #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.power-buttons button:hover,
|
||||||
|
.powermode-buttons button:hover,
|
||||||
|
.screenshot-buttons button:hover {
|
||||||
|
background: #363a4f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-label > label {
|
||||||
|
color: #cad3f5;
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid {
|
||||||
|
padding-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid > flowbox > flowboxchild > button label {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume {
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume label {
|
||||||
|
color: #7dc4e4;
|
||||||
|
padding: 0 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-volume trough highlight {
|
||||||
|
background: #7dc4e4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-backlight trough highlight {
|
||||||
|
background: #eed49f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-backlight label {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
color: #eed49f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-backlight .KB {
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,308 @@
|
||||||
|
* {
|
||||||
|
all: unset;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: "Hack Nerd Font";
|
||||||
|
transition: 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background .notification-row .notification-background {
|
||||||
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #363a4f;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
margin: 18px;
|
||||||
|
background-color: #24273a;
|
||||||
|
color: #cad3f5;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification {
|
||||||
|
padding: 7px;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification.critical {
|
||||||
|
box-shadow: inset 0 0 7px 0 #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content {
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.summary {
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.time {
|
||||||
|
color: #a5adcb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.body {
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> * {
|
||||||
|
min-height: 3.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #cad3f5;
|
||||||
|
background-color: #363a4f;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #363a4f;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #7dc4e4;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button {
|
||||||
|
margin: 7px;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 6.3px;
|
||||||
|
color: #24273a;
|
||||||
|
background-color: #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button:hover {
|
||||||
|
background-color: #ee99a0;
|
||||||
|
color: #24273a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications.background
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button:active {
|
||||||
|
background-color: #ed8796;
|
||||||
|
color: #24273a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center {
|
||||||
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #363a4f;
|
||||||
|
border-radius: 12.6px;
|
||||||
|
margin: 18px;
|
||||||
|
background-color: #24273a;
|
||||||
|
color: #cad3f5;
|
||||||
|
padding: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title {
|
||||||
|
color: #cad3f5;
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #cad3f5;
|
||||||
|
background-color: #363a4f;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #5b6078;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .widget-title button:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #7dc4e4;
|
||||||
|
color: #24273a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #cad3f5;
|
||||||
|
background-color: #363a4f;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background .notification {
|
||||||
|
padding: 7px;
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification.critical {
|
||||||
|
box-shadow: inset 0 0 7px 0 #ed8796;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content {
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.summary {
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.time {
|
||||||
|
color: #a5adcb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
.notification-content
|
||||||
|
.body {
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> * {
|
||||||
|
min-height: 3.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action {
|
||||||
|
border-radius: 7px;
|
||||||
|
color: #cad3f5;
|
||||||
|
background-color: #181926;
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
margin: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #363a4f;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.notification
|
||||||
|
> *:last-child
|
||||||
|
> *
|
||||||
|
.notification-action:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #7dc4e4;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background .close-button {
|
||||||
|
margin: 7px;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 6.3px;
|
||||||
|
color: #24273a;
|
||||||
|
background-color: #ee99a0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background .close-button:hover {
|
||||||
|
background-color: #ed8796;
|
||||||
|
color: #24273a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center
|
||||||
|
.notification-row
|
||||||
|
.notification-background
|
||||||
|
.close-button:active {
|
||||||
|
background-color: #ed8796;
|
||||||
|
color: #24273a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #8087a2;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row .notification-background:active {
|
||||||
|
box-shadow: inset 0 0 0 1px #494d64;
|
||||||
|
background-color: #7dc4e4;
|
||||||
|
color: #cad3f5;
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 8.9 MiB |
|
|
@ -22,11 +22,11 @@
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"sway/window"
|
"sway/window",
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"network",
|
"network",
|
||||||
//"custom/keyboard-layout",
|
"custom/keyboard-layout",
|
||||||
"battery",
|
"battery",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/notification",
|
"custom/notification",
|
||||||
|
|
@ -38,6 +38,18 @@
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// Modules
|
// Modules
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
"keyboard-state": {
|
||||||
|
"numlock": true,
|
||||||
|
"capslock": true,
|
||||||
|
"format": {
|
||||||
|
"numlock": "N {icon}",
|
||||||
|
"capslock": "C {icon}"
|
||||||
|
},
|
||||||
|
"format-icons": {
|
||||||
|
"locked": "",
|
||||||
|
"unlocked": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
"custom/notification": {
|
"custom/notification": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
|
|
@ -75,7 +87,13 @@
|
||||||
"", // Icon: battery-quarter
|
"", // Icon: battery-quarter
|
||||||
"" // Icon: battery-empty
|
"" // Icon: battery-empty
|
||||||
],
|
],
|
||||||
"tooltip": true
|
"tooltip": true,
|
||||||
|
"events": {
|
||||||
|
"on-discharging-warning": "notify-send -u normal 'Low Battery'",
|
||||||
|
"on-discharging-critical": "notify-send -u critical 'Very Low Battery'",
|
||||||
|
"on-charging-99": "notify-send -u normal 'Battery Full!'",
|
||||||
|
"on-discharging-96": "notify-send -u normal 'Battery discharge'",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"clock#time": {
|
"clock#time": {
|
||||||
|
|
@ -125,7 +143,8 @@
|
||||||
//"1:www": "龜", // Icon: firefox-browser
|
//"1:www": "龜", // Icon: firefox-browser
|
||||||
"2": "",
|
"2": "",
|
||||||
//"2:mail": "", // Icon: mail
|
//"2:mail": "", // Icon: mail
|
||||||
"3": "",
|
//"3": "",
|
||||||
|
"3":"",
|
||||||
//"3:editor": "", // Icon: code
|
//"3:editor": "", // Icon: code
|
||||||
"4": "",
|
"4": "",
|
||||||
//"4:terminals": "", // Icon: terminal
|
//"4:terminals": "", // Icon: terminal
|
||||||
|
|
@ -133,7 +152,7 @@
|
||||||
//"5:portal": "", // Icon: terminal
|
//"5:portal": "", // Icon: terminal
|
||||||
"6": "",
|
"6": "",
|
||||||
"urgent": "",
|
"urgent": "",
|
||||||
"focused": "",
|
//"focused": "",
|
||||||
"default": "",
|
"default": "",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,9 @@
|
||||||
background: rgba(50, 50, 50, 0.7);
|
background: rgba(50, 50, 50, 0.7);
|
||||||
color: white;
|
color: white;
|
||||||
/* font-family: Cantarell, Noto Sans, sans-serif; */
|
/* font-family: Cantarell, Noto Sans, sans-serif; */
|
||||||
font-family: "Hack Nerd Font", "Noto Sans", sans-serif;
|
/* font-family: "Hack Nerd Font", "Noto Sans", sans-serif; */
|
||||||
font-size: 13px;
|
font-family: "Hack Nerd Font";
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Each module */
|
/* Each module */
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#8bd5ca" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><g><path d="M500,10C229.4,10,10,229.4,10,500s219.4,490,490,490s490-219.4,490-490S770.6,10,500,10z M500,885.1c-212.7,0-385.1-172.4-385.1-385.1S287.3,114.9,500,114.9S885.1,287.3,885.1,500S712.7,885.1,500,885.1z M576.5,308.7v382.4c0,42.2-34.2,76.5-76.5,76.5c-42.3,0-76.5-34.2-76.5-76.5V308.7c0-42.2,34.2-76.5,76.5-76.5C542.2,232.3,576.5,266.5,576.5,308.7z"/></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 969 B |
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#8bd5ca" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><g><path d="M321.8,455.5h356.4V321.8c0-49.2-17.4-91.2-52.2-126c-34.8-34.8-76.8-52.2-126-52.2c-49.2,0-91.2,17.4-126,52.2c-34.8,34.8-52.2,76.8-52.2,126L321.8,455.5L321.8,455.5z M900.9,522.3v400.9c0,18.6-6.5,34.3-19.5,47.3c-13,13-28.8,19.5-47.3,19.5H165.9c-18.6,0-34.3-6.5-47.3-19.5s-19.5-28.8-19.5-47.3V522.3c0-18.6,6.5-34.3,19.5-47.3c13-13,28.8-19.5,47.3-19.5h22.3V321.8c0-85.4,30.6-158.7,91.9-219.9C341.3,40.6,414.6,10,500,10c85.4,0,158.7,30.6,219.9,91.9c61.3,61.3,91.9,134.6,91.9,219.9v133.6h22.3c18.6,0,34.3,6.5,47.3,19.5C894.4,487.9,900.9,503.7,900.9,522.3L900.9,522.3z"/></g></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#8bd5ca" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M622.5,990H50.8C26.3,990,10,973.7,10,949.2V50.8C10,26.3,26.3,10,50.8,10h571.7c24.5,0,40.8,16.3,40.8,40.8v285.8c0,24.5-16.3,40.8-40.8,40.8s-40.8-16.3-40.8-40.8v-245h-490v816.7h490v-245c0-24.5,16.3-40.8,40.8-40.8s40.8,16.3,40.8,40.8v285.8C663.3,973.7,647,990,622.5,990z"/><path d="M949.2,540.8H336.7c-24.5,0-40.8-16.3-40.8-40.8c0-24.5,16.3-40.8,40.8-40.8h612.5c24.5,0,40.8,16.3,40.8,40.8C990,524.5,973.7,540.8,949.2,540.8z"/><path d="M949.2,540.8c-12.3,0-20.4-4.1-28.6-12.3L757.3,365.3c-16.3-16.3-16.3-40.8,0-57.2c16.3-16.3,40.8-16.3,57.2,0l163.3,163.3c16.3,16.3,16.3,40.8,0,57.2C969.6,536.8,961.4,540.8,949.2,540.8z"/><path d="M785.8,704.2c-12.3,0-20.4-4.1-28.6-12.3c-16.3-16.3-16.3-40.8,0-57.2l163.3-163.3c16.3-16.3,40.8-16.3,57.2,0c16.3,16.3,16.3,40.8,0,57.2L814.4,691.9C806.3,700.1,798.1,704.2,785.8,704.2z"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#8bd5ca" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M134.6,285.6C64.9,420.7,60.1,590,137.1,723.4L42,668.5l-32,55.4c93.1,52.1,133.6,75.9,184,106.2c28.5-51.5,52.8-94.4,107.4-186.1L246,612l-53.4,92.5C65.4,502.7,167.2,200.3,398.8,126.2C638,29.3,929,223.5,931.5,481.5c19.6,236.7-208.9,443.6-439.3,416.2l-29.5,51c277.7,54.4,556.5-201.7,524.7-483.1C976.1,170.8,637.1-41.2,367.1,77.5C262.8,114.2,183.1,191.5,134.6,285.6z"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 877 B |
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#8bd5ca" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M764,152.1c30.9,22,58.3,46.8,82.4,74.6c24,27.8,44.6,57.8,61.8,90.1c17.2,32.3,30.2,66.4,39.1,102.4c8.9,36,13.4,72.6,13.4,109.6c0,63.8-12.2,123.7-36.5,179.6c-24.4,55.9-57.3,104.7-98.8,146.2c-41.5,41.5-90.2,74.5-146.2,98.8C623.2,977.8,563.3,990,499.5,990c-63.1,0-122.7-12.2-178.6-36.5c-55.9-24.4-104.8-57.3-146.7-98.8c-41.9-41.5-74.8-90.2-98.8-146.2c-24-55.9-36-115.8-36-179.6c0-36.4,4.3-72.1,12.9-107.1c8.6-35,20.8-68.3,36.5-99.9c15.8-31.6,35.3-61.1,58.7-88.5c23.3-27.5,49.4-52.2,78.2-74.1c15.1-11,31.4-15.1,48.9-12.4c17.5,2.7,31.7,11.3,42.7,25.7c11,14.4,15.1,30.5,12.4,48.4c-2.7,17.8-11.3,32.3-25.7,43.2c-43.2,31.6-76.4,70.3-99.3,116.3c-23,46-34.5,95.4-34.5,148.2c0,45.3,8.6,88,25.7,128.2c17.2,40.1,40.7,75.1,70.5,105c29.9,29.9,64.9,53.5,105,71c40.1,17.5,82.9,26.3,128.2,26.3c45.3,0,88-8.7,128.2-26.3c40.1-17.5,75.1-41.2,105-71s53.5-64.9,71-105c17.5-40.1,26.3-82.9,26.3-128.2c0-53.5-12.4-104.1-37.1-151.8c-24.7-47.7-59.4-87-104-117.9c-15.1-10.3-24.2-24.4-27.3-42.2c-3.1-17.8,0.5-34.3,10.8-49.4c10.3-14.4,24.4-23.2,42.2-26.2C732.5,138.2,748.9,141.8,764,152.1L764,152.1z M499.5,531.9c-17.8,0-33.1-6.3-45.8-19c-12.7-12.7-19-28-19-45.8V75.9c0-17.8,6.3-33.3,19-46.3c12.7-13,28-19.6,45.8-19.6c18.5,0,34.1,6.5,46.8,19.6c12.7,13,19,28.5,19,46.3v391.2c0,17.8-6.3,33.1-19,45.8C533.6,525.6,518,531.9,499.5,531.9L499.5,531.9z"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.8 KiB |
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg fill="#8bd5ca" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
|
<g><path d="M500,990c-66.1,0-130.3-13-190.7-38.5c-58.4-24.7-110.8-60-155.7-105s-80.3-97.4-105-155.7C23,630.3,10,566.1,10,500c0-66.1,13-130.3,38.5-190.7c24.7-58.4,60-110.8,105-155.7c45-45,97.4-80.3,155.7-105C369.7,23,433.9,10,500,10c66.1,0,130.3,13,190.7,38.5c58.4,24.7,110.8,60,155.7,105c45,45,80.3,97.4,105,155.7C977,369.7,990,433.9,990,500c0,66.1-13,130.3-38.5,190.7c-24.7,58.4-60,110.8-105,155.7s-97.4,80.3-155.7,105C630.3,977,566.1,990,500,990z M500,79.6c-112.3,0-217.9,43.7-297.3,123.1C123.3,282.1,79.6,387.7,79.6,500s43.7,217.9,123.1,297.3c79.4,79.4,185,123.1,297.3,123.1c112.3,0,217.9-43.7,297.3-123.1c79.4-79.4,123.1-185,123.1-297.3s-43.7-217.9-123.1-297.3C717.9,123.3,612.3,79.6,500,79.6z"/><path d="M322.5,290.6h108v412h-108V290.6z"/><path d="M561.6,290.6h107.9v412H561.6V290.6z"/></g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
|
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"label" : "lock",
|
||||||
|
"action" : "swaylock --screenshots --clock --indicator --indicator-radius 120 --indicator-thickness 10 --ignore-empty-password --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.3 --ring-color 8bd5ca --key-hl-color 91d7e3 --text-color cad3f5 --line-color 00000000 --inside-color 24273a88 --separator-color 00000000 --ring-ver-color 8aadf4 --inside-ver-color 24273a88 --ring-wrong-color ed8796 --inside-wrong-color 24273a88 --text-wrong-color ed8796 --bs-hl-color ed8796 --effect-compose '50%,25%;150x150;center;/home/crimsen/Bilder/wallpaper/logo.png'",
|
||||||
|
"text" : "Lock",
|
||||||
|
"keybind" : "l"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "logout",
|
||||||
|
"action" : "loginctl terminate-user $USER",
|
||||||
|
"text" : "Logout",
|
||||||
|
"keybind" : "e"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "shutdown",
|
||||||
|
"action" : "systemctl poweroff",
|
||||||
|
"text" : "Shutdown",
|
||||||
|
"keybind" : "s"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "suspend",
|
||||||
|
"action" : "systemctl suspend",
|
||||||
|
"text" : "Suspend",
|
||||||
|
"keybind" : "u"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "reboot",
|
||||||
|
"action" : "systemctl reboot",
|
||||||
|
"text" : "Reboot",
|
||||||
|
"keybind" : "r"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "hibernate",
|
||||||
|
"action" : "systemctl hibernate",
|
||||||
|
"text" : "Hibernate",
|
||||||
|
"keybind" : "h"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
* {
|
||||||
|
background-image: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
background-color: rgba(36, 39, 58, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
border-radius: 5rem;
|
||||||
|
border-color: #8bd5ca;
|
||||||
|
font-family: "JetBrainsMono Nerd Font";
|
||||||
|
font-size: 3rem;
|
||||||
|
text-decoration-color: #cad3f5;
|
||||||
|
color: #cad3f5;
|
||||||
|
background-color: rgba(30, 32, 48, 0.7);
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus,
|
||||||
|
button:active,
|
||||||
|
button:hover {
|
||||||
|
/* 20% Overlay 2, 80% mantle */
|
||||||
|
background-color: rgb(53, 57, 75);
|
||||||
|
outline-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#lock {
|
||||||
|
background-image: url("/home/crimsen/.config/wlogout/icons/lock.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#logout {
|
||||||
|
background-image: url("/home/crimsen/.config/wlogout/icons/logout.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#suspend {
|
||||||
|
background-image: url("/home/crimsen/.config/wlogout/icons/suspend.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#hibernate {
|
||||||
|
background-image: url("/home/crimsen/.config/wlogout/icons/hibernate.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#shutdown {
|
||||||
|
background-image: url("/home/crimsen/.config/wlogout/icons/shutdown.svg");
|
||||||
|
}
|
||||||
|
|
||||||
|
#reboot {
|
||||||
|
background-image: url("/home/crimsen/.config/wlogout/icons/reboot.svg");
|
||||||
|
}
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
/* Macchiato Blue */
|
/* Macchiato Blue */
|
||||||
@define-color accent #8aadf4;
|
/*@define-color accent #8aadf4;*/
|
||||||
|
@define-color accent rgba(138, 173, 244, 0.8);
|
||||||
@define-color txt #cad3f5;
|
@define-color txt #cad3f5;
|
||||||
@define-color bg #24273a;
|
@define-color bg rgba(36, 39, 58, 0.7);
|
||||||
@define-color bg2 #494d64;
|
/* @define-color bg #24273a; */
|
||||||
|
@define-color bg2 rgba(73, 77, 100, 0.7);
|
||||||
|
/* @define-color bg2 #494d64; */
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font-family: "JetBrains Mono Nerd Font", monospace;
|
/* font-family: "JetBrains Mono Nerd Font", monospace; */
|
||||||
|
font-family: "Hack Nerd Font";
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
[[plugin.deps]]
|
||||||
|
use = "yazi-rs/plugins:piper"
|
||||||
|
rev = "e84f4fe"
|
||||||
|
hash = "384464b6df8cb807425c521f8cd790f3"
|
||||||
|
|
||||||
|
[flavor]
|
||||||
|
deps = []
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 yazi-rs
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
@ -0,0 +1,102 @@
|
||||||
|
# piper.yazi
|
||||||
|
|
||||||
|
Pipe any shell command as a previewer.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ya pkg add yazi-rs/plugins:piper
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Piper is a general-purpose previewer - you can pass any shell command to `piper` and it will use the command's output as the preview content.
|
||||||
|
|
||||||
|
It accepts a string parameter, which is the shell command to be executed, for example:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
# ~/.config/yazi/yazi.toml
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*"
|
||||||
|
run = 'piper -- echo "$1"'
|
||||||
|
```
|
||||||
|
|
||||||
|
This will set `piper` as the previewer for all file types and use `$1` (file path) as the preview content.
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
Available variables:
|
||||||
|
|
||||||
|
- `$w`: the width of the preview area.
|
||||||
|
- `$h`: the height of the preview area.
|
||||||
|
- `$1`: the path to the file being previewed.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
Here are some configuration examples:
|
||||||
|
|
||||||
|
### Preview tarballs with [`tar`](https://man7.org/linux/man-pages/man1/tar.1.html)
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*.tar*"
|
||||||
|
run = 'piper --format=url -- tar tf "$1"'
|
||||||
|
```
|
||||||
|
|
||||||
|
In this example, `--format=url` tells `piper` to parse the `tar` output as file URLs, so you'll be able to get a list of files with icons.
|
||||||
|
|
||||||
|
### Preview CSV with [`bat`](https://github.com/sharkdp/bat)
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*.csv"
|
||||||
|
run = 'piper -- bat -p --color=always "$1"'
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that certain distributions might use a different name than `bat`, like Debian and Ubuntu use `batcat`, so please adjust accordingly.
|
||||||
|
|
||||||
|
### Preview Markdown with [`glow`](https://github.com/charmbracelet/glow)
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*.md"
|
||||||
|
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
||||||
|
```
|
||||||
|
|
||||||
|
Note that there's [a bug in Glow v2.0](https://github.com/charmbracelet/glow/issues/440#issuecomment-2307992634) that causes slight color differences between tty and non-tty environments.
|
||||||
|
|
||||||
|
### Preview directory tree with [`eza`](https://github.com/eza-community/eza)
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*/"
|
||||||
|
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Preview the schema of a SQLite database
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
mime = "application/sqlite3"
|
||||||
|
run = 'piper -- sqlite3 "$1" ".schema --indent"'
|
||||||
|
```
|
||||||
|
|
||||||
|
### Use [`hexyl`](https://github.com/sharkdp/hexyl) as fallback previewer
|
||||||
|
|
||||||
|
Yazi defaults to using [`file -bL "$1"`](https://github.com/sxyazi/yazi/blob/main/yazi-plugin/preset/plugins/file.lua) if there's no matched previewer.
|
||||||
|
|
||||||
|
This example uses `hexyl` as a fallback previewer instead of `file`.
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[plugin.append_previewers]]
|
||||||
|
url = "*"
|
||||||
|
run = 'piper -- hexyl --border=none --terminal-width=$w "$1"'
|
||||||
|
```
|
||||||
|
|
||||||
|
## Related projects
|
||||||
|
|
||||||
|
[`faster-piper.yazi`](https://github.com/alberti42/faster-piper.yazi): a cache-based, scrolling-optimized rewrite compatible with `piper.yazi`.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file.
|
||||||
|
|
@ -0,0 +1,70 @@
|
||||||
|
--- @since 26.1.22
|
||||||
|
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
local function fail(job, s) ya.preview_widget(job, ui.Text.parse(s):area(job.area):wrap(ui.Wrap.YES)) end
|
||||||
|
|
||||||
|
function M:peek(job)
|
||||||
|
local child, err = Command("sh")
|
||||||
|
:arg({ "-c", job.args[1], "sh", tostring(job.file.path) })
|
||||||
|
:env("w", job.area.w)
|
||||||
|
:env("h", job.area.h)
|
||||||
|
:stdout(Command.PIPED)
|
||||||
|
:stderr(Command.PIPED)
|
||||||
|
:spawn()
|
||||||
|
|
||||||
|
if not child then
|
||||||
|
return fail(job, "sh: " .. err)
|
||||||
|
end
|
||||||
|
|
||||||
|
local limit = job.area.h
|
||||||
|
local i, outs, errs = 0, {}, {}
|
||||||
|
repeat
|
||||||
|
local next, event = child:read_line()
|
||||||
|
if event == 1 then
|
||||||
|
errs[#errs + 1] = next
|
||||||
|
elseif event ~= 0 then
|
||||||
|
break
|
||||||
|
end
|
||||||
|
|
||||||
|
i = i + 1
|
||||||
|
if i > job.skip then
|
||||||
|
outs[#outs + 1] = next
|
||||||
|
end
|
||||||
|
until i >= job.skip + limit
|
||||||
|
|
||||||
|
child:start_kill()
|
||||||
|
if #errs > 0 then
|
||||||
|
fail(job, table.concat(errs, ""))
|
||||||
|
elseif job.skip > 0 and i < job.skip + limit then
|
||||||
|
ya.emit("peek", { math.max(0, i - limit), only_if = job.file.url, upper_bound = true })
|
||||||
|
else
|
||||||
|
ya.preview_widget(job, M.format(job, outs))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:seek(job) require("code"):seek(job) end
|
||||||
|
|
||||||
|
function M.format(job, lines)
|
||||||
|
local format = job.args.format
|
||||||
|
if format ~= "url" then
|
||||||
|
local s = table.concat(lines, ""):gsub("\t", string.rep(" ", rt.preview.tab_size))
|
||||||
|
return ui.Text.parse(s):area(job.area)
|
||||||
|
end
|
||||||
|
|
||||||
|
for i = 1, #lines do
|
||||||
|
lines[i] = lines[i]:gsub("[\r\n]+$", "")
|
||||||
|
|
||||||
|
local icon = File({
|
||||||
|
url = Url(lines[i]),
|
||||||
|
cha = Cha { mode = tonumber(lines[i]:sub(-1) == "/" and "40700" or "100644", 8) },
|
||||||
|
}):icon()
|
||||||
|
|
||||||
|
if icon then
|
||||||
|
lines[i] = ui.Line { ui.Span(" " .. icon.text .. " "):style(icon.style), lines[i] }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return ui.Text(lines):area(job.area)
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
[manager]
|
||||||
|
show_hidden = true
|
||||||
|
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*.tar*"
|
||||||
|
run = 'piper --format=url -- tar tf "$1"'
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*.csv"
|
||||||
|
run = 'piper -- bat -p --color=always "$1"'
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
url = "*.md"
|
||||||
|
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
||||||
|
[[plugin.prepend_previewers]]
|
||||||
|
mime = "application/sqlite3"
|
||||||
|
run = 'piper -- sqlite3 "$1" ".schema --indent"'
|
||||||