Update
This commit is contained in:
parent
0bd55fdc10
commit
36e9281397
45
home/programs/thunar/default.nix
Normal file
45
home/programs/thunar/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
# ctrl + m to toggle the menubar
|
||||||
|
home.packages = with pkgs.xfce; [
|
||||||
|
thunar
|
||||||
|
xfconf
|
||||||
|
tumbler
|
||||||
|
thunar-archive-plugin
|
||||||
|
thunar-volman
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file.".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml".text = ''
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<channel name="thunar" version="1.0">
|
||||||
|
<property name="last-view" type="string" value="ThunarIconView"/>
|
||||||
|
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
|
||||||
|
<property name="last-window-maximized" type="bool" value="true"/>
|
||||||
|
<property name="last-separator-position" type="int" value="170"/>
|
||||||
|
<property name="last-statusbar-visible" type="bool" value="false"/>
|
||||||
|
<property name="last-menubar-visible" type="bool" value="false"/>
|
||||||
|
<property name="misc-single-click" type="bool" value="false"/>
|
||||||
|
<property name="shortcuts-icon-emblems" type="bool" value="true"/>
|
||||||
|
<property name="tree-icon-emblems" type="bool" value="true"/>
|
||||||
|
<property name="misc-file-size-binary" type="bool" value="true"/>
|
||||||
|
<property name="misc-thumbnail-draw-frames" type="bool" value="false"/>
|
||||||
|
<property name="misc-text-beside-icons" type="bool" value="true"/>
|
||||||
|
<property name="misc-change-window-icon" type="bool" value="true"/>
|
||||||
|
<property name="hidden-bookmarks" type="array">
|
||||||
|
<value type="string" value="computer:///"/>
|
||||||
|
<value type="string" value="recent:///"/>
|
||||||
|
<value type="string" value="file:///"/>
|
||||||
|
<value type="string" value="network:///"/>
|
||||||
|
</property>
|
||||||
|
<property name="hidden-devices" type="array">
|
||||||
|
<value type="string" value="52FEA905FEA8E309"/>
|
||||||
|
</property>
|
||||||
|
<property name="last-toolbar-item-order" type="string" value="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/>
|
||||||
|
<property name="last-toolbar-visible-buttons" type="string" value="0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0"/>
|
||||||
|
<property name="last-location-bar" type="string" value="ThunarLocationButtons"/>
|
||||||
|
<property name="last-show-hidden" type="bool" value="false"/>
|
||||||
|
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_38_PERCENT"/>
|
||||||
|
<property name="last-details-view-column-widths" type="string" value="50,50,127,50,50,50,50,50,751,50,50,75,50,145"/>
|
||||||
|
</channel>
|
||||||
|
'';
|
||||||
|
}
|
@ -1,4 +1,28 @@
|
|||||||
{ pkgs, ... }: {
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
accent = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
foreground = "#${config.lib.stylix.colors.base05}";
|
||||||
|
background = "#${config.lib.stylix.colors.base00}";
|
||||||
|
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||||
|
|
||||||
|
c0 = "#${config.lib.stylix.colors.base00}";
|
||||||
|
c1 = "#${config.lib.stylix.colors.base08}";
|
||||||
|
c2 = "#${config.lib.stylix.colors.base0B}";
|
||||||
|
c3 = "#${config.lib.stylix.colors.base0A}";
|
||||||
|
c4 = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
c5 = "#${config.lib.stylix.colors.base0E}";
|
||||||
|
c6 = "#${config.lib.stylix.colors.base0C}";
|
||||||
|
c7 = "#${config.lib.stylix.colors.base05}";
|
||||||
|
c8 = "#${config.lib.stylix.colors.base03}";
|
||||||
|
c9 = "#${config.lib.stylix.colors.base08}";
|
||||||
|
c10 = "#${config.lib.stylix.colors.base0B}";
|
||||||
|
c11 = "#${config.lib.stylix.colors.base0A}";
|
||||||
|
c12 = "#${config.lib.stylix.colors.base0D}";
|
||||||
|
c13 = "#${config.lib.stylix.colors.base0E}";
|
||||||
|
c14 = "#${config.lib.stylix.colors.base0C}";
|
||||||
|
c15 = "#${config.lib.stylix.colors.base07}";
|
||||||
|
|
||||||
|
in {
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -8,9 +32,118 @@
|
|||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
theme = lib.mkForce { name = "FlatColor"; };
|
||||||
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
package = pkgs.kora-icon-theme;
|
package = pkgs.kora-icon-theme;
|
||||||
name = "Kora";
|
name = "Kora";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
font = { name = config.stylix.fonts.serif.name; };
|
||||||
|
|
||||||
|
gtk3.extraConfig = {
|
||||||
|
Settings = ''
|
||||||
|
gtk-application-prefer-dark-theme=1
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk4.extraConfig = {
|
||||||
|
Settings = ''
|
||||||
|
gtk-application-prefer-dark-theme=1
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".local/share/themes/FlatColor" = {
|
||||||
|
recursive = true;
|
||||||
|
source = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "FlatColor";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "jasperro";
|
||||||
|
repo = "FlatColor";
|
||||||
|
rev = "0a56c50e8c5e2ad35f6174c19a00e01b30874074";
|
||||||
|
hash = "sha256-P8RnYTk9Z1rCBEEMLTVRrNr5tUM/Pc9dsdMtpHd1Y18=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
# delete the default gtk-color-scheme:
|
||||||
|
file="./gtk-2.0/gtkrc"
|
||||||
|
sed -i '3,29d' $file
|
||||||
|
sed -i '3i include "../colors2"' $file
|
||||||
|
|
||||||
|
file="./gtk-3.0/gtk.css"
|
||||||
|
sed -i '2,10d' $file
|
||||||
|
sed -i '2i @import url("../colors3");' $file
|
||||||
|
|
||||||
|
file="./gtk-3.20/gtk.css"
|
||||||
|
sed -i '2,26d' $file
|
||||||
|
sed -i '2i @import url("../colors3");' $file
|
||||||
|
|
||||||
|
cp -r . $out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
".local/share/themes/FlatColor/colors2".text = ''
|
||||||
|
bg_color:${background}
|
||||||
|
color0:${c0}
|
||||||
|
color1:${c1}
|
||||||
|
color2:${c2}
|
||||||
|
color3:${c3}
|
||||||
|
color4:${c4}
|
||||||
|
color5:${c5}
|
||||||
|
color6:${c6}
|
||||||
|
color7:${c7}
|
||||||
|
color8:${c8}
|
||||||
|
color9:${c9}
|
||||||
|
color10:${c10}
|
||||||
|
color11:${c11}
|
||||||
|
color12:${c12}
|
||||||
|
color13:${c13}
|
||||||
|
color14:${c14}
|
||||||
|
color15:${c15}
|
||||||
|
text_color:${foreground}
|
||||||
|
selected_bg_color:${accent}
|
||||||
|
selected_fg_color:${foreground}
|
||||||
|
tooltip_bg_color:${background-alt}
|
||||||
|
tooltip_fg_color:${foreground}
|
||||||
|
titlebar_bg_color:${background}
|
||||||
|
titlebar_fg_color:${foreground}
|
||||||
|
menu_bg_color:${background-alt}
|
||||||
|
menu_fg_color:${foreground}
|
||||||
|
link_color:${accent}
|
||||||
|
'';
|
||||||
|
|
||||||
|
".local/share/themes/FlatColor/colors3".text = ''
|
||||||
|
@define-color color0 ${c0};
|
||||||
|
@define-color color1 ${c1};
|
||||||
|
@define-color color2 ${c2};
|
||||||
|
@define-color color3 ${c3};
|
||||||
|
@define-color color4 ${c4};
|
||||||
|
@define-color color5 ${c5};
|
||||||
|
@define-color color6 ${c6};
|
||||||
|
@define-color color7 ${c7};
|
||||||
|
@define-color color8 ${c8};
|
||||||
|
@define-color color9 ${c9};
|
||||||
|
@define-color color10 ${c10};
|
||||||
|
@define-color color11 ${c11};
|
||||||
|
@define-color color12 ${c12};
|
||||||
|
@define-color color13 ${c13};
|
||||||
|
@define-color color14 ${c14};
|
||||||
|
@define-color color15 ${c15};
|
||||||
|
@define-color selected_bg_color ${accent};
|
||||||
|
@define-color selected_fg_color ${foreground};
|
||||||
|
@define-color bg_color ${background};
|
||||||
|
@define-color fg_color ${foreground};
|
||||||
|
@define-color base_color @bg_color;
|
||||||
|
@define-color text_color @fg_color;
|
||||||
|
@define-color text_color_disabled mix(@text_color, @base_color, 0.4);
|
||||||
|
@define-color tooltip_bg_color ${background-alt};
|
||||||
|
@define-color tooltip_fg_color ${foreground};
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,24 @@
|
|||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"text/markdown" = "nvim.desktop";
|
"text/markdown" = "nvim.desktop";
|
||||||
"text/plain" = "nvim.desktop";
|
"text/plain" = "nvim.desktop";
|
||||||
|
"text/x-shellscript" = "nvim.desktop";
|
||||||
|
"text/x-python" = "nvim.desktop";
|
||||||
|
"text/x-go" = "nvim.desktop";
|
||||||
|
"text/css" = "nvim.desktop";
|
||||||
|
"text/javascript" = "nvim.desktop";
|
||||||
|
"text/x-c" = "nvim.desktop";
|
||||||
|
"text/x-c++" = "nvim.desktop";
|
||||||
|
"text/x-java" = "nvim.desktop";
|
||||||
|
"text/x-rust" = "nvim.desktop";
|
||||||
|
"text/x-yaml" = "nvim.desktop";
|
||||||
|
"text/x-toml" = "nvim.desktop";
|
||||||
|
"text/x-dockerfile" = "nvim.desktop";
|
||||||
|
"text/x-xml" = "nvim.desktop";
|
||||||
|
"text/x-php" = "nvim.desktop";
|
||||||
"image/png" = "imv.desktop";
|
"image/png" = "imv.desktop";
|
||||||
"image/jpeg" = "imv.desktop";
|
"image/jpeg" = "imv.desktop";
|
||||||
|
"image/jpg" = "imv.desktop";
|
||||||
|
"image/webp" = "imv.desktop";
|
||||||
"image/gif" = "org.qutebrowser.qutebrowser.desktop";
|
"image/gif" = "org.qutebrowser.qutebrowser.desktop";
|
||||||
"x-scheme-handler/http" = "org.qutebrowser.qutebrowser.desktop";
|
"x-scheme-handler/http" = "org.qutebrowser.qutebrowser.desktop";
|
||||||
"x-scheme-handler/https" = "org.qutebrowser.qutebrowser.desktop";
|
"x-scheme-handler/https" = "org.qutebrowser.qutebrowser.desktop";
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
../../home/programs/nextcloud
|
../../home/programs/nextcloud
|
||||||
../../home/programs/yazi
|
../../home/programs/yazi
|
||||||
../../home/programs/markdown
|
../../home/programs/markdown
|
||||||
|
../../home/programs/thunar
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
../../home/scripts # All scripts
|
../../home/scripts # All scripts
|
||||||
@ -42,7 +43,6 @@
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# Apps
|
# Apps
|
||||||
discord
|
discord
|
||||||
xfce.thunar
|
|
||||||
bitwarden
|
bitwarden
|
||||||
vlc
|
vlc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user