modifications to fonts.conf

modifications to gtk themes

modifications to nixos configuration.nix
master
Alex 2022-09-09 20:35:06 -05:00
parent 966d7152d1
commit 1612c290fa
8 changed files with 90 additions and 26 deletions

View File

@ -5,15 +5,15 @@
<!-- Set preferred serif, sans serif, and monospace fonts. --> <!-- Set preferred serif, sans serif, and monospace fonts. -->
<alias> <alias>
<family>Serif</family> <family>Serif</family>
<prefer><family>Linux Libertine</family></prefer> <prefer><family>Noto Serif</family></prefer>
</alias> </alias>
<alias> <alias>
<family>sans-serif</family> <family>sans-serif</family>
<prefer><family>Linux Biolinum</family></prefer> <prefer><family>Noto Sans</family></prefer>
</alias> </alias>
<alias> <alias>
<family>sans</family> <family>sans</family>
<prefer><family>Linux Biolinum</family></prefer> <prefer><family>Noto Sans Regular</family></prefer>
</alias> </alias>
<alias> <alias>
<family>monospace</family> <family>monospace</family>
@ -25,50 +25,50 @@
<match> <match>
<test name="family"><string>Arial</string></test> <test name="family"><string>Arial</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Biolinum</string> <string>sans</string>
</edit> </edit>
</match> </match>
<match> <match>
<test name="family"><string>Helvetica</string></test> <test name="family"><string>Helvetica</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Biolinum</string> <string>sans</string>
</edit> </edit>
</match> </match>
<match> <match>
<test name="family"><string>Verdana</string></test> <test name="family"><string>Verdana</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Biolinum</string> <string>sans</string>
</edit> </edit>
</match> </match>
<match> <match>
<test name="family"><string>Tahoma</string></test> <test name="family"><string>Tahoma</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Biolinum</string> <string>sans</string>
</edit> </edit>
</match> </match>
<match> <match>
<!-- Insert joke here --> <!-- Insert joke here -->
<test name="family"><string>Comic Sans MS</string></test> <test name="family"><string>Comic Sans MS</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Biolinum</string> <string>sans</string>
</edit> </edit>
</match> </match>
<match> <match>
<test name="family"><string>Times New Roman</string></test> <test name="family"><string>Times New Roman</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Libertine</string> <string>serif</string>
</edit> </edit>
</match> </match>
<match> <match>
<test name="family"><string>Times</string></test> <test name="family"><string>Times</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Linux Libertine</string> <string>serif</string>
</edit> </edit>
</match> </match>
<match> <match>
<test name="family"><string>Courier New</string></test> <test name="family"><string>Courier New</string></test>
<edit name="family" mode="assign" binding="strong"> <edit name="family" mode="assign" binding="strong">
<string>Mononoki Nerd Font</string> <string>monospace</string>
</edit> </edit>
</match> </match>

View File

@ -2,7 +2,7 @@
# Any customization should be done in ~/.gtkrc-2.0.mine instead. # Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/alex/.gtkrc-2.0.mine" include "/home/alex/.gtkrc-2.0.mine"
gtk-theme-name="Nordic-standard-buttons" gtk-theme-name="Dracula"
gtk-icon-theme-name="Papirus-Dark" gtk-icon-theme-name="Papirus-Dark"
gtk-font-name="Sans 10" gtk-font-name="Sans 10"
gtk-cursor-theme-name="Adwaita" gtk-cursor-theme-name="Adwaita"

View File

@ -1,5 +1,5 @@
[Settings] [Settings]
gtk-theme-name=Nordic-standard-buttons gtk-theme-name=Dracula
gtk-icon-theme-name=Papirus-Dark gtk-icon-theme-name=Papirus-Dark
gtk-font-name=Sans 10 gtk-font-name=Sans 10
gtk-cursor-theme-size=0 gtk-cursor-theme-size=0

View File

@ -41,20 +41,22 @@ output VGA-1 disable
### Idle configuration ### Idle configuration
# #
# Example configuration: # Example configuration:
#
# exec swayidle -w \
# timeout 900 'swaylock -f -c 000000' \
# timeout 1200 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
# #
exec swayidle -w \ exec swayidle -w \
timeout 900 'swaylock -f -c 000000' \
timeout 1200 'swaymsg "output * dpms off"' \ timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off # This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when # your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep. # resumed. It will also lock your screen before your computer goes to sleep.
#alternate idle config that just turns display off
# exec swayidle -w \
# timeout 1200 'swaymsg "output * dpms off"' \
# resume 'swaymsg "output * dpms on"'
#set transparency #set transparency
set $opacity 0.9 set $opacity 0.9
#for_window [class=".*"] opacity 1.0 #for_window [class=".*"] opacity 1.0

0
.local/bin/unrar Executable file → Normal file
View File

View File

@ -1,4 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
imports = imports =
@ -21,12 +23,15 @@
# accidentally delete configuration.nix. # accidentally delete configuration.nix.
system.copySystemConfiguration = true; system.copySystemConfiguration = true;
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "bismarck"; # Define your hostname. networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
#networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. #networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
@ -76,7 +81,8 @@
yt-dlp yt-dlp
zathura zathura
sfeed sfeed
chromium ungoogled-chromium
firefox
]; ];
}; };
@ -106,12 +112,15 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
glib # gsettings glib # gsettings
dracula-theme # gtk theme dracula-theme # gtk theme
flat-remix-gtk
gnome3.adwaita-icon-theme # default gnome cursors gnome3.adwaita-icon-theme # default gnome cursors
zsh papirus-icon-theme
noto-fonts noto-fonts
noto-fonts-extra noto-fonts-extra
noto-fonts-emoji noto-fonts-emoji
noto-fonts-cjk-sans noto-fonts-cjk-sans
nerdfonts
zsh
zip zip
unzip unzip
p7zip p7zip
@ -145,6 +154,7 @@
shellcheck shellcheck
jq jq
monero-cli monero-cli
monero-gui
bc bc
gnome.zenity gnome.zenity
cura cura
@ -152,11 +162,52 @@
udiskie udiskie
python3 python3
python3.pkgs.pip python3.pkgs.pip
wget
ani-cli
keepassxc
appimage-run
fuse
lxappearance
gtk-engine-murrine
gtk_engines
img2pdf #dep of manga-cli
pcmanfm
steam-run
]; ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam-original"
"steam-run"
];
fonts = {
fonts = with pkgs; [
noto-fonts
noto-fonts-extra
noto-fonts-emoji
noto-fonts-cjk-sans
nerdfonts
];
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "Mononoki Nerd Font" ];
};
};
};
#enable flatpak #enable flatpak
services.flatpak.enable = true; services.flatpak.enable = true;
services.udisks2.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -179,7 +230,7 @@
wlr.enable = true; wlr.enable = true;
# gtk portal needed to make gtk apps happy # gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
gtkUsePortal = true; #gtkUsePortal = true;
}; };
} }

View File

@ -14,6 +14,15 @@ mkdir -p ~/.cache/zsh
touch ~/.cache/zsh/history touch ~/.cache/zsh/history
sh ~/.local/scripts/install.sh add-repos ~/.local/installers/nixos/repos.list
#link rofi themes directory so that theming works
mkdir -p "$HOME"/.local/share/rofi/
ln -s "$HOME"/.local/src/base16-rofi/themes/ "$HOME"/.local/share/rofi/themes
#set limits for esync #set limits for esync
#sudo sh -c "echo '$USER hard nofile 524288' >> /etc/security/limits.conf" #sudo sh -c "echo '$USER hard nofile 524288' >> /etc/security/limits.conf"
#set limits for monero #set limits for monero

View File

@ -20,6 +20,8 @@ export TERM="xterm-256color"
#export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. must have qt5-styleplugins installed #export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. must have qt5-styleplugins installed
export QT_QPA_PLATFORMTHEME="qt5ct" #have QT use qt5ct theme export QT_QPA_PLATFORMTHEME="qt5ct" #have QT use qt5ct theme
export GTK_THEME=Adwaita:dark
export LESSHISTFILE="-" export LESSHISTFILE="-"
export ZDOTDIR="$HOME/.config/zsh" export ZDOTDIR="$HOME/.config/zsh"
@ -78,7 +80,7 @@ export AWT_TOOLKIT=MToolkit
#mount samba share, needs entry in /etc/fstab for this line to work #mount samba share, needs entry in /etc/fstab for this line to work
# //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0 # //192.168.1.218/storage /media/nagato cifs username=alex,pass=PASSWORD,workgroup=WORKGROUP,user,noauto 0 0
#mount /media/nagato/ & #mount /media/nagato/ &
mount /media/bismarck & #mount /media/bismarck &
if [ "$(tty)" = /dev/tty1 ]; then if [ "$(tty)" = /dev/tty1 ]; then