1 Commits
dev ... cachyos

Author SHA1 Message Date
4642facc91 cachyos sway updated 2026-01-25 18:06:08 +08:00
4 changed files with 437 additions and 126 deletions

77
config
View File

@@ -1,7 +1,5 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
# Set default font for sway and monospace font
@@ -21,8 +19,8 @@ set $right l
set $term foot
# Your preferred application launcher
#set $menu wmenu-run
set $menu "wofi --show drun"
set $browser firefox
set $menu "wofi -show drun"
set $browser firefox-developer-edition
# ... (previous config)
@@ -38,36 +36,49 @@ default_border pixel 2
default_floating_border pixel 2
hide_edge_borders smart
# Colors (Minimalist Monochrome)
set $base #1a1a1a
set $mantle #151515
set $crust #0f0f0f
set $text #e0e0e0
set $subtext1 #c0c0c0
set $subtext0 #b0b0b0
set $surface2 #404040
set $surface1 #333333
set $surface0 #2a2a2a
set $overlay2 #707070
set $overlay1 #606060
set $overlay0 #505050
set $accent #888888
set $warning #d4a574
set $critical #c47878
# Colors (Catppuccin Mocha Inspired)
set $rosewater #f5e0dc
set $flamingo #f2cdcd
set $pink #f5c2e7
set $mauve #cba6f7
set $red #f38ba8
set $maroon #eba0ac
set $peach #fab387
set $yellow #f9e2af
set $green #a6e3a1
set $teal #94e2d5
set $sky #89dceb
set $sapphire #74c7ec
set $blue #89b4fa
set $lavender #b4befe
set $text #cdd6f4
set $subtext1 #bac2de
set $subtext0 #a6adc8
set $overlay2 #9399b2
set $overlay1 #7f849c
set $overlay0 #6c7086
set $surface2 #585b70
set $surface1 #45475a
set $surface0 #313244
set $base #1e1e2e
set $mantle #181825
set $crust #11111b
# class border backgr. text indicator child_border
client.focused $accent $base $text $surface2 $accent
client.focused_inactive $surface1 $base $subtext0 $surface2 $surface1
client.unfocused $surface0 $base $subtext0 $surface2 $surface0
client.urgent $critical $base $text $surface2 $critical
client.placeholder $surface0 $base $subtext0 $surface0 $surface0
# class border backgr. text indicator child_border
client.focused $mauve $base $text $rosewater $mauve
client.focused_inactive $overlay0 $base $text $rosewater $overlay0
client.unfocused $overlay0 $base $text $rosewater $overlay0
client.urgent $red $base $peach $overlay0 $red
client.placeholder $overlay0 $base $text $overlay0 $overlay0
client.background $base
### Output configuration
#
# 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 /home/gh0s7/Pictures/wallpapers/TP1024.BMP fill
#output * bg /home/gh0s7/Pictures/Wallpapers/130036304_p21.png fill
output * bg /home/gh0s7/Pictures/Wallpapers/ThinkPad/TP1024.BMP fill
output eDP-1 scale 1.5
#
# Example configuration:
#
@@ -130,8 +141,9 @@ input * xkb_options caps:escape_shifted_capslock
bindsym $mod+d exec $menu
bindsym Alt+Space exec $menu
bindsym Ctrl+Alt+F exec $browser
bindsym Ctrl+Alt+L exec swaylock -i ~/Pictures/wallpapers/IBM1024R.BMP -s fill
bindsym Ctrl+Alt+f exec $browser
bindsym Ctrl+Alt+l exec swaylock -i /home/gh0s7/Pictures/Wallpapers/ThinkPad/IBM1024R.BMP -s fill
bindsym Ctrl+Alt+e exec dolphin
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@@ -184,7 +196,7 @@ input * xkb_options caps:escape_shifted_capslock
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 0
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
@@ -303,9 +315,8 @@ exec_always waybar
include /etc/sway/config.d/*
#exec_always fcixt5 -d --replace
exec --no-startup-id fcitx5 -d
exec --no-startup-id brightnessctl set 2000
exec --no-startup-id /usr/libexec/pipewire-launcher
exec_always mako
exec --no-startup-id brightnessctl set 16000
#exec --no-startup-id /usr/libexec/pipewire-launcher
# Idle configuration
exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \

311
starship.toml Normal file
View File

@@ -0,0 +1,311 @@
"$schema" = 'https://starship.rs/config-schema.json'
# Global Layout
add_newline = true
command_timeout = 1000
format = """
$os\
$username\
$hostname\
$directory\
$git_branch\
$git_commit\
$git_status\
$docker_context\
$package\
$c\
$cmake\
$cpp\
$golang\
$haskell\
$java\
$kotlin\
$lua\
$nodejs\
$python\
$rust\
$zig\
$conda\
$memory_usage\
$aws\
$gcloud\
$cmd_duration\
$line_break\
$character"""
right_format = """$time"""
# Module Configuration
[os]
disabled = false
style = "bold blue"
[os.symbols]
Alpaquita = " "
Alpine = " "
AlmaLinux = " "
Amazon = " "
Android = " "
AOSC = " "
Arch = " "
Artix = " "
CachyOS = " "
CentOS = " "
Debian = " "
DragonFly = " "
Elementary = " "
Emscripten = " "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = "󰛓 "
Gentoo = " "
HardenedBSD = "󰞌 "
Illumos = "󰈸 "
Ios = "󰀷 "
Kali = " "
Linux = " "
Mabox = " "
Macos = " "
Manjaro = " "
Mariner = " "
MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
Nobara = " "
OpenBSD = "󰈺 "
openSUSE = " "
OracleLinux = "󰌷 "
Pop = " "
Raspbian = " "
Redhat = " "
RedHatEnterprise = " "
RockyLinux = " "
Redox = "󰀘 "
Solus = "󰠳 "
SUSE = " "
Ubuntu = " "
Unknown = " "
Void = " "
Windows = "󰍲 "
Zorin = " "
[time]
disabled = false
style = "bold white"
format = "[$time]($style)"
time_format = "%Y-%m-%d %A %H:%M:%S"
[username]
style_user = "bold green"
style_root = "bold red"
format = "[$user]($style)"
disabled = false
show_always = true
[directory]
style = "bold cyan"
truncation_length = 3
truncation_symbol = ""
truncate_to_repo = true
read_only = " 󰌾"
[character]
#success_symbol = "[➜](bold green)"
success_symbol = "[](bold green)"
#success_symbol = "[](bold green)"
#error_symbol = "[✗](bold red)"
error_symbol = "[](bold red)"
vimcmd_symbol = "[V](bold green)"
[git_branch]
symbol = " "
style = "bold purple"
format = "[$symbol$branch(:$remote_branch)]($style) "
[git_status]
style = "bold green"
format = '([\[$all_status$ahead_behind\]]($style) )'
conflicted = "🏳"
ahead = "⇡${count}"
behind = "⇣${count}"
diverged = "⇕⇡${ahead_count}⇣${behind_count}"
up_to_date = "✓"
untracked = "?${count}"
stashed = "$${count}"
modified = "!${count}"
staged = "+${count}"
renamed = "»${count}"
deleted = "✘${count}"
[cmd_duration]
min_time = 2000
style = "bold pink"
# Languages and Tools Symbols (Preserving user choices)
[aws]
symbol = " "
[buf]
symbol = " "
[bun]
symbol = " "
[c]
symbol = " "
[cpp]
symbol = " "
[cmake]
symbol = " "
[conda]
symbol = " "
[crystal]
symbol = " "
[dart]
symbol = " "
[deno]
symbol = " "
[docker_context]
symbol = " "
[elixir]
symbol = " "
[elm]
symbol = " "
[fennel]
symbol = " "
[fortran]
symbol = " "
[fossil_branch]
symbol = " "
[gcloud]
symbol = " "
[git_commit]
tag_symbol = ' '
commit_hash_length = 8
format = "[\\($hash$tag\\)]($style) "
style = "bold green"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
style = "bold yellow"
[git_metrics]
disabled = false
added_style = "bold green"
deleted_style = "bold red"
format = "[+$added]($added_style)/[-$deleted]($deleted_style) "
[golang]
symbol = " "
[gradle]
symbol = " "
[guix_shell]
symbol = " "
[haskell]
symbol = " "
[haxe]
symbol = " "
[hg_branch]
symbol = " "
[hostname]
ssh_symbol = " "
ssh_only = false
format = "[@$hostname]($style) "
style = "bold cyan"
disabled = false
[java]
symbol = " "
[julia]
symbol = " "
[kotlin]
symbol = " "
[lua]
symbol = " "
[memory_usage]
symbol = "󰍛 "
[meson]
symbol = "󰔷 "
[nim]
symbol = "󰆥 "
[nix_shell]
symbol = " "
[nodejs]
symbol = " "
[ocaml]
symbol = " "
[package]
symbol = "󰏗 "
[perl]
symbol = " "
[php]
symbol = " "
[pijul_channel]
symbol = " "
[pixi]
symbol = "󰏗 "
[python]
symbol = " "
[rlang]
symbol = "󰟔 "
[ruby]
symbol = " "
[rust]
symbol = "󱘗 "
[scala]
symbol = " "
[status]
symbol = " "
[swift]
symbol = " "
[xmake]
symbol = " "
[zig]
symbol = " "

View File

@@ -13,7 +13,7 @@
"sway/workspaces",
"sway/mode",
"sway/scratchpad"
// "custom/media"
// "custom/media"
],
"modules-center": [
"sway/window"
@@ -34,7 +34,7 @@
"tray",
"battery",
"clock"
// "custom/power"
// "custom/power"
],
// Modules configuration
// "sway/workspaces": {

View File

@@ -1,38 +1,47 @@
/* Minimalist monochrome color scheme */
@define-color base #1a1a1a;
@define-color mantle #151515;
@define-color crust #0f0f0f;
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
@define-color text #e0e0e0;
@define-color subtext0 #b0b0b0;
@define-color subtext1 #c0c0c0;
@define-color text #cdd6f4;
@define-color subtext0 #a6adc8;
@define-color subtext1 #bac2de;
@define-color surface0 #2a2a2a;
@define-color surface1 #333333;
@define-color surface2 #404040;
@define-color surface0 #313244;
@define-color surface1 #45475a;
@define-color surface2 #585b70;
@define-color overlay0 #505050;
@define-color overlay1 #606060;
@define-color overlay2 #707070;
@define-color overlay0 #6c7086;
@define-color overlay1 #7f849c;
@define-color overlay2 #9399b2;
/* Accent colors - only for critical states */
@define-color accent #888888;
@define-color warning #d4a574;
@define-color critical #c47878;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color sapphire #74c7ec;
@define-color sky #89dceb;
@define-color teal #94e2d5;
@define-color green #a6e3a1;
@define-color yellow #f9e2af;
@define-color peach #fab387;
@define-color maroon #eba0ac;
@define-color red #f38ba8;
@define-color mauve #cba6f7;
@define-color pink #f5c2e7;
@define-color flamingo #f2cdcd;
@define-color rosewater #f5e0dc;
* {
border: none;
border-radius: 0;
font-family: "Maple Mono NF CN", "Font Awesome 7 Free", Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
font-size: 14px;
min-height: 0;
}
window#waybar {
background-color: transparent;
color: @text;
color: @surface0;
transition-property: background-color;
transition-duration: .3s;
transition-duration: .5s;
}
window#waybar.hidden {
@@ -42,7 +51,7 @@ window#waybar.hidden {
/* Workspaces */
#workspaces {
background-color: @surface1;
border-radius: 12px;
border-radius: 16px;
margin-top: 4px;
margin-bottom: 4px;
padding: 0px 6px;
@@ -51,10 +60,9 @@ window#waybar.hidden {
#workspaces button {
padding: 0 10px;
background-color: transparent;
color: @subtext0;
border-radius: 10px;
color: @text;
border-radius: 16px;
margin: 4px 0;
transition: all 0.2s ease;
}
#workspaces button:hover {
@@ -63,34 +71,34 @@ window#waybar.hidden {
}
#workspaces button.focused {
color: @text;
background-color: @accent;
color: @base;
background-color: @mauve;
}
#workspaces button.urgent {
color: @base;
background-color: @critical;
background-color: @red;
}
/* Window Title */
#window {
background-color: transparent;
color: @subtext1;
border-radius: 12px;
color: @text;
border-radius: 16px;
padding: 0 12px;
margin: 0 4px;
font-weight: 500;
}
/* Modules Right - Grouped look */
.modules-right {
margin-top: 4px;
margin-bottom: 4px;
border-radius: 12px;
/* background-color: @base; */
border-radius: 16px;
padding: 0 2px;
}
/* Individual Module Styling - Unified monochrome design */
/* Individual Module Styling */
#clock,
#battery,
#cpu,
@@ -103,49 +111,37 @@ window#waybar.hidden {
#tray,
#mpd,
#idle_inhibitor {
padding: 0 10px;
margin: 0 3px;
color: @text;
background-color: @surface1;
border-radius: 10px;
transition: background-color 0.2s ease;
padding: 0 12px;
margin: 0 4px;
color: @text; /* Changed to @text for better contrast with @surface1 and consistency */
background-color: @surface1; /* Changed to @surface1 */
border-radius: 16px;
}
#clock:hover,
#battery:hover,
#cpu:hover,
#memory:hover,
#temperature:hover,
#backlight:hover,
#network:hover,
#pulseaudio:hover {
background-color: @surface2;
}
/* Specific Module Colors - Minimalist approach */
/* Specific Module Colors */
#clock {
background-color: @surface2;
color: @text;
font-weight: 600;
background-color: @mauve;
color: @base;
font-weight: bold;
}
#battery {
background-color: @surface1;
color: @text;
background-color: @green;
color: @base;
}
#battery.charging, #battery.plugged {
background-color: @surface2;
color: @text;
background-color: @teal;
color: @base;
}
#battery.warning:not(.charging) {
background-color: @warning;
background-color: @peach;
color: @base;
}
#battery.critical:not(.charging) {
background-color: @critical;
background-color: @red;
color: @base;
animation-name: blink;
animation-duration: 0.5s;
@@ -155,43 +151,41 @@ window#waybar.hidden {
}
#cpu {
background-color: @surface1;
color: @text;
}
#memory {
background-color: @surface1;
color: @text;
}
#temperature {
background-color: @surface1;
color: @text;
}
#temperature.critical {
background-color: @critical;
background-color: @sapphire;
color: @base;
}
#memory {
background-color: @sky;
color: @base;
}
#temperature {
background-color: @lavender;
color: @base;
}
#temperature.critical {
background-color: @red;
}
#backlight {
background-color: @surface1;
color: @text;
background-color: @yellow;
color: @base;
}
#network {
background-color: @surface1;
color: @text;
background-color: @blue;
color: @base;
}
#network.disconnected {
background-color: @overlay0;
color: @subtext0;
}
#pulseaudio {
background-color: @surface1;
color: @text;
background-color: @pink;
color: @base;
}
#pulseaudio.muted {
@@ -200,8 +194,8 @@ window#waybar.hidden {
}
#tray {
background-color: @surface1;
color: @text;
background-color: @peach;
color: @surface0;
}
#window.empty {
@@ -213,20 +207,15 @@ window#waybar.hidden {
color: @text;
}
#idle_inhibitor {
background-color: @surface1;
color: @text;
}
#custom-power {
background-color: @critical;
background-color: @red;
color: @base;
padding-right: 16px;
}
@keyframes blink {
to {
background-color: @overlay2;
background-color: @text;
color: @base;
}
}