mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2025-09-24 15:31:31 +02:00
Compare commits
6 commits
beceee7c99
...
f28ec1ae8f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f28ec1ae8f |
||
![]() |
bdf243ed75 |
||
![]() |
b8ac1ed939 |
||
![]() |
f6d2dc5512 |
||
![]() |
582b4cbe3f |
||
![]() |
bc6d1a94a5 |
7 changed files with 31 additions and 19 deletions
|
@ -28,6 +28,14 @@
|
|||
|
||||
window-rules = [
|
||||
# TODO: privacy screen rules
|
||||
{
|
||||
matches = [
|
||||
{
|
||||
app-id = "steam";
|
||||
}
|
||||
];
|
||||
open-focused = false;
|
||||
}
|
||||
];
|
||||
|
||||
# fix electron apps not doing wayland
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
theme = "phinger-cursors-dark";
|
||||
size = 16;
|
||||
hide-when-typing = true;
|
||||
hide-after-inactive-ms = 2500;
|
||||
hide-after-inactive-ms = 10000;
|
||||
};
|
||||
|
||||
layout = {
|
||||
|
@ -50,6 +50,8 @@
|
|||
is-floating = true;
|
||||
}];
|
||||
shadow = {
|
||||
offset.y = 0;
|
||||
offset.x = 0;
|
||||
softness = 40;
|
||||
color = "#bab9e5af";
|
||||
inactive-color = "#fa9d99af";
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
:class "workspaces"
|
||||
(for workspace in workspaces
|
||||
(button
|
||||
:style "border-bottom: 4px solid ${workspace.color}"
|
||||
:class "${workspace.active ? "focused" : 0}"
|
||||
:style "border-bottom: 4px solid ${workspace.color}${workspace.active ? "; background-color: #3c3836" : ""}"
|
||||
:class "${workspace.focused ? "focused" : ""}"
|
||||
:onclick "swaymsg workspace ${workspace.name}"
|
||||
(label :text "${workspace.idx}")
|
||||
)
|
||||
|
|
|
@ -10,10 +10,6 @@ label {
|
|||
border: 0px;
|
||||
}
|
||||
|
||||
.workspaces button.urgent {
|
||||
background-color: #cc241d;
|
||||
}
|
||||
|
||||
.workspaces button.focused {
|
||||
background-color: #504935;
|
||||
}
|
||||
|
@ -37,4 +33,4 @@ label {
|
|||
|
||||
.traveldingsWindow {
|
||||
border-radius: 15px;
|
||||
}
|
||||
}
|
|
@ -36,4 +36,5 @@ alias gunim = cd ~/Docs/uni/mathe1-3;
|
|||
# typos
|
||||
alias juts = just;
|
||||
|
||||
alias miau = meow;
|
||||
alias shut = shutdown now;
|
||||
|
|
|
@ -75,8 +75,6 @@ def meow [ n = 1 ] {
|
|||
"m{rr,r,}{e,ee,{,e,aa}o}w{,w,ww}" | str expand | shuffle | first $n | str join ' '
|
||||
}
|
||||
|
||||
alias miau = meow;
|
||||
|
||||
def bars [display_name?: string] {
|
||||
print $display_name;
|
||||
pkill eww
|
||||
|
@ -92,7 +90,6 @@ def bars [display_name?: string] {
|
|||
|
||||
def "dp ccchh" [] {
|
||||
layaway "hdmi2 + edp/bottom,center"
|
||||
pkill eww
|
||||
bars "25BL56WY"
|
||||
}
|
||||
|
||||
|
@ -100,6 +97,5 @@ def "dp gay" [] {
|
|||
layaway "dp3 + edp1/bottom,center + dp5/right,top"
|
||||
# manual fix for lack of frequency in layaway, else monitor just turns off
|
||||
swaymsg "output DP-3 position 0 0 scale 1 transform normal resolution 1920x1080@60Hz"
|
||||
pkill eww
|
||||
bars "LEN G27c-10"
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ fn main() -> Result<(), std::io::Error> {
|
|||
.values()
|
||||
.map(|it| it.clone())
|
||||
.collect::<Vec<Workspace>>();
|
||||
|
||||
workspaces.sort_by(|a, b| a.idx.cmp(&b.idx));
|
||||
workspaces.sort_by(|a, b| {
|
||||
a.output
|
||||
|
@ -71,13 +72,21 @@ fn main() -> Result<(), std::io::Error> {
|
|||
|
||||
let results = workspaces
|
||||
.iter()
|
||||
.map(|ws| WsData {
|
||||
color: output_colors_lut[&ws.output.clone().expect("unreachable")]
|
||||
[if ws.is_active { 1 } else { 0 }],
|
||||
idx: ws.idx,
|
||||
focused: ws.is_focused,
|
||||
active: ws.is_active,
|
||||
})
|
||||
.map(
|
||||
|Workspace {
|
||||
idx,
|
||||
output,
|
||||
is_active,
|
||||
is_focused,
|
||||
..
|
||||
}| WsData {
|
||||
color: output_colors_lut[&output.clone().expect("unreachable")]
|
||||
[if *is_active { 1 } else { 0 }],
|
||||
idx: *idx,
|
||||
focused: *is_focused,
|
||||
active: *is_active,
|
||||
},
|
||||
)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
println!("{}", serde_json::to_string(&results).unwrap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue