improve sway

This commit is contained in:
genofire 2023-07-07 23:22:02 +02:00
parent 7afbd98bd0
commit 6b6dc1eb2a
5 changed files with 87 additions and 80 deletions

View File

@ -65,11 +65,17 @@ in
version = "2.3";
})
## Vertical Tabs by Michael
#(createChromiumExtension {
# id = "pddljdmihkpdfpkgmbhdomeeifpklgnm";
## "pddljdmihkpdfpkgmbhdomeeifpklgnm"
# sha256 = "19hb2gmkr4fb4mnsyvak0k1w33m3v9yjsad5lzcm8yamna18829y";
# version = "2.0.4";
#})
# Tabs in Sidebar
(createChromiumExtension {
id = "pddljdmihkpdfpkgmbhdomeeifpklgnm";
# "pddljdmihkpdfpkgmbhdomeeifpklgnm"
sha256 = "19hb2gmkr4fb4mnsyvak0k1w33m3v9yjsad5lzcm8yamna18829y";
version = "2.0.4";
id = "akahnknmcbmgodngfjcflnaljdbhnlfo";
sha256 = "0ydbfmhpkwrsf4zyhl4v5abjq7wm46j41r6scq5kbn536lih298q";
version = "0.0.5";
})
];
};

View File

@ -117,7 +117,7 @@
enable = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
syntaxHighlighting.enable = true;
# initExtra = ''
# source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
# prompt pure

View File

