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"; version = "2.3";
}) })
## Vertical Tabs by Michael ## Vertical Tabs by Michael
#(createChromiumExtension {
# id = "pddljdmihkpdfpkgmbhdomeeifpklgnm";
## "pddljdmihkpdfpkgmbhdomeeifpklgnm"
# sha256 = "19hb2gmkr4fb4mnsyvak0k1w33m3v9yjsad5lzcm8yamna18829y";
# version = "2.0.4";
#})
# Tabs in Sidebar
(createChromiumExtension { (createChromiumExtension {
id = "pddljdmihkpdfpkgmbhdomeeifpklgnm"; id = "akahnknmcbmgodngfjcflnaljdbhnlfo";
# "pddljdmihkpdfpkgmbhdomeeifpklgnm" sha256 = "0ydbfmhpkwrsf4zyhl4v5abjq7wm46j41r6scq5kbn536lih298q";
sha256 = "19hb2gmkr4fb4mnsyvak0k1w33m3v9yjsad5lzcm8yamna18829y"; version = "0.0.5";
version = "2.0.4";
}) })
]; ];
}; };

View File

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

View File

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

View File

@ -122,6 +122,7 @@
settings = { settings = {
"general.useragent.override" = ""; "general.useragent.override" = "";
"privacy.donottrackheader.enabled" = true; "privacy.donottrackheader.enabled" = true;
"mailnews.mark_message_read.auto" = false;
}; };
profiles.default = { profiles.default = {
isDefault = true; 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 = { programs.sway = {
enable = true; enable = true;
wrapperFeatures = { gtk = true; }; wrapperFeatures = { gtk = true; };