mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-21 22:23:09 +01:00
Added back gtk, qt, and cursor options in home.nix and formatted everything
This commit is contained in:
parent
dbd394567f
commit
df588c8e39
@ -1,8 +1,14 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
palette = config.colorScheme.palette;
|
palette = config.colorScheme.palette;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
programs.wlogout = {
|
programs.wlogout = {
|
||||||
enable = true;
|
enable = true;
|
||||||
layout = [
|
layout = [
|
||||||
@ -41,65 +47,65 @@ in {
|
|||||||
"action" = "sleep 1; systemctl hibernate";
|
"action" = "sleep 1; systemctl hibernate";
|
||||||
"text" = "Hibernate";
|
"text" = "Hibernate";
|
||||||
"keybind" = "h";
|
"keybind" = "h";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
style = ''
|
style = ''
|
||||||
* {
|
* {
|
||||||
font-family: "JetBrainsMono NF", FontAwesome, sans-serif;
|
font-family: "JetBrainsMono NF", FontAwesome, sans-serif;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
transition: 20ms;
|
transition: 20ms;
|
||||||
}
|
}
|
||||||
window {
|
window {
|
||||||
background-color: rgba(12, 12, 12, 0.1);
|
background-color: rgba(12, 12, 12, 0.1);
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
color: #${palette.base05};
|
color: #${palette.base05};
|
||||||
font-size:20px;
|
font-size:20px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: 25%;
|
background-size: 25%;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
background-color: rgba(12, 12, 12, 0.3);
|
background-color: rgba(12, 12, 12, 0.3);
|
||||||
border: 3px solid #${palette.base05};
|
border: 3px solid #${palette.base05};
|
||||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
}
|
}
|
||||||
button:focus,
|
button:focus,
|
||||||
button:active,
|
button:active,
|
||||||
button:hover {
|
button:hover {
|
||||||
color: #${palette.base0E};
|
color: #${palette.base0E};
|
||||||
background-color: rgba(12, 12, 12, 0.5);
|
background-color: rgba(12, 12, 12, 0.5);
|
||||||
border: 3px solid #${palette.base0E};
|
border: 3px solid #${palette.base0E};
|
||||||
}
|
}
|
||||||
#logout {
|
#logout {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background-image: image(url("icons/logout.png"));
|
background-image: image(url("icons/logout.png"));
|
||||||
}
|
}
|
||||||
#suspend {
|
#suspend {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background-image: image(url("icons/suspend.png"));
|
background-image: image(url("icons/suspend.png"));
|
||||||
}
|
}
|
||||||
#shutdown {
|
#shutdown {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background-image: image(url("icons/shutdown.png"));
|
background-image: image(url("icons/shutdown.png"));
|
||||||
}
|
}
|
||||||
#reboot {
|
#reboot {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background-image: image(url("icons/reboot.png"));
|
background-image: image(url("icons/reboot.png"));
|
||||||
}
|
}
|
||||||
#lock {
|
#lock {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background-image: image(url("icons/lock.png"));
|
background-image: image(url("icons/lock.png"));
|
||||||
}
|
}
|
||||||
#hibernate {
|
#hibernate {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
background-image: image(url("icons/hibernate.png"));
|
background-image: image(url("icons/hibernate.png"));
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -107,76 +107,79 @@ in
|
|||||||
mutableUsers = true;
|
mutableUsers = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = let
|
environment.systemPackages =
|
||||||
sugar = pkgs.callPackage ../../pkgs/sddm-sugar-dark.nix {};
|
let
|
||||||
tokyo-night = pkgs.libsForQt5.callPackage ../../pkgs/sddm-tokyo-night.nix {};
|
sugar = pkgs.callPackage ../../pkgs/sddm-sugar-dark.nix { };
|
||||||
in with pkgs; [
|
tokyo-night = pkgs.libsForQt5.callPackage ../../pkgs/sddm-tokyo-night.nix { };
|
||||||
vim
|
in
|
||||||
wget
|
with pkgs;
|
||||||
git
|
[
|
||||||
cmatrix
|
vim
|
||||||
lolcat
|
wget
|
||||||
neofetch
|
git
|
||||||
htop
|
cmatrix
|
||||||
btop
|
lolcat
|
||||||
libvirt
|
neofetch
|
||||||
lxqt.lxqt-policykit
|
htop
|
||||||
lm_sensors
|
btop
|
||||||
unzip
|
libvirt
|
||||||
unrar
|
lxqt.lxqt-policykit
|
||||||
libnotify
|
lm_sensors
|
||||||
eza
|
unzip
|
||||||
v4l-utils
|
unrar
|
||||||
ydotool
|
libnotify
|
||||||
wl-clipboard
|
eza
|
||||||
socat
|
v4l-utils
|
||||||
cowsay
|
ydotool
|
||||||
lsd
|
wl-clipboard
|
||||||
lshw
|
socat
|
||||||
pkg-config
|
cowsay
|
||||||
meson
|
lsd
|
||||||
gnumake
|
lshw
|
||||||
ninja
|
pkg-config
|
||||||
symbola
|
meson
|
||||||
noto-fonts-color-emoji
|
gnumake
|
||||||
material-icons
|
ninja
|
||||||
brightnessctl
|
symbola
|
||||||
virt-viewer
|
noto-fonts-color-emoji
|
||||||
swappy
|
material-icons
|
||||||
ripgrep
|
brightnessctl
|
||||||
appimage-run
|
virt-viewer
|
||||||
networkmanagerapplet
|
swappy
|
||||||
yad
|
ripgrep
|
||||||
playerctl
|
appimage-run
|
||||||
nh
|
networkmanagerapplet
|
||||||
nixfmt-rfc-style
|
yad
|
||||||
discord
|
playerctl
|
||||||
libvirt
|
nh
|
||||||
swww
|
nixfmt-rfc-style
|
||||||
grim
|
discord
|
||||||
slurp
|
libvirt
|
||||||
gnome.file-roller
|
swww
|
||||||
swaynotificationcenter
|
grim
|
||||||
rofi-wayland
|
slurp
|
||||||
imv
|
gnome.file-roller
|
||||||
transmission-gtk
|
swaynotificationcenter
|
||||||
distrobox
|
rofi-wayland
|
||||||
mpv
|
imv
|
||||||
gimp
|
transmission-gtk
|
||||||
obs-studio
|
distrobox
|
||||||
rustup
|
mpv
|
||||||
audacity
|
gimp
|
||||||
pavucontrol
|
obs-studio
|
||||||
tree
|
rustup
|
||||||
protonup-qt
|
audacity
|
||||||
font-awesome
|
pavucontrol
|
||||||
spotify
|
tree
|
||||||
neovide
|
protonup-qt
|
||||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
font-awesome
|
||||||
sugar.sddm-sugar-dark # Name: sugar-dark
|
spotify
|
||||||
tokyo-night # Name: tokyo-night-sddm
|
neovide
|
||||||
pkgs.libsForQt5.qt5.qtgraphicaleffects
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||||
];
|
sugar.sddm-sugar-dark # Name: sugar-dark
|
||||||
|
tokyo-night # Name: tokyo-night-sddm
|
||||||
|
pkgs.libsForQt5.qt5.qtgraphicaleffects
|
||||||
|
];
|
||||||
|
|
||||||
environment.variables = {
|
environment.variables = {
|
||||||
ZANEYOS_VERSION = "2.0";
|
ZANEYOS_VERSION = "2.0";
|
||||||
|
@ -50,6 +50,27 @@ in
|
|||||||
};
|
};
|
||||||
home.file.".config/starship.toml".source = ../../config/starship.toml;
|
home.file.".config/starship.toml".source = ../../config/starship.toml;
|
||||||
home.file.".emoji".source = ../../config/emoji;
|
home.file.".emoji".source = ../../config/emoji;
|
||||||
|
home.file.".config/neofetch/config.conf".text = ''
|
||||||
|
print_info() {
|
||||||
|
prin "$(color 6) ZaneyOS $ZANEYOS_VERSION"
|
||||||
|
info underline
|
||||||
|
info "$(color 7) VER" kernel
|
||||||
|
info "$(color 2) UP " uptime
|
||||||
|
info "$(color 4) PKG" packages
|
||||||
|
info "$(color 6) DE " de
|
||||||
|
info "$(color 5) TER" term
|
||||||
|
info "$(color 3) CPU" cpu
|
||||||
|
info "$(color 7) GPU" gpu
|
||||||
|
info "$(color 5) MEM" memory
|
||||||
|
prin " "
|
||||||
|
prin "$(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8)"
|
||||||
|
}
|
||||||
|
distro_shorthand="on"
|
||||||
|
memory_unit="gib"
|
||||||
|
cpu_temp="C"
|
||||||
|
separator=" $(color 4)>"
|
||||||
|
stdout="off"
|
||||||
|
'';
|
||||||
|
|
||||||
# Install & Configure Git
|
# Install & Configure Git
|
||||||
programs.git = {
|
programs.git = {
|
||||||
@ -73,19 +94,72 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Configure Cursor Theme
|
||||||
|
home.pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
x11.enable = true;
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Ice";
|
||||||
|
size = 24;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Theme GTK
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
font = {
|
||||||
|
name = "Ubuntu";
|
||||||
|
size = 12;
|
||||||
|
package = pkgs.ubuntu_font_family;
|
||||||
|
};
|
||||||
|
theme = {
|
||||||
|
name = "${config.colorScheme.slug}";
|
||||||
|
package = gtkThemeFromScheme {scheme = config.colorScheme;};
|
||||||
|
};
|
||||||
|
iconTheme = {
|
||||||
|
name = "Papirus-Dark";
|
||||||
|
package = pkgs.papirus-icon-theme;
|
||||||
|
};
|
||||||
|
gtk3.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme=1;
|
||||||
|
};
|
||||||
|
gtk4.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme=1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Theme QT -> GTK
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme = "gtk";
|
||||||
|
style = {
|
||||||
|
name = "adwaita-dark";
|
||||||
|
package = pkgs.adwaita-qt;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(import ../../scripts/emopicker9000.nix { inherit pkgs; })
|
(import ../../scripts/emopicker9000.nix { inherit pkgs; })
|
||||||
(import ../../scripts/task-waybar.nix { inherit pkgs; })
|
(import ../../scripts/task-waybar.nix { inherit pkgs; })
|
||||||
(import ../../scripts/squirtle.nix { inherit pkgs; })
|
(import ../../scripts/squirtle.nix { inherit pkgs; })
|
||||||
(import ../../scripts/themechange.nix { inherit pkgs; inherit host; inherit username; })
|
(import ../../scripts/themechange.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit host;
|
||||||
|
inherit username;
|
||||||
|
})
|
||||||
(import ../../scripts/theme-selector.nix { inherit pkgs; })
|
(import ../../scripts/theme-selector.nix { inherit pkgs; })
|
||||||
(import ../../scripts/nvidia-offload.nix { inherit pkgs; })
|
(import ../../scripts/nvidia-offload.nix { inherit pkgs; })
|
||||||
(import ../../scripts/wallsetter.nix { inherit pkgs; inherit username; })
|
(import ../../scripts/wallsetter.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit username;
|
||||||
|
})
|
||||||
(import ../../scripts/web-search.nix { inherit pkgs; })
|
(import ../../scripts/web-search.nix { inherit pkgs; })
|
||||||
(import ../../scripts/rofi-launcher.nix { inherit pkgs; })
|
(import ../../scripts/rofi-launcher.nix { inherit pkgs; })
|
||||||
(import ../../scripts/screenshootin.nix { inherit pkgs; })
|
(import ../../scripts/screenshootin.nix { inherit pkgs; })
|
||||||
(import ../../scripts/list-hypr-bindings.nix { inherit pkgs; inherit host; })
|
(import ../../scripts/list-hypr-bindings.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit host;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -24,7 +24,10 @@ in
|
|||||||
];
|
];
|
||||||
shell = pkgs.bash;
|
shell = pkgs.bash;
|
||||||
ignoreShellProgramCheck = true;
|
ignoreShellProgramCheck = true;
|
||||||
packages = with pkgs; [ obs-studio zeroad ];
|
packages = with pkgs; [
|
||||||
|
obs-studio
|
||||||
|
zeroad
|
||||||
|
];
|
||||||
};
|
};
|
||||||
# "newuser" = {
|
# "newuser" = {
|
||||||
# homeMode = "755";
|
# homeMode = "755";
|
||||||
|
@ -14,11 +14,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
nixpkgs.config.packageOverrides =
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
pkgs: {
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||||
vaapiIntel = pkgs.vaapiIntel.override {
|
|
||||||
enableHybridCodec = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# OpenGL
|
# OpenGL
|
||||||
|
@ -13,7 +13,5 @@ in
|
|||||||
enable = mkEnableOption "Change Hardware Clock To Local Time";
|
enable = mkEnableOption "Change Hardware Clock To Local Time";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable { time.hardwareClockInLocalTime = true; };
|
||||||
time.hardwareClockInLocalTime = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -25,9 +25,9 @@ in
|
|||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
prime = {
|
prime = {
|
||||||
offload = {
|
offload = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOffloadCmd = true;
|
enableOffloadCmd = true;
|
||||||
};
|
};
|
||||||
# Make sure to use the correct Bus ID values for your system!
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
intelBusId = "${cfg.intelBusID}";
|
intelBusId = "${cfg.intelBusID}";
|
||||||
nvidiaBusId = "${cfg.nvidiaBusID}";
|
nvidiaBusId = "${cfg.nvidiaBusID}";
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
{ lib, qtbase, qtsvg
|
{
|
||||||
, qtgraphicaleffects
|
lib,
|
||||||
, qtquickcontrols2
|
qtbase,
|
||||||
, wrapQtAppsHook
|
qtsvg,
|
||||||
, stdenvNoCC
|
qtgraphicaleffects,
|
||||||
, fetchFromGitHub
|
qtquickcontrols2,
|
||||||
|
wrapQtAppsHook,
|
||||||
|
stdenvNoCC,
|
||||||
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "tokyo-night-sddm";
|
pname = "tokyo-night-sddm";
|
||||||
@ -15,9 +18,7 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
rev = "320c8e74ade1e94f640708eee0b9a75a395697c6";
|
rev = "320c8e74ade1e94f640708eee0b9a75a395697c6";
|
||||||
sha256 = "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=";
|
sha256 = "sha256-JRVVzyefqR2L3UrEK2iWyhUKfPMUNUnfRZmwdz05wL0=";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||||
wrapQtAppsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [
|
propagatedUserEnvPkgs = [
|
||||||
qtbase
|
qtbase
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "emopicker9000" ''
|
pkgs.writeShellScriptBin "emopicker9000" ''
|
||||||
# Get user selection via wofi from emoji file.
|
# Get user selection via wofi from emoji file.
|
||||||
chosen=$(cat $HOME/.emoji | ${pkgs.rofi-wayland}/bin/rofi -dmenu | awk '{print $1}')
|
chosen=$(cat $HOME/.emoji | ${pkgs.rofi-wayland}/bin/rofi -dmenu | awk '{print $1}')
|
||||||
|
|
||||||
# Exit if none chosen.
|
# Exit if none chosen.
|
||||||
[ -z "$chosen" ] && exit
|
[ -z "$chosen" ] && exit
|
||||||
|
|
||||||
# If you run this command with an argument, it will automatically insert the
|
# If you run this command with an argument, it will automatically insert the
|
||||||
# character. Otherwise, show a message that the emoji has been copied.
|
# character. Otherwise, show a message that the emoji has been copied.
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
${pkgs.ydotool}/bin/ydotool type "$chosen"
|
${pkgs.ydotool}/bin/ydotool type "$chosen"
|
||||||
else
|
else
|
||||||
printf "$chosen" | ${pkgs.wl-clipboard}/bin/wl-copy
|
printf "$chosen" | ${pkgs.wl-clipboard}/bin/wl-copy
|
||||||
${pkgs.libnotify}/bin/notify-send "'$chosen' copied to clipboard." &
|
${pkgs.libnotify}/bin/notify-send "'$chosen' copied to clipboard." &
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ pkgs, host, ... }:
|
{ pkgs, host, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit ( import ../hosts/${host}/variables.nix ) terminal browser;
|
inherit (import ../hosts/${host}/variables.nix) terminal browser;
|
||||||
in
|
in
|
||||||
pkgs.writeShellScriptBin "list-hypr-bindings" ''
|
pkgs.writeShellScriptBin "list-hypr-bindings" ''
|
||||||
yad --width=800 --height=650 \
|
yad --width=800 --height=650 \
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "squirtle" ''
|
pkgs.writeShellScriptBin "squirtle" ''
|
||||||
echo "
|
echo "
|
||||||
[38;2;0;0;0m ████████ ██████
|
[38;2;0;0;0m ████████ ██████
|
||||||
[38;2;0;0;0m ██[38;2;82;156;154m██[38;2;115;198;243m██████[38;2;0;0;0m████ ██[38;2;115;198;243m██████[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;82;156;154m██[38;2;115;198;243m██████[38;2;0;0;0m████ ██[38;2;115;198;243m██████[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;115;200;243m████████████[38;2;85;137;157m██[38;2;8;0;0m██[38;2;0;0;0m██ ██[38;2;115;198;243m██████[38;2;79;159;151m████[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;115;200;243m████████████[38;2;85;137;157m██[38;2;8;0;0m██[38;2;0;0;0m██ ██[38;2;115;198;243m██████[38;2;79;159;151m████[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;115;200;243m████████████[38;2;123;206;235m██[38;2;46;69;78m██[38;2;189;107;37m██[38;2;0;0;0m████ ██[38;2;115;198;243m████[38;2;82;156;154m██[38;2;57;66;65m██[38;2;68;113;108m██[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;115;200;243m████████████[38;2;123;206;235m██[38;2;46;69;78m██[38;2;189;107;37m██[38;2;0;0;0m████ ██[38;2;115;198;243m████[38;2;82;156;154m██[38;2;57;66;65m██[38;2;68;113;108m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m██[38;2;115;198;243m██[38;2;115;200;243m████[38;2;159;208;204m██[38;2;96;162;155m██[38;2;115;198;243m██████[38;2;82;156;154m██[38;2;66;61;66m██[38;2;214;132;38m██[38;2;198;119;38m██[38;2;0;0;0m██[38;2;86;146;154m██[38;2;107;214;243m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;82;156;154m████[38;2;0;0;0m██
|
[38;2;0;0;0m██[38;2;115;198;243m██[38;2;115;200;243m████[38;2;159;208;204m██[38;2;96;162;155m██[38;2;115;198;243m██████[38;2;82;156;154m██[38;2;66;61;66m██[38;2;214;132;38m██[38;2;198;119;38m██[38;2;0;0;0m██[38;2;86;146;154m██[38;2;107;214;243m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;82;156;154m████[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m██[38;2;115;198;243m██[38;2;115;200;243m████[38;2;33;115;105m██[38;2;222;255;254m██[38;2;0;0;0m██[38;2;115;198;243m████[38;2;82;156;154m██[38;2;66;61;66m██[38;2;140;96;52m██[38;2;198;119;38m████[38;2;66;78;66m██[38;2;86;146;154m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;82;156;154m██[38;2;0;0;0m██
|
[38;2;0;0;0m██[38;2;115;198;243m██[38;2;115;200;243m████[38;2;33;115;105m██[38;2;222;255;254m██[38;2;0;0;0m██[38;2;115;198;243m████[38;2;82;156;154m██[38;2;66;61;66m██[38;2;140;96;52m██[38;2;198;119;38m████[38;2;66;78;66m██[38;2;86;146;154m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;82;156;154m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m██[38;2;115;198;243m██[38;2;115;200;243m████[38;2;77;144;162m██[38;2;0;4;0m██[38;2;41;8;1m██[38;2;123;214;235m██[38;2;82;156;154m████[38;2;66;66;66m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;214;140;46m██[38;2;90;103;88m██[38;2;49;111;121m██[38;2;85;159;151m██[38;2;46;80;76m██[38;2;0;0;0m██
|
[38;2;0;0;0m██[38;2;115;198;243m██[38;2;115;200;243m████[38;2;77;144;162m██[38;2;0;4;0m██[38;2;41;8;1m██[38;2;123;214;235m██[38;2;82;156;154m████[38;2;66;66;66m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;214;140;46m██[38;2;90;103;88m██[38;2;49;111;121m██[38;2;85;159;151m██[38;2;46;80;76m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;115;200;243m████[38;2;115;214;243m██[38;2;0;4;0m██[38;2;68;77;79m██[38;2;96;145;157m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;192;192;192m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;214;140;46m██[38;2;173;86;21m██[38;2;90;103;88m██[38;2;85;159;151m██[38;2;8;0;0m██[38;2;0;0;0m
|
[38;2;0;0;0m ██[38;2;115;200;243m████[38;2;115;214;243m██[38;2;0;4;0m██[38;2;68;77;79m██[38;2;96;145;157m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;192;192;192m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;214;140;46m██[38;2;173;86;21m██[38;2;90;103;88m██[38;2;85;159;151m██[38;2;8;0;0m██[38;2;0;0;0m
|
||||||
[38;2;0;0;0m [38;2;8;0;0m██[38;2;49;77;76m██[38;2;82;156;154m████[38;2;99;132;115m████[38;2;57;74;81m██[38;2;118;129;107m██[38;2;66;66;66m██[38;2;148;198;220m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;189;103;37m██[38;2;66;66;66m██[38;2;82;156;154m██[38;2;0;0;0m██
|
[38;2;0;0;0m [38;2;8;0;0m██[38;2;49;77;76m██[38;2;82;156;154m████[38;2;99;132;115m████[38;2;57;74;81m██[38;2;118;129;107m██[38;2;66;66;66m██[38;2;148;198;220m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;189;103;37m██[38;2;66;66;66m██[38;2;82;156;154m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m [38;2;8;0;0m██[38;2;91;154;152m██[38;2;66;66;66m████[38;2;49;103;113m██[38;2;198;189;118m██[38;2;239;239;159m██[38;2;57;74;81m██[38;2;148;198;220m██[38;2;66;66;66m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;148;91;47m██[38;2;66;66;66m██[38;2;0;0;0m██
|
[38;2;0;0;0m [38;2;8;0;0m██[38;2;91;154;152m██[38;2;66;66;66m████[38;2;49;103;113m██[38;2;198;189;118m██[38;2;239;239;159m██[38;2;57;74;81m██[38;2;148;198;220m██[38;2;66;66;66m██[38;2;255;255;255m██[38;2;140;82;44m██[38;2;148;91;47m██[38;2;66;66;66m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ████[38;2;247;231;143m██████[38;2;66;66;66m██[38;2;115;198;243m██████[38;2;66;66;66m██[38;2;140;82;44m██[38;2;189;107;37m██[38;2;0;0;0m██
|
[38;2;0;0;0m ████[38;2;247;231;143m██████[38;2;66;66;66m██[38;2;115;198;243m██████[38;2;66;66;66m██[38;2;140;82;44m██[38;2;189;107;37m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;206;173;94m████[38;2;66;66;66m██[38;2;115;198;243m████[38;2;82;156;154m██[38;2;66;66;66m██[38;2;140;82;44m██[38;2;189;107;37m██[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;206;173;94m████[38;2;66;66;66m██[38;2;115;198;243m████[38;2;82;156;154m██[38;2;66;66;66m██[38;2;140;82;44m██[38;2;189;107;37m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;57;115;105m██[38;2;80;85;69m██[38;2;239;239;159m██[38;2;255;231;127m██[38;2;74;66;58m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;58;69;71m██[38;2;173;198;197m██[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;57;115;105m██[38;2;80;85;69m██[38;2;239;239;159m██[38;2;255;231;127m██[38;2;74;66;58m██[38;2;82;156;154m██[38;2;66;66;66m██[38;2;58;69;71m██[38;2;173;198;197m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;57;115;105m██[38;2;80;85;69m██[38;2;0;8;24m██[38;2;195;176;104m████[38;2;66;66;66m████[38;2;115;133;134m██[38;2;58;69;71m██[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;57;115;105m██[38;2;80;85;69m██[38;2;0;8;24m██[38;2;195;176;104m████[38;2;66;66;66m████[38;2;115;133;134m██[38;2;58;69;71m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ████ ██[38;2;66;66;66m██[38;2;115;206;243m██[38;2;76;151;151m██[38;2;82;156;154m██[38;2;0;0;0m██
|
[38;2;0;0;0m ████ ██[38;2;66;66;66m██[38;2;115;206;243m██[38;2;76;151;151m██[38;2;82;156;154m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██[38;2;76;151;151m██[38;2;57;123;105m██[38;2;82;156;154m██[38;2;0;0;0m██
|
[38;2;0;0;0m ██[38;2;76;151;151m██[38;2;57;123;105m██[38;2;82;156;154m██[38;2;0;0;0m██
|
||||||
[38;2;0;0;0m ██████ [0m
|
[38;2;0;0;0m ██████ [0m
|
||||||
"
|
"
|
||||||
''
|
''
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "task-waybar" ''
|
pkgs.writeShellScriptBin "task-waybar" ''
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
${pkgs.swaynotificationcenter}/bin/swaync-client -t &
|
${pkgs.swaynotificationcenter}/bin/swaync-client -t &
|
||||||
''
|
''
|
||||||
|
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "theme-selector" ''
|
pkgs.writeShellScriptBin "theme-selector" ''
|
||||||
# Get user selection for new theme from base16-themes file
|
# Get user selection for new theme from base16-themes file
|
||||||
chosen=$(cat $HOME/.base16-themes | ${pkgs.rofi-wayland}/bin/rofi -dmenu)
|
chosen=$(cat $HOME/.base16-themes | ${pkgs.rofi-wayland}/bin/rofi -dmenu)
|
||||||
|
|
||||||
# Exit if none chosen.
|
# Exit if none chosen.
|
||||||
[ -z "$chosen" ] && exit
|
[ -z "$chosen" ] && exit
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
themechange "$chosen"
|
themechange "$chosen"
|
||||||
else
|
else
|
||||||
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
||||||
themechange "$chosen"
|
themechange "$chosen"
|
||||||
${pkgs.libnotify}/bin/notify-send "Theme: $chosen has been applied." &
|
${pkgs.libnotify}/bin/notify-send "Theme: $chosen has been applied." &
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
{ pkgs, host, username, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
host,
|
||||||
|
username,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "themechange" ''
|
pkgs.writeShellScriptBin "themechange" ''
|
||||||
if [[ ! $@ ]];then
|
if [[ ! $@ ]];then
|
||||||
|
@ -1,43 +1,43 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "web-search" ''
|
pkgs.writeShellScriptBin "web-search" ''
|
||||||
declare -A URLS
|
declare -A URLS
|
||||||
|
|
||||||
URLS=(
|
URLS=(
|
||||||
["🌎 Search"]="https://search.brave.com/search?q="
|
["🌎 Search"]="https://search.brave.com/search?q="
|
||||||
["❄️ Unstable Packages"]="https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query="
|
["❄️ Unstable Packages"]="https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query="
|
||||||
["🎞️ YouTube"]="https://www.youtube.com/results?search_query="
|
["🎞️ YouTube"]="https://www.youtube.com/results?search_query="
|
||||||
["🦥 Arch Wiki"]="https://wiki.archlinux.org/title/"
|
["🦥 Arch Wiki"]="https://wiki.archlinux.org/title/"
|
||||||
["🐃 Gentoo Wiki"]="https://wiki.gentoo.org/index.php?title="
|
["🐃 Gentoo Wiki"]="https://wiki.gentoo.org/index.php?title="
|
||||||
)
|
)
|
||||||
|
|
||||||
# List for rofi
|
# List for rofi
|
||||||
gen_list() {
|
gen_list() {
|
||||||
for i in "''${!URLS[@]}"
|
for i in "''${!URLS[@]}"
|
||||||
do
|
do
|
||||||
echo "$i"
|
echo "$i"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
# Pass the list to rofi
|
# Pass the list to rofi
|
||||||
platform=$( (gen_list) | ${pkgs.rofi-wayland}/bin/rofi -dmenu )
|
platform=$( (gen_list) | ${pkgs.rofi-wayland}/bin/rofi -dmenu )
|
||||||
|
|
||||||
if [[ -n "$platform" ]]; then
|
if [[ -n "$platform" ]]; then
|
||||||
query=$( (echo ) | ${pkgs.rofi-wayland}/bin/rofi -dmenu )
|
query=$( (echo ) | ${pkgs.rofi-wayland}/bin/rofi -dmenu )
|
||||||
|
|
||||||
if [[ -n "$query" ]]; then
|
if [[ -n "$query" ]]; then
|
||||||
url=''${URLS[$platform]}$query
|
url=''${URLS[$platform]}$query
|
||||||
xdg-open "$url"
|
xdg-open "$url"
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
else
|
}
|
||||||
exit
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user