examples: Use noctalia-shell and wezterm.

This commit is contained in:
Hilton Chain 2026-02-10 14:51:42 +08:00
parent 73c32a7b2c
commit 55d7f8f06d
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
8 changed files with 25 additions and 266 deletions

View File

@ -1,4 +0,0 @@
font=monospace:size=12
[environment]
TERM=xterm-256color

View File

@ -1,6 +0,0 @@
font=monospace 11
text-color=#13181B
background-color=#D2DEE9E0
border-size=1
border-color=#B3C6D3
border-radius=5

View File

@ -365,8 +365,8 @@ binds {
Mod+Shift+Slash { show-hotkey-overlay; } Mod+Shift+Slash { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+T hotkey-overlay-title="Open a Terminal: foot" { spawn "foot"; } Mod+Return hotkey-overlay-title="Open a Terminal" { spawn "wezterm"; }
Mod+D hotkey-overlay-title="Run an Application: rofi" { spawn "rofi" "-show" "drun"; } Mod+D hotkey-overlay-title="Run an Application" { spawn "noctalia-shell" "ipc" "call" "launcher" "toggle"; }
// Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } // Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc. // Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.

View File

@ -0,0 +1,9 @@
{
"colorSchemes": {
"darkMode": false,
"predefinedScheme": "Nord"
},
"wallpaper": {
"enabled": false
}
}

View File

@ -0,0 +1,8 @@
{
"changelogState": {
"lastSeenVersion": "v4.4.0"
},
"telemetry": {
"instanceId": ""
}
}

View File

@ -1,103 +0,0 @@
// -*- mode: jsonc -*-
{
"layer": "top",
"height": 36,
"spacing": 5,
"modules-left": [
"temperature",
"cpu",
"memory",
"wlr/taskbar",
],
"modules-center": [
"clock",
],
"modules-right": [
"tray",
"wireplumber",
"backlight",
"battery",
],
// left
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}\u00B0C",
"interval": 2,
"tooltip": false,
},
"cpu": {
"format": "CPU {usage}%",
"states": {
"full": 90,
},
"interval": 2,
},
"memory": {
"format": "RAM {percentage}%",
"states": {
"full": 90,
},
"interval": 2,
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 16,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
},
// center
"clock": {
"format": "{:%A, %B %d, %Y (%R)}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "year",
"mode-mon-col" : 3,
"weeks-pos" : "right",
"on-scroll" : 1,
"format": {
"months": "<span color='#FFEAD3'><b>{}</b></span>",
"days": "<span color='#ECC6D9'><b>{}</b></span>",
"weeks": "<span color='#99FFDD'><b>W{}</b></span>",
"weekdays": "<span color='#FFCC66'><b>{}</b></span>",
"today": "<span color='#FF6699'><b><u>{}</u></b></span>",
}
},
"actions": {
"on-click-right": "mode",
"on-scroll-up": "tz_up",
"on-scroll-down": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
}
},
// right
"tray": {
"spacing": 10,
},
"wireplumber": {
"scroll-step": 5,
"format": "{icon} {volume}%",
"format-icons": ["\uF026", "\uF027", "\uF028"],
"format-muted": "Muted {volume}%",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"on-click-right": "pavucontrol",
},
"backlight": {
"on-scroll-down": "light -U 5",
"on-scroll-up": "light -A 5",
"format": "{icon} {percent}%",
"format-icons": ["\uF186", "\uF0EB"],
"tooltip": false,
},
"battery": {
"interval": 60,
"states": {
"warning": 30,
"critical": 15,
},
"format": "{icon} {capacity}%",
"format-icons": ["\uF244", "\uF243", "\uF242", "\uF241", "\uF240"],
},
}

View File

