Config moar

This commit is contained in:
Maximilian Friedersdorff 2025-04-23 11:49:57 +01:00
parent 308254ad72
commit 4c64ec4511
6 changed files with 760 additions and 174 deletions

View file

@ -0,0 +1,20 @@
height=250
sort=+time
font=monospace 10
default-timeout=20000
max-visible=3
group-by=app-name
on-button-middle=dismiss-group
border-radius=10
border-size=5
padding=15
margin=4,4,20
layer=overlay
[urgency=critical]
height=500
width=600
font=monospace 14
background-color=#CC7722
border-size=4
border-color=#FF2200

View file

@ -1,3 +1,28 @@
# Sway fx
blur enable
blur_xray disable
blur_passes 4
blur_radius 4
shadows enable
shadows_on_csd enable
shadow_blur_radius 20
smart_corner_radius enable
corner_radius 10
layer_effects "waybar" blur enable; shadows disable; corner_radius 15
layer_effects "gtk-layer-shell" blur enable; shadows enable; corner_radius 13
layer_effects "wofi" blur enable; shadows enable; corner_radius 13
titlebar_separator disable
default_border pixel 5
font pango:JetBrainsMono Regular 10
smart_borders on
smart_gaps off
# Slight gaps around windows
gaps inner 20
# Colors
set $black #000000
@ -27,8 +52,6 @@ set $white_super #ffffff
client.focused $black $yellow_super $black $black $black
client.focused_inactive $black $black_super $white $black $black
# Slight gaps around windows
gaps inner 6
# Read `man 5 sway` for a complete reference.
@ -46,7 +69,7 @@ set $term foot
# Your preferred application launcher
# 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.
set $menu rofi -show drun | xargs swaymsg exec --
set $menu wofi --show drun --gtk-dark | xargs swaymsg exec --
include /etc/sway/config-vars.d/*
@ -110,45 +133,19 @@ input type:touchpad {
natural_scroll enabled
}
input 1241:36:HOLDCHIP_USB_Keyboard {
xkb_layout us
xkb_variant colemak
xkb_options ctrl:nocaps
}
input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
xkb_layout gb
xkb_variant colemak
xkb_options ctrl:nocaps
}
#input type:keyboard {
# xkb_layout gb
# xkb_variant colemak
# xkb_options ctrl:nocaps
#}
input 65261:4871:TMK/Cub_Ergodox {
xkb_layout gb
xkb_options compose:prsc
}
input 9494:21:CM_Storm_Quickfire_Pro_Ultimate_6_key {
xkb_layout gb
xkb_variant colemak
xkb_options ctrl:nocaps
}
input 1:1:AT_Translated_Set_2_keyboard {
xkb_layout gb
xkb_variant colemak
xkb_options ctrl:nocaps
}
input 9610:4102:Gaming_KB__Gaming_KB {
xkb_layout gb
xkb_variant colemak
xkb_options ctrl:nocaps
}
input 1133:49948:Logitech_USB_Keyboard {
xkb_layout gb
input 1241:36:HOLDCHIP_USB_Keyboard {
xkb_layout us
xkb_variant colemak
xkb_options ctrl:nocaps
}
@ -169,6 +166,7 @@ input 1133:49948:Logitech_USB_Keyboard {
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
@ -326,149 +324,41 @@ bindsym $mod+Alt+l exec 'swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg'
include /etc/sway/config.d/*
# host specific section
{{- if eq .chezmoi.hostname "rhenium" }}
bar {
id bar_internal
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-main
position top
output "eDP-1"
font pango:JetBrainsMono NFM 10
colors {
background $black_super
focused_background $black
focused_workspace $black_super $yellow_super $black
active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white
separator $white
}
id waybar
swaybar_command waybar
}
output eDP-1 {
scale 2
position 0 0
background ~/Pictures/background_1800.png center
}
{{- end }}
{{- if eq .chezmoi.hostname "baryte" }}
bar {
id bar_right
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net
position top
output "Acer Technologies VG270U P 0x05217924"
font pango:JetBrainsMono NFM 10
colors {
background $black_super
focused_background $black
focused_workspace $black_super $yellow_super $black
active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white
separator $white
}
}
bar {
id bar_right_alt
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net
position top
output HDMI-A-1
font pango:JetBrainsMono NFM 10
colors {
background $black_super
focused_background $black
focused_workspace $black_super $yellow_super $black
active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white
separator $white
}
}
bar {
id bar_right_alt_alt
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net
position top
output "LG Electronics LG FULL HD"
font pango:JetBrainsMono NFM 10
colors {
background $black_super
focused_background $black
focused_workspace $black_super $yellow_super $black
active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white
separator $white
}
}
bar {
id bar_internal
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-main
position top
output "eDP-1"
font pango:JetBrainsMono NFM 10
colors {
background $black_super
focused_background $black
focused_workspace $black_super $yellow_super $black
active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white
separator $white
}
}
output eDP-1 {
background ~/Pictures/Backgrounds/DSC02113.jpg fill
position 230 1080
scale 2
}
output "Acer Technologies VG270U P 0x05217924" {
background ~/Pictures/Backgrounds/DSC02111.jpg fill
position 1670 810
scale 1
}
output "LG Electronics LG FULL HD" {
background ~/Pictures/Backgrounds/DSC02111.jpg fill
position 0 0
scale 1
}
workspace 1 output eDP-1
workspace 3 output eDP-1
workspace 2 output "Acer Technologies VG270U P 0x05217924"
workspace 4 output "Acer Technologies VG270U P 0x05217924"
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec mako&
exec zoom&
for_window [class="zoom"] floating enable
for_window [class="zoom" title="Zoom Workplace - Licensed account"] floating disable
for_window [app_id="firefox" title="Extension:*"] floating enable
{{- end }}
{{- if eq .chezmoi.hostname "dubnium" }}
bar {
id bar_main
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-main
position top
output "Acer Technologies VG270U P 0x05217924"
font pango:JetBrainsMono NFM 10
colors {
background $black_super
focused_background $black
focused_workspace $black_super $yellow_super $black
active_workspace $black_super $blue_super $black
inactive_workspace $black_super $black_super $white_super
urgent_workspace $black $red_super $white
separator $white
}
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec swaync&
{{- if eq .chezmoi.hostname "baryte" }}
output "Acer Technologies VG270U P 0x05217924" {
background ~/Pictures/Backgrounds/DSC02111.jpg fill
position 0 0
scale 1
}
output "Acer Technologies VG270U P 0x9392CFAC" {
background ~/Pictures/Backgrounds/DSC02111.jpg fill
position 2560 0
scale 1
}
workspace 1 output "Acer Technologies VG270U P 0x05217924"
workspace 2 output "Acer Technologies VG270U P 0x9392CFAC"
exec zoom&
{{- end }}
{{- if eq .chezmoi.hostname "dubnium" }}
output "Acer Technologies VG270U P 0x05217924" {
background ~/Pictures/background.jpg fill
@ -476,8 +366,4 @@ output "Acer Technologies VG270U P 0x05217924" {
scale 1
}
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec mako&
for_window [app_id="firefox" title="Extension:*"] floating enable
{{- end }}

View file

@ -0,0 +1,247 @@
// -*- mode: jsonc -*-
{
"layer": "bottom", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"margin-top": 6,
"margin-left": 6,
"margin-right": 6,
"spacing": 6, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"sway/workspaces",
"sway/mode",
"sway/scratchpad",
"custom/media"
],
"modules-center": [
"sway/window"
],
"modules-right": [
"mpd",
"privacy",
"idle_inhibitor",
"pulseaudio",
"network",
"power-profiles-daemon",
"cpu",
"memory",
"temperature",
"backlight",
"keyboard-state",
"sway/language",
"battery",
"battery#bat2",
"clock",
"tray",
"custom/power"
],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"warp-on-scroll": false,
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": [
"",
""
],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 5,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10,
"icons": {
"blueman": "bluetooth"
}
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": [
"",
"",
""
]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-full": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": [
"",
"",
"",
"",
""
]
},
"battery#bat2": {
"bat": "BAT2"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": [
"",
"",
""
]
},
"on-click": "pavucontrol",
"on-click-middle": "blueman-manager"
},
"custom/media": {
"format": "{icon} {text}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format": "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}

View file

@ -0,0 +1,344 @@
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: JetBrainsMono, FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
border-radius: 0;
}
window#waybar {
background-color: rgba(43, 48, 59, 0.3);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
border-radius: 15;
}
#window {
border-radius: 15;
padding-right: 15px;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
}
/* you can set a style on hover for any module like this */
#pulseaudio:hover {
background-color: #a37800;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#mpd {
padding: 0 10px;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 4px;
}
.modules-right *, .modules-left * {
border-radius: 5px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
.modules-right, .modules-left {
border-radius: 15px;
padding: 7px;
}
#clock {
background-color: #64727D;
}
#battery {
background-color: #ffffff;
color: #000000;
}
#battery.charging, #battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
#power-profiles-daemon {
padding-right: 15px;
}
#power-profiles-daemon.performance {
background-color: #f53c3c;
color: #ffffff;
}
#power-profiles-daemon.balanced {
background-color: #2980b9;
color: #ffffff;
}
#power-profiles-daemon.power-saver {
background-color: #2ecc71;
color: #000000;
}
label:focus {
background-color: #000000;
}
#cpu {
background-color: #2ecc71;
color: #000000;
}
#memory {
background-color: #9b59b6;
}
#disk {
background-color: #964B00;
}
#backlight {
background-color: #90b1b1;
}
#network {
background-color: #2980b9;
}
#network.disconnected {
background-color: #f53c3c;
}
#pulseaudio {
background-color: #f1c40f;
color: #000000;
}
#pulseaudio.muted {
background-color: #90b1b1;
color: #2a5c45;
}
#wireplumber {
background-color: #fff0f5;
color: #000000;
}
#wireplumber.muted {
background-color: #f53c3c;
}
#custom-media {
background-color: #66cc99;
color: #2a5c45;
min-width: 100px;
}
#custom-media.custom-spotify {
background-color: #66cc99;
}
#custom-media.custom-vlc {
background-color: #ffa000;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
background-color: #eb4d4b;
}
#tray {
background-color: #2980b9;
padding: 0 10px;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
#mpd {
background-color: #66cc99;
color: #2a5c45;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #51a37a;
}
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
background-color: transparent;
}
#privacy {
padding: 0;
}
#privacy-item {
padding: 0 5px;
color: white;
}
#privacy-item.screenshare {
background-color: #cf5700;
}
#privacy-item.audio-in {
background-color: #1ca000;
}
#privacy-item.audio-out {
background-color: #0069d4;
}

