Add gammastep, make waybar acceptable
This commit is contained in:
parent
c3f9cf2e5e
commit
0d22026d81
@ -81,18 +81,25 @@
|
|||||||
zotero
|
zotero
|
||||||
xfce.mousepad
|
xfce.mousepad
|
||||||
tor-browser
|
tor-browser
|
||||||
|
wl-clipboard
|
||||||
|
|
||||||
## My scripts
|
## My scripts
|
||||||
pkgs.frajul.deploy-to-pianopi
|
pkgs.frajul.deploy-to-pianopi
|
||||||
pkgs.frajul.edit-config
|
pkgs.frajul.edit-config
|
||||||
pkgs.frajul.open-messaging
|
pkgs.frajul.open-messaging
|
||||||
pkgs.frajul.pulseaudio-popup
|
|
||||||
]
|
]
|
||||||
++ lib.lists.concatMap (packages-list-file: import packages-list-file { inherit pkgs; }) [
|
++ lib.lists.concatMap (packages-list-file: import packages-list-file { inherit pkgs; }) [
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.gammastep = {
|
||||||
|
enable = true;
|
||||||
|
latitude = 47.92;
|
||||||
|
longitude = 10.12;
|
||||||
|
provider = "manual";
|
||||||
|
};
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
@ -40,8 +40,11 @@ in
|
|||||||
# hyprpicker # TODO
|
# hyprpicker # TODO
|
||||||
# hyprcursor # TODO
|
# hyprcursor # TODO
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
grimblast
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.copyq.enable = true;
|
||||||
|
|
||||||
programs.hyprlock.enable = true;
|
programs.hyprlock.enable = true;
|
||||||
programs.hyprlock.settings = {
|
programs.hyprlock.settings = {
|
||||||
general = {
|
general = {
|
||||||
@ -179,6 +182,8 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Environment Variables
|
# Environment Variables
|
||||||
|
###
|
||||||
|
env = "XDG_CURRENT_DESKTOP,Hyprland";
|
||||||
# env = "XCURSOR_SIZE,24";
|
# env = "XCURSOR_SIZE,24";
|
||||||
# env = "HYPRCURSOR_SIZE,24";
|
# env = "HYPRCURSOR_SIZE,24";
|
||||||
|
|
||||||
@ -202,6 +207,15 @@ in
|
|||||||
layout = "master";
|
layout = "master";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
# power saving
|
||||||
|
# blur = {
|
||||||
|
# enable = false;
|
||||||
|
# };
|
||||||
|
# power saving
|
||||||
|
drop_shadow = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Dwindle layout
|
# Dwindle layout
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
pseudotile = true; # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
@ -223,6 +237,7 @@ in
|
|||||||
|
|
||||||
# we do, in fact, want direct scanout
|
# we do, in fact, want direct scanout
|
||||||
# no_direct_scanout = false;
|
# no_direct_scanout = false;
|
||||||
|
vfr = true; # power saving
|
||||||
};
|
};
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
|
@ -1,189 +1,300 @@
|
|||||||
|
|
||||||
|
@keyframes blink-warning {
|
||||||
|
70% {
|
||||||
|
color: @light;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
color: @light;
|
||||||
|
background-color: @warning;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink-critical {
|
||||||
|
70% {
|
||||||
|
color: @light;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
color: @light;
|
||||||
|
background-color: @critical;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* Styles
|
||||||
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* COLORS */
|
||||||
|
|
||||||
|
/* Nord */
|
||||||
|
@define-color bg #2E3440;
|
||||||
|
/*@define-color bg #353C4A;*/
|
||||||
|
@define-color light #D8DEE9;
|
||||||
|
/*@define-color dark @nord_dark_font;*/
|
||||||
|
@define-color warning #ebcb8b;
|
||||||
|
@define-color critical #BF616A;
|
||||||
|
@define-color mode #434C5E;
|
||||||
|
/*@define-color workspaces @bg;*/
|
||||||
|
/*@define-color workspaces @nord_dark_font;*/
|
||||||
|
/*@define-color workspacesfocused #434C5E;*/
|
||||||
|
@define-color workspacesfocused #4C566A;
|
||||||
|
@define-color tray @workspacesfocused;
|
||||||
|
@define-color sound #EBCB8B;
|
||||||
|
@define-color network #5D7096;
|
||||||
|
@define-color memory #546484;
|
||||||
|
@define-color cpu #596A8D;
|
||||||
|
@define-color temp #4D5C78;
|
||||||
|
@define-color layout #5e81ac;
|
||||||
|
@define-color battery #88c0d0;
|
||||||
|
@define-color date #434C5E;
|
||||||
|
@define-color time #434C5E;
|
||||||
|
@define-color backlight #434C5E;
|
||||||
|
@define-color nord_bg #434C5E;
|
||||||
|
@define-color nord_bg_blue #546484;
|
||||||
|
@define-color nord_light #D8DEE9;
|
||||||
|
@define-color nord_light_font #D8DEE9;
|
||||||
|
@define-color nord_dark_font #434C5E;
|
||||||
|
|
||||||
|
/* Reset all styles */
|
||||||
* {
|
* {
|
||||||
/* `otf-font-awesome` is required to be installed for icons */
|
border: none;
|
||||||
font-family: "Noto Sans CJK KR Regular";
|
border-radius: 3px;
|
||||||
font-size: 16px;
|
min-height: 0;
|
||||||
min-height: 0;
|
margin: 0.1em 0.2em 0.1em 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
/* The whole bar */
|
||||||
background: transparent;
|
#waybar {
|
||||||
/* background-color: rgba(43, 48, 59, 0.5); */
|
background: @bg;
|
||||||
/* border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
|
color: @light;
|
||||||
color: #ffffff;
|
font-family: "Cantarell", "Font Awesome 5 Pro";
|
||||||
transition-property: background-color;
|
font-size: 13px;
|
||||||
transition-duration: .5s;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar.hidden {
|
/* Each module */
|
||||||
opacity: 0.2;
|
#battery,
|
||||||
|
#clock,
|
||||||
|
#cpu,
|
||||||
|
#custom-layout,
|
||||||
|
#memory,
|
||||||
|
#mode,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#temperature,
|
||||||
|
#custom-alsa,
|
||||||
|
#custom-pacman,
|
||||||
|
#custom-weather,
|
||||||
|
#custom-gpu,
|
||||||
|
#tray,
|
||||||
|
#backlight,
|
||||||
|
#language,
|
||||||
|
#custom-cpugovernor {
|
||||||
|
padding-left: 0.6em;
|
||||||
|
padding-right: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#waybar.empty #window {
|
/* Each module that should blink */
|
||||||
background-color: transparent;
|
#mode,
|
||||||
|
#memory,
|
||||||
|
#temperature,
|
||||||
|
#battery {
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Each critical module */
|
||||||
|
#memory.critical,
|
||||||
|
#cpu.critical,
|
||||||
|
#temperature.critical,
|
||||||
|
#battery.critical {
|
||||||
|
color: @critical;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Each critical that should blink */
|
||||||
|
#mode,
|
||||||
|
#memory.critical,
|
||||||
|
#temperature.critical,
|
||||||
|
#battery.critical.discharging {
|
||||||
|
animation-name: blink-critical;
|
||||||
|
animation-duration: 2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Each warning */
|
||||||
|
#network.disconnected,
|
||||||
|
#memory.warning,
|
||||||
|
#cpu.warning,
|
||||||
|
#temperature.warning,
|
||||||
|
#battery.warning {
|
||||||
|
background: @warning;
|
||||||
|
color: @nord_dark_font;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Each warning that should blink */
|
||||||
|
#battery.warning.discharging {
|
||||||
|
animation-name: blink-warning;
|
||||||
|
animation-duration: 3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* And now modules themselves in their respective order */
|
||||||
|
|
||||||
|
#mode { /* Shown current Sway mode (resize etc.) */
|
||||||
|
color: @light;
|
||||||
|
background: @mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Workspaces stuff */
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
}
|
/* color: #D8DEE9; */
|
||||||
|
/* margin-right: 10px; */
|
||||||
#window {
|
|
||||||
margin: 2;
|
|
||||||
padding-left: 8;
|
|
||||||
padding-right: 8;
|
|
||||||
background-color: rgba(0,0,0,0.6);
|
|
||||||
font-size:14px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
border-top: 2px solid #c9545d;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 4px;
|
font-weight: bold; /* Somewhy the bar-wide setting is ignored*/
|
||||||
/* background-color: rgba(0,0,0,0.6); */
|
padding: 0;
|
||||||
|
/* color: #999; */
|
||||||
|
opacity: 1.0;
|
||||||
|
background: @mode;
|
||||||
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button.visible {
|
||||||
}
|
background: @memory;
|
||||||
|
color: #D8DEE9;
|
||||||
#workspaces button.focused {
|
opacity: 1;
|
||||||
background-color: #ecf0f1;
|
padding: 0 0.4em;
|
||||||
color: #2d3436;
|
|
||||||
/* box-shadow: inset 0 -2px #c9545d; */
|
|
||||||
border-top: 2px solid #c9545d;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: #eb4d4b;
|
border-color: #c9545d;
|
||||||
|
color: #c9545d;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mode {
|
#window {
|
||||||
background-color: #64727D;
|
margin-right: 40px;
|
||||||
border-bottom: 3px solid #ffffff;
|
margin-left: 40px;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
#bluetooth {
|
||||||
|
background: @nord_bg_blue;
|
||||||
|
font-size: 1.2em;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
#custom-gpu {
|
||||||
|
background: @nord_bg;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
#custom-weather {
|
||||||
|
background: @mode;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
#custom-pacman {
|
||||||
|
background: @nord_light;
|
||||||
|
color: @nord_dark_font;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
#custom-scratchpad-indicator {
|
||||||
|
background: @nord_light;
|
||||||
|
color: @nord_dark_font;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
#idle_inhibitor {
|
||||||
|
background: @memory;
|
||||||
|
/*font-size: 1.6em;*/
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 0 0.6em;
|
||||||
|
}
|
||||||
|
#custom-alsa {
|
||||||
|
background: @sound;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#network {
|
||||||
#battery,
|
background: @nord_bg_blue;
|
||||||
#cpu,
|
|
||||||
#memory,
|
|
||||||
#disk,
|
|
||||||
#temperature,
|
|
||||||
#backlight,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#wireplumber,
|
|
||||||
#custom-media,
|
|
||||||
#tray,
|
|
||||||
#mode,
|
|
||||||
#idle_inhibitor,
|
|
||||||
#scratchpad,
|
|
||||||
#mpd {
|
|
||||||
margin: 2px;
|
|
||||||
padding-left: 4px;
|
|
||||||
padding-right: 4px;
|
|
||||||
background-color: rgba(0,0,0,0.6);
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If workspaces is the leftmost module, omit left margin */
|
#memory {
|
||||||
.modules-left > widget:first-child > #workspaces {
|
background: @memory;
|
||||||
margin-left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If workspaces is the rightmost module, omit right margin */
|
#disk {
|
||||||
.modules-right > widget:last-child > #workspaces {
|
background: @memory;
|
||||||
margin-right: 0;
|
}
|
||||||
|
|
||||||
|
#cpu {
|
||||||
|
background: @memory;
|
||||||
|
color: #D8DEE9;
|
||||||
|
}
|
||||||
|
#cpu.critical {
|
||||||
|
color: @nord_dark_font;
|
||||||
|
}
|
||||||
|
#language {
|
||||||
|
background: @nord_bg_blue;
|
||||||
|
color: #D8DEE9;
|
||||||
|
padding: 0 0.4em;
|
||||||
|
}
|
||||||
|
#custom-cpugovernor {
|
||||||
|
background-color: @nord_light;
|
||||||
|
color: @nord_dark_font;
|
||||||
|
}
|
||||||
|
#custom-cpugovernor.perf {
|
||||||
|
|
||||||
|
}
|
||||||
|
#temperature {
|
||||||
|
background-color: @nord_bg;
|
||||||
|
color: #D8DEE9;
|
||||||
|
}
|
||||||
|
#temperature.critical {
|
||||||
|
background: @critical;
|
||||||
|
}
|
||||||
|
#custom-layout {
|
||||||
|
background: @layout;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
background: @battery;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
background: @backlight;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
font-size:14px;
|
background: @nord_bg_blue;
|
||||||
font-weight: bold;
|
color: #D8DEE9;
|
||||||
|
}
|
||||||
|
#clock.date {
|
||||||
|
background: @date;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery icon {
|
#clock.time {
|
||||||
color: red;
|
background: @mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging, #battery.plugged {
|
#pulseaudio { /* Unsused but kept for those who needs it */
|
||||||
color: #ffffff;
|
background: @nord_bg_blue;
|
||||||
/* background-color: #26A65B; */
|
color: #D8DEE9;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
#pulseaudio.muted {
|
||||||
to {
|
background: #BF616A;
|
||||||
background-color: #ffffff;
|
color: #BF616A;
|
||||||
color: #000000;
|
/* No styles */
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
#pulseaudio.source-muted {
|
||||||
#battery.warning:not(.charging) {
|
background: #D08770;
|
||||||
background-color: #f53c3c;
|
color: #D8DEE9;
|
||||||
color: #ffffff;
|
/* No styles */
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
}
|
||||||
|
#tray {
|
||||||
#battery.critical:not(.charging) {
|
background: #434C5E;
|
||||||
background-color: #f53c3c;
|
|
||||||
color: #ffffff;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
label:focus {
|
|
||||||
background-color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature.critical {
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#idle_inhibitor.activated {
|
|
||||||
background-color: #ecf0f1;
|
|
||||||
color: #2d3436;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .passive {
|
|
||||||
-gtk-icon-effect: dim;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .needs-attention {
|
|
||||||
-gtk-icon-effect: highlight;
|
|
||||||
background-color: #eb4d4b;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
window#waybar.solo {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar.termite {
|
|
||||||
background-color: #3F3F3F;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar.chromium {
|
|
||||||
background-color: #000000;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
@ -1,16 +1,22 @@
|
|||||||
{
|
{
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"height": 35,
|
"height": 10,
|
||||||
|
|
||||||
"modules-left": ["hyprland/workspaces"],
|
"modules-left": ["hyprland/workspaces"],
|
||||||
"modules-right": ["idle_inhibitor", "cpu", "memory", "pulseaudio", "battery", "clock", "tray"],
|
"modules-right": ["idle_inhibitor", "disk", "cpu", "memory", "pulseaudio", "battery", "clock", "tray"],
|
||||||
"idle_inhibitor": {
|
"idle_inhibitor": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"activated": "",
|
"activated": " ",
|
||||||
"deactivated": ""
|
"deactivated": " "
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"disk": {
|
||||||
|
"interval": 30,
|
||||||
|
"format": "free: {percentage_free}% ({free})",
|
||||||
|
"path": "/",
|
||||||
|
"unit": "GB"
|
||||||
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
@ -34,7 +40,7 @@
|
|||||||
"format": "{icon} {capacity}% ({time})",
|
"format": "{icon} {capacity}% ({time})",
|
||||||
"format-charging": " {capacity}% ({time})",
|
"format-charging": " {capacity}% ({time})",
|
||||||
"format-plugged": " {capacity}% ({time})",
|
"format-plugged": " {capacity}% ({time})",
|
||||||
"format-full": "{icon}",
|
"format-full": "{icon} ",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
|
@ -18,6 +18,7 @@ pkgs.writeShellApplication {
|
|||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
pavucontrol
|
pavucontrol
|
||||||
jgmenu
|
jgmenu
|
||||||
|
pulseaudio
|
||||||
];
|
];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
|
@ -243,7 +243,8 @@
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
services.redshift.enable = true;
|
# x11 only, for wayland use gammastep (home-manager)
|
||||||
|
# services.redshift.enable = true;
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
||||||
@ -267,6 +268,7 @@
|
|||||||
mc
|
mc
|
||||||
xorg.xhost
|
xorg.xhost
|
||||||
kdePackages.qtwayland
|
kdePackages.qtwayland
|
||||||
|
frajul.pulseaudio-popup
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user