@ -1,136 +0,0 @@
@define-color bg1 #D2DEE9;
@define-color bg2 #13181B;
@define-color red #EC7875;
@define-color green #A3BE8C;
/* Execute guix shell python-pywal imagemagick -- wal -nstei <image>, */
/* then select colors from ~/.cache/wal/colors-waybar.css. */
@define-color color0 #AFB5AE;
@define-color color1 #A7BAC9;
@define-color color2 #B3C6D3;
@define-color color3 #DBEDF3;
@define-color color4 #A7BAC9;
@define-color color5 #C2C2B5;
@define-color color6 #939BA3;
* {
font-size: 1.2rem;
background-color: transparent;
border-radius: 5px;
}
window {
color: @bg2;
}
tooltip {
background-color: @bg2;
border: 1px solid @bg2;
}
tooltip label {
color: @bg1;
text-shadow: none;
}
.modules-right {
margin: 10px 10px 0 0;
}
.modules-center {
margin: 10px 0 0 0;
}
.modules-left {
margin: 10px 0 0 10px;
}
#temperature,
#cpu,
#memory,
#clock,
#tray,
#wireplumber,
#backlight,
#battery {
padding: 0 10px;
background-color: @bg1;
opacity: 0.95;
}
#taskbar {
color: @bg2;
background-color: @bg1;
}
#taskbar.empty {
background: transparent;
}
#taskbar button {
/* https://github.com/Alexays/Waybar/issues/3334 */
padding: 0;
padding-left: 5px;
padding-right: 5px;
}
#tray menu {
color: @bg2;
background-color: @bg1;
}
#tray menu menuitem:hover {
color: @bg1;
background-color: @bg2;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
}
#tray {
background-color: @bg2;
}
#cpu.full,
#memory.full,
#temperature.critical,
#wireplumber.muted,
#battery.warning, #battery.critical {
background-color: @red;
}
#battery.charging, #battery.plugged {
background-color: @green;
}
#temperature {
background-color: @color0;
}
#cpu {
background-color: @color1;
}
#memory {
background-color: @color2;
}
#clock {
background-color: @color3;
}
#wireplumber {
background-color: @color4;
}
#backlight {
background-color: @color5;
}
#battery {
background-color: @color6;
}

View File

@ -648,24 +648,15 @@ set-keymap us dvorak -o ctrl:nocaps\n")
(".config/emacs/init-miscellaneous.el" (".config/emacs/init-miscellaneous.el"
,(local-file "../examples/emacs/init-miscellaneous.el")) ,(local-file "../examples/emacs/init-miscellaneous.el"))
(".config/foot/foot.ini"
,(local-file "../examples/foot/foot.ini"))
(".config/mako/config"
,(local-file "../examples/mako.conf"))
(".config/niri/config.kdl" (".config/niri/config.kdl"
,(local-file "../examples/niri.kdl")) ,(local-file "../examples/niri.kdl"))
(".config/rofi/config.rasi" (".cache/noctalia/shell-state.json"
,(plain-file "rofi.rasi" "\ ,(local-file "../examples/noctalia-shell/shell-state.json"))
configuration { (".config/noctalia/settings.json"
icon-theme: \"Qogir\"; ,(local-file "../examples/noctalia-shell/settings.json"))
}
@theme \"/run/current-system/profile/share/rofi/themes/fullscreen-preview.rasi\"\n"))
(".config/waybar/config.jsonc"
,(local-file "../examples/waybar/config.jsonc"))
(".config/waybar/style.css"
,(local-file "../examples/waybar/style.css"))
(".config/xfce4/helpers.rc" (".config/xfce4/helpers.rc"
,(plain-file "helpers.rc" "TerminalEmulator=rofi-sensible-terminal\n")) ,(plain-file "helpers.rc" "TerminalEmulator=open-wezterm-here\n"))
;; Selected from the default skeletons. ;; Selected from the default skeletons.
(".config/gdb/gdbinit" ,%default-gdbinit) (".config/gdb/gdbinit" ,%default-gdbinit)
(".config/nano/nanorc" ,%default-nanorc) (".config/nano/nanorc" ,%default-nanorc)