View file

@ -0,0 +1,10 @@
show=drun
width=900
height=500
always_parse_args=true
show_all=true
print_command=true
layer=overlay
insensitive=true
columns=2
prompt=search app

View file

@ -0,0 +1,79 @@
@define-color base10 #2E3440;
@define-color base00 #3B4252;
@define-color base02 #434C5E;
@define-color base03 #4C566A;
@define-color base04 #D8DEE9;
@define-color base05 #E5E9F0;
@define-color base06 #ECEFF4;
@define-color base07 #8FBCBB;
@define-color base08 #88C0D0;
@define-color base09 #81A1C1;
@define-color base0A #5E81AC;
@define-color base0B #BF616A;
@define-color base0C #D08770;
@define-color base0D #EBCB8B;
@define-color base0E #A3BE8C;
@define-color base0F #B48EAD;
@define-color base0G #2D353B;
@define-color base0H #1E2327;
@define-color base0I #8B8576;
@define-color bg-light #334044;
#entry {
border-radius: 5px;
padding: 5px;
margin: 0px 4px 0px 4px;
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
#entry:selected {
background-color: alpha(@base0H, 0.6);
padding: 5px;
color: @base0H;
}
#text:selected {
color: white;
}
#window {
animation-name: fadeIn;
animation-duration: 0.2s;
font-family: JetBrainsMono;
font-size: 14px;
background-color: alpha(@base0H, 0.2);
}
#input {
border: none;
border-radius: 10px;
margin: 5px 5px 5px 5px;
padding: 8px;
background-color: alpha(@base0H, 0.6);
}
#inner-box {
border-radius: 10px;
margin: 5px;
padding-top: 5px;
}
#outer-box {
border-radius: 10px;
padding: 5px;
}
#scroll {
}
#text {
color: @base04;
}
#img {
}