@ -75,6 +75,8 @@ in
# wdisplays
];
services.poweralertd.enable = true;
services.kanshi = {
enable = true;
profiles = {
@ -114,6 +116,7 @@ in
white = "#ffffff";
cyan = "#00afd7";
transcyan = "#00afd762";
aqua = "#00d787";
violet = "#800080";
wine = "#72003e";
@ -163,27 +166,27 @@ in
# # does it work?
# enable = "";
#};
#"Japan Display Inc. 0x364C Unknown" = {
# "Japan Display Inc. 0x364C Unknown" = {
# position = "0 0";
# scale = "1.25";
# enable = "";
#};
#"LG Electronics LG HDR 4K 0x0000655D" = {
# };
# "LG Electronics LG HDR 4K 0x0000655D" = {
# position = "2400 0";
# enable = "";
# scale = "1.0";
# # disable = true;
# # resolution = "3840x2160@30Hz";
# resolution = "3840x2160";
#};
#"Goldstar Company Ltd LG HDR 4K 0x0000655D" = {
# };
# "Goldstar Company Ltd LG HDR 4K 0x0000655D" = {
# position = "2400 0";
# enable = "";
# scale = "1.0";
# # disable = true;
# # resolution = "3840x2160@30Hz";
# resolution = "3840x2160";
#};
# };
#"HEADLESS-1" = {
# resolution = "2560x1440";
#};
@ -202,9 +205,9 @@ in
terminal = "alacritty";
fonts = { names = ["monospace"]; style = "monospace"; size = 7.0;};
colors = {
focused = { background = "${cyan}"; border = "${cyan}"; childBorder = "${cyan}"; indicator = "${white}"; text = "${elegant}"; };
focusedInactive = { background = "${gray}"; border = "${gray}"; childBorder = "${gray}"; indicator = "${magenta}"; text = "${cyan}"; };
unfocused = { background = "${elegant}"; border = "${elegant}"; childBorder = "${elegant}"; indicator = "${white}"; text = "${orange}"; };
focused = { background = "${transcyan}"; border = "${transcyan}"; childBorder = "${transcyan}"; indicator = "${white}"; text = "${elegant}"; };
focusedInactive = { background = "${transparent}"; border = "${transparent}"; childBorder = "${transparent}"; indicator = "${magenta}"; text = "${cyan}"; };
unfocused = { background = "${transparent}"; border = "${transparent}"; childBorder = "${transparent}"; indicator = "${white}"; text = "${orange}"; };
urgent = { background = "${magenta}"; border = "${magenta}"; childBorder = "${magenta}"; indicator = "${magenta}"; text = "${silver}"; };
placeholder = { background = "${magenta}"; border = "${magenta}"; childBorder = "${magenta}"; indicator = "${white}"; text = "${silver}"; };
background = "${transparent}";
@ -216,7 +219,7 @@ in
colors = {
statusline = "${white}";
# focusedStatusline = "${white}";
background = "${black}";
background = "${transparent}";
# focusedBackground = "${transparent}";
activeWorkspace = { background = "${gray}"; border = "${gray}"; text = "${white}"; };
focusedWorkspace = { background = "${cyan}"; border = "${gray}"; text = "${white}"; };
@ -225,6 +228,18 @@ in
bindingMode = { background = "${orange}"; border = "${orange}"; text = "${white}"; };
};
}];
window = {
border = 1;
titlebar = false;
# hideEdgeBorders = "smart_no_gaps";
hideEdgeBorders = "smart";
commands = [
{ command = "move to scratchpad"; criteria = { title = "Firefox.* Sharing Indicator"; }; }
{ command = "sticky enable"; criteria = { title = "Picture-in-Picture"; }; }
{ command = "floating enable"; criteria = { title = "Picture-in-Picture"; }; }
{ command = "floating enable"; criteria = { title = "Extension: \(Tree Style Tab\) - .*"; }; }
];
};
gaps = {
inner = 2;
outer = 0;
@ -364,17 +379,6 @@ in
floating = {
modifier = modifier;
};
window = {
border = 1;
# hideEdgeBorders = "smart_no_gaps";
hideEdgeBorders = "smart";
commands = [
{ command = "move to scratchpad"; criteria = { title = "Firefox.* Sharing Indicator"; }; }
{ command = "sticky enable"; criteria = { title = "Picture-in-Picture"; }; }
{ command = "floating enable"; criteria = { title = "Picture-in-Picture"; }; }
{ command = "floating enable"; criteria = { title = "Extension: \(Tree Style Tab\) - .*"; }; }
];
};
startup = [
# { command = "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK"; }
# { command = "hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK" ; }
@ -444,7 +448,9 @@ exec_always "cat /proc/acpi/button/lid/*/state | grep -q open && swaymsg output
sort = "+time";
backgroundColor = "#000000bf";
borderColor = "#00afd7";
borderColor = "#000000bf";
#borderColor = "#00afd7";
borderRadius = 4;
extraConfig = ''
[app-name=""]
width=380
@ -459,31 +465,19 @@ format=<b>%s %h</b>\n%b
format=(%g) <b>[%a] %s %h</b>\n%b
[actionable]
border-radius=2
border-radius=4
[urgency=low]
#background-color=#00d787cf
border-color=#00d787
progress-color=over #00d787c0
border-color=#00d787a0
progress-color=over #00d78760
[urgency=normal]
#background-color=#00afd7cf
#background-color=#ff8700df
#border-color=#00afd7
progress-color=over #00afd7c0
#progress-color=over #ff8700df
progress-color=over #1c1c1ca0
#progress-color=over #00afd7a0
[urgency=high]
border-color=#af005f
#background-color=#af005f
#text-color=#e4e4e4
#progress-color=over #ff8700df
progress-color=over #af005fc0
[app-icon="mail-message-new"]
border-color=#00afd7
background-color=#00afd7c0
border-size=1
border-color=#af005fa0
progress-color=over #af005f60
[app-icon="kdeconnect"]
format=<b>%s %h</b>\n%b
@ -491,17 +485,6 @@ border-color=#353535
background-color=#1b1d1e
border-size=1
anchor=top-left
[summary="Log sum7"]
border-color=#ff8700
background-color=#ff870090
border-size=1
[summary="[Sum7] Alerts"]
format=<b>%s %h</b>\n%b
border-color=#af005f
background-color=#ff870090
border-size=1
'';
};
@ -518,7 +501,7 @@ border-size=1
window.opacity = 0.95;
font.size = 8;
colors.primary = {
background = "0x0a0a0a";
background = "0x000000";
foreground = "0xffffff";
};
};
@ -528,24 +511,25 @@ border-size=1
xdg.configFile."i3blocks/bin/battery".source = ./sway-i3block/battery;
xdg.configFile."i3blocks/config".text = ''
align=center
separator=false
# separator_block_width=15
separator=true
separator_block_width=15
markup=pango
# color=#f8f8f2
color=#e4e4e4
# background=#00afd7
[root]
label=💽
label= 💽
command=df -h / | awk 'FNR==2 { gsub(/[A-Za-z]/, ""); printf " %i<span color=\"#589df6\">G</span>\n", $4 }'
interval=3
[memory]
label=💾
label= 💾
command=free --giga | awk 'FNR==2{ printf " %i<span color=\"#589df6\">G</span>\n", $7 }'
interval=2
[wifi]
label=
label=
command=~/.config/i3blocks/bin/wifi
interval=5
color=#589df6

View File

@ -122,6 +122,7 @@
settings = {
"general.useragent.override" = "";
"privacy.donottrackheader.enabled" = true;
"mailnews.mark_message_read.auto" = false;
};
profiles.default = {
isDefault = true;

View File

@ -66,6 +66,22 @@
};
};
services.greetd = {
enable = true;
settings = {
default_session = {
# command = "${pkgs.greetd.greetd}/bin/agreety --cmd sway";
command = "${pkgs.greetd.tuigreet}/bin/tuigreet -t -r --remember-user-session --asterisks --cmd sway";
# missing compositor
# command = "${pkgs.greetd.wlgreet}/bin/wlgreet --command sway";
};
};
# package = pkgs.greetd.tuigreet;
# package = pkgs.greetd.wlgreet;
# package = pkgs.greetd.gtkgreet;
# package = pkgs.greetd.regreet;
};
programs.sway = {
enable = true;
wrapperFeatures = { gtk = true; };