upload to gitea

This commit is contained in:
seb
2026-09-02 00:13:39 +02:00
parent b2e26e373c
commit ca561e783f
83 changed files with 3980 additions and 226 deletions
+186
View File
@@ -0,0 +1,186 @@
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
// "height": 30, // Auto-height is used when commented
// "width": 1280, // Full screen width when commented
"spacing": 16, // Gaps between modules (in px)
// See `man waybar` for more configuration options
// Configuration - modules-left
"modules-left": [
"custom/launcher",
"sway/workspaces",
"sway/mode",
"sway/window"
],
"custom/launcher": {
"format":"<span size='x-large'></span>",
"on-click": "exec nwg-drawer",
"tooltip": false
},
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "10"
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>",
"tooltip": false
},
"sway/window": {
"format": "{}",
//"all-outputs": true, // Active window shows only on active display when commented
"max-length": 120
},
// Configuration - modules-center
"modules-center": [
"network"
],
"network": {
"format-disabled": " Disabled",
"format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-wifi": "{essid}",
"format-ethernet": "󰈀 {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient -T waybar_nmtui -e nmtui",
"interval": 2
},
// Configuration - modules-right
"modules-right": [
"custom/keyboard-layout",
"idle_inhibitor",
"cpu",
"memory",
"backlight",
"pulseaudio",
"battery",
"clock",
"tray",
"custom/power"
],
"custom/keyboard-layout": {
"exec": "i=$(swaymsg -t get_inputs); echo \"\"; echo \"$i\" | grep -m1 'xkb_active_layout_name' | cut -d '\"' -f4",
"format": "",
// Interval set only as a fallback; use signal to update the module more immediately
"interval": 30,
// See example config for sending signal to Waybar in ~/.config/sway/config.d/input
"signal": 1,
"on-click": "~/.config/waybar/scripts/keyhint.sh"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
"tooltip-format-activated": "Idle Inhibitor Activated",
"tooltip-format-deactivated": "Idle Inhibitor Deactivated"
},
"cpu": {
"interval": 5,
"format": "{usage:>3}%",
"states": {
"warning": 70,
"critical": 90,
},
"on-click": "footclient -T waybar_htop -e htop"
},
"memory": {
"interval": 5,
"format": "{:>3}%",
"on-click": "footclient -T waybar_htop -e htop",
"states": {
"warning": 70,
"critical": 90
}
},
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["󰄰", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
"tooltip-format": "Backlight (Scroll): {percent:}%",
"on-scroll-down": "brightnessctl -c backlight set 5%-",
"on-scroll-up": "brightnessctl -c backlight set +5%"
},
"pulseaudio": {
"scroll-step": 2,
"format": "{icon} {volume}%",
"format-muted":"󰝟 muted",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["󰕿", "󰖀", "󰕾"]
},
"on-click": "pavucontrol"
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""]
},
"clock": {
"format": "󰅐 {:%H:%M}",
"format-alt": "󰅐 {:%OI:%M %p}",
"tooltip-format": " {:%A %m/%d}\n\n<tt><small>{calendar}</small></tt>",
"calendar": {
"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-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
},
},
"tray": {
"icon-size": 16,
"spacing":10
},
"custom/power": {
"format":"⏻",
"on-click": "exec ~/.config/sway/scripts/power_menu.sh",
"tooltip": false
},
}
+103
View File
@@ -0,0 +1,103 @@
#!/bin/bash
# Set the font
font="JetBrainsMono"
cheat=(
--title="EndeavourOS Sway keybindings:"
--no-buttons
--geometry=1200x680
--list
--no-click
--no-selection
--column="<span font='$font Bold 18'>Function</span>"
--column="<span font='$font Bold 18'>Binding</span>"
--column=""
--column="<span font='$font Bold 18'>Function</span>"
--column="<span font='$font Bold 18'>Binding</span>"
--column-align=ccccc
--header-align=ccccc
"<span font='$font 16' foreground='#808080'>GENERAL</span>"
""
""
"<span font='$font 16' foreground='#808080'>LAUNCHERS AND MENUS</span>"
""
"<span font='$font 14'>Mod key (Super/Meta//󰘳)</span>"
"<span font='$font 18'></span>"
""
"<span font='$font 14'>Open the launcher</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰯴</span>"
"<span font='$font 14'>Change window focus</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰜳 󰜰 󰜹 󰜶</span>"
""
"<span font='$font 14'>Open the application menu</span>"
"<span font='$font 14'> + Shift + </span><span font='$font 18'>󰯴</span>"
"<span font='$font 14'>Vim keys are supported</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰰀 󰰆 󰰉 󰰌</span>"
""
"<span font='$font 14'>Open the power menu</span>"
"<span font='$font 14'> + Shift + </span><span font='$font 18'>󰯷</span>"
"<span font='$font 14'>Close a window</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰰛</span>"
""
"<span font='$font 14'>Activities overview</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰰘</span>"
"<span font='$font 14'>Move a window</span>"
"<span font='$font 14'> + Shift + </span><span font='$font 18'>󰜳 󰜰 󰜹 󰜶</span>"
""
"<span font='$font 16' foreground='#808080'>SCREENSHOTS</span>"
""
"<span font='$font 14'>Move window with mouse</span>"
"<span font='$font 14'> + 󰍽</span>"
""
"<span font='$font 14'>Snip a screenshot</span>"
"<span font='$font 14'>Print</span>"
"<span font='$font 14'>Resize a window</span>"
"<span font='$font 14'> + Ctrl + </span><span font='$font 18'>󰜳 󰜰 󰜹 󰜶</span>"
""
"<span font='$font 14'>Screenshot a window</span>"
"<span font='$font 14'>Ctrl + Print</span>"
"<span font='$font 14'>Resize with right click</span>"
"<span font='$font 14'> + 󰍽</span>"
""
"<span font='$font 14'>Screenshot the display</span>"
"<span font='$font 14'>Shift + Print</span>"
"<span font='$font 14'>Change workspace</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰎦 󰎩 󰎬 󰎮</span><span font='$font 14'> ...</span>"
""
"<span font='$font 16' foreground='#808080'>CLIPBOARD MANAGER</span>"
""
"<span font='$font 14'>Send window to workspace</span>"
"<span font='$font 14'> + Shift + </span><span font='$font 18'>󰎦 󰎩 󰎬 󰎮</span><span font='$font 14'> ...</span>"
""
"<span font='$font 14'>Launch cliphist</span>"
"<span font='$font 14'>Ctrl +  + </span><span font='$font 18'>󰰪</span>"
"<span font='$font 14'>Toggle floating/tiling</span>"
"<span font='$font 14'> + Shift + Space</span>"
""
"<span font='$font 14'>Delete an entry from cliphist</span>"
"<span font='$font 14'>Ctrl +  + </span><span font='$font 18'>󰰰</span>"
"<span font='$font 14'>Toggle fullscreen</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰯺</span>"
""
"<span font='$font 16' foreground='#808080'>APPLICATION SHORTCUTS</span>"
""
"<span font='$font 16' foreground='#808080'>SCRATCHPAD</span>"
""
""
"<span font='$font 14'>Launch the terminal</span>"
"<span font='$font 14'> + Enter</span>"
"<span font='$font 14'>Move window to scratchpad</span>"
"<span font='$font 14'> + Shift + </span><span font='$font 18'>󰛲</span>"
""
"<span font='$font 14'>Launch the file explorer</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰰒</span>"
"<span font='$font 14'>Show next scratchpad window</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰛲</span>"
""
"<span font='$font 14'>Launch the web browser</span>"
"<span font='$font 14'> + </span><span font='$font 18'>󰰕</span>"
""
)
yad "${cheat[@]}"
+186
View File
@@ -0,0 +1,186 @@
/* =============================================================================
*
* Waybar configuration
*
* Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
*
* =========================================================================== */
/* -----------------------------------------------------------------------------
* Keyframes
* -------------------------------------------------------------------------- */
@define-color highlight #685878 ;
@define-color base1 #19191e ;
@keyframes blink-warning {
70% {
color: white;
}
to {
color: white;
background-color: orange;
}
}
@keyframes blink-critical {
70% {
color: white;
}
to {
color: white;
background-color: red;
}
}
/* -----------------------------------------------------------------------------
* Base styles
* -------------------------------------------------------------------------- */
/* Reset all styles */
* {
border: none;
border-radius: 0;
min-height: 0;
margin: 1px;
padding: 0;
}
/* The whole bar */
#waybar {
background: transparent;
color: #e3e3ea;
background-color: @base1;
font-family: JetBrainsMono;
font-size: 13px;
}
/* Every modules */
#mode,
#network,
#custom-keyboard-layout,
#idle_inhibitor,
#cpu,
#memory,
#backlight,
#pulseaudio,
#battery,
#clock,
#tray {
padding:0.5rem 0.6rem;
margin: 1px 0px;
}
/* -----------------------------------------------------------------------------
* Module styles
* -------------------------------------------------------------------------- */
#custom-launcher {
margin-left:15px;
margin-right:10px;
}
#workspaces {
font-size:13px;
}
#workspaces button {
border-radius: 5px;
color: #eceff4;
padding: 1px 6px;
margin-right: 2px;
margin-left: 2px;
}
#workspaces button.focused {
border: 1px solid #d8dee9;
}
#workspaces button.urgent {
border-color: #c9545d;
color: #c9545d;
}
#mode {
background: @highlight;
border-bottom: 3px transparent;
color:white;
margin-left: 5px;
padding: 7px;
}
#window {
font-weight: bold;
}
#network.disconnected {
color: orange;
}
#cpu.warning {
color: orange;
}
#cpu.critical {
color: red;
}
#memory {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#memory.warning {
color: orange;
}
#memory.critical {
color: red;
animation-name: blink-critical;
animation-duration: 2s;
padding-left:5px;
padding-right:5px;
}
#backlight.icon {
}
#pulseaudio {
}
#pulseaudio.muted {
color: @highlight;
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#battery.warning {
color: orange;
}
#battery.critical {
color: red;
}
#battery.warning.discharging {
animation-name: blink-warning;
animation-duration: 3s;
}
#battery.critical.discharging {
animation-name: blink-critical;
animation-duration: 2s;
}
#custom-power {
margin-left:15px;
margin-right:15px;
font-size:15px;
}