Finally switch to flakes.
This commit is contained in:
parent
a90e09db74
commit
5e0b713756
116 changed files with 5443 additions and 3 deletions
309
home-manager/guiapps/easyeffects.nix
Normal file
309
home-manager/guiapps/easyeffects.nix
Normal file
|
@ -0,0 +1,309 @@
|
|||
{pkgs, ...}: {
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
easyeffects
|
||||
];
|
||||
file = let
|
||||
# An Easyeffects equalizer profile that sounds good to me
|
||||
easyEffectsProfile = ''
|
||||
{
|
||||
"output": {
|
||||
"blocklist": [],
|
||||
"crystalizer#0": {
|
||||
"band0": {
|
||||
"bypass": false,
|
||||
"intensity": 0.0,
|
||||
"mute": false
|
||||
},
|
||||
"band1": {
|
||||
"bypass": false,
|
||||
"intensity": -1.0,
|
||||
"mute": false
|
||||
},
|
||||
"band2": {
|
||||
"bypass": false,
|
||||
"intensity": -2.0,
|
||||
"mute": false
|
||||
},
|
||||
"band3": {
|
||||
"bypass": false,
|
||||
"intensity": -3.0,
|
||||
"mute": false
|
||||
},
|
||||
"band4": {
|
||||
"bypass": false,
|
||||
"intensity": -4.0,
|
||||
"mute": false
|
||||
},
|
||||
"band5": {
|
||||
"bypass": false,
|
||||
"intensity": -5.0,
|
||||
"mute": false
|
||||
},
|
||||
"band6": {
|
||||
"bypass": false,
|
||||
"intensity": -6.0,
|
||||
"mute": false
|
||||
},
|
||||
"band7": {
|
||||
"bypass": false,
|
||||
"intensity": -7.0,
|
||||
"mute": false
|
||||
},
|
||||
"band8": {
|
||||
"bypass": false,
|
||||
"intensity": -8.0,
|
||||
"mute": false
|
||||
},
|
||||
"band9": {
|
||||
"bypass": false,
|
||||
"intensity": -9.0,
|
||||
"mute": false
|
||||
},
|
||||
"band10": {
|
||||
"bypass": false,
|
||||
"intensity": -10.0,
|
||||
"mute": false
|
||||
},
|
||||
"band11": {
|
||||
"bypass": false,
|
||||
"intensity": -11.0,
|
||||
"mute": false
|
||||
},
|
||||
"band12": {
|
||||
"bypass": false,
|
||||
"intensity": -12.0,
|
||||
"mute": false
|
||||
},
|
||||
"bypass": false,
|
||||
"input-gain": 0.0,
|
||||
"output-gain": 0.0
|
||||
},
|
||||
"equalizer#0": {
|
||||
"balance": 0.0,
|
||||
"bypass": false,
|
||||
"input-gain": 0.0,
|
||||
"left": {
|
||||
"band0": {
|
||||
"frequency": 32.0,
|
||||
"gain": 1.1,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band1": {
|
||||
"frequency": 64.0,
|
||||
"gain": 1.16,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band2": {
|
||||
"frequency": 125.0,
|
||||
"gain": 3.33,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band3": {
|
||||
"frequency": 250.0,
|
||||
"gain": 1.53,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band4": {
|
||||
"frequency": 500.0,
|
||||
"gain": -1.83,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band5": {
|
||||
"frequency": 1000.0,
|
||||
"gain": -0.58,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band6": {
|
||||
"frequency": 2000.0,
|
||||
"gain": 1.42,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band7": {
|
||||
"frequency": 4000.0,
|
||||
"gain": 4.73,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band8": {
|
||||
"frequency": 16000.0,
|
||||
"gain": 7.62,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band9": {
|
||||
"frequency": 156.38,
|
||||
"gain": 2.84,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
}
|
||||
},
|
||||
"mode": "IIR",
|
||||
"num-bands": 10,
|
||||
"output-gain": 0.0,
|
||||
"pitch-left": 0.0,
|
||||
"pitch-right": 0.0,
|
||||
"right": {
|
||||
"band0": {
|
||||
"frequency": 32.0,
|
||||
"gain": 1.1,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band1": {
|
||||
"frequency": 64.0,
|
||||
"gain": 1.16,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band2": {
|
||||
"frequency": 125.0,
|
||||
"gain": 3.33,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band3": {
|
||||
"frequency": 250.0,
|
||||
"gain": 1.53,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band4": {
|
||||
"frequency": 500.0,
|
||||
"gain": -1.83,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band5": {
|
||||
"frequency": 1000.0,
|
||||
"gain": -0.58,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band6": {
|
||||
"frequency": 2000.0,
|
||||
"gain": 1.42,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band7": {
|
||||
"frequency": 4000.0,
|
||||
"gain": 4.73,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band8": {
|
||||
"frequency": 16000.0,
|
||||
"gain": 7.62,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
},
|
||||
"band9": {
|
||||
"frequency": 156.38,
|
||||
"gain": 2.84,
|
||||
"mode": "RLC (BT)",
|
||||
"mute": false,
|
||||
"q": 4.36,
|
||||
"slope": "x1",
|
||||
"solo": false,
|
||||
"type": "Bell"
|
||||
}
|
||||
},
|
||||
"split-channels": false
|
||||
},
|
||||
"plugins_order": [
|
||||
"equalizer#0",
|
||||
"crystalizer#0"
|
||||
]
|
||||
}
|
||||
}
|
||||
'';
|
||||
in {
|
||||
# Easyeffects profile
|
||||
".config/easyeffects/output/JimHeadphones.json".text = easyEffectsProfile;
|
||||
};
|
||||
};
|
||||
}
|
43
home-manager/guiapps/foot.nix
Normal file
43
home-manager/guiapps/foot.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
# Enable a terminal emulator
|
||||
programs.foot = {
|
||||
enable = true;
|
||||
server.enable = false;
|
||||
settings = {
|
||||
main = let
|
||||
fonts = import ../common/fonts.nix;
|
||||
in {
|
||||
term = "xterm-256color";
|
||||
font = "${fonts.nerd}:size=14.7";
|
||||
};
|
||||
cursor = {
|
||||
style = "beam";
|
||||
};
|
||||
colors = let
|
||||
colors = import ../style/colors.nix;
|
||||
in {
|
||||
alpha = "0.65";
|
||||
background = "${colors.dark}";
|
||||
regular0 = "3f3f3f";
|
||||
regular1 = "cc0000";
|
||||
regular2 = "4e9a06";
|
||||
regular3 = "c4a000";
|
||||
regular4 = "94bff3";
|
||||
regular5 = "85678f";
|
||||
regular6 = "06989a";
|
||||
regular7 = "dcdccc";
|
||||
bright0 = "545454";
|
||||
bright1 = "fc5454";
|
||||
bright2 = "8ae234";
|
||||
bright3 = "fce94f";
|
||||
bright4 = "94bff3";
|
||||
bright5 = "b294bb";
|
||||
bright6 = "93e0e3";
|
||||
bright7 = "ffffff";
|
||||
};
|
||||
key-bindings = {
|
||||
search-start = "Control+f";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
426
home-manager/guiapps/librewolf.nix
Normal file
426
home-manager/guiapps/librewolf.nix
Normal file
|
@ -0,0 +1,426 @@
|
|||
{pkgs, config, ...}: let
|
||||
# Import variables
|
||||
colors = import ../style/colors.nix;
|
||||
fonts = import ../common/fonts.nix;
|
||||
|
||||
# FireFox colors
|
||||
themeJim = ''
|
||||
:root {
|
||||
--tab-active-bg-color: #${colors.prime};
|
||||
--tab-hover-bg-color: #${colors.accent};
|
||||
--tab-inactive-bg-color: #${colors.dark};
|
||||
--tab-active-fg-fallback-color: #FFFFFF;
|
||||
--tab-inactive-fg-fallback-color: #${colors.text};
|
||||
--urlbar-focused-bg-color: #${colors.dark};
|
||||
--urlbar-not-focused-bg-color: #${colors.dark};
|
||||
--toolbar-bgcolor: #${colors.dark} !important;
|
||||
'';
|
||||
themeAlt = ''
|
||||
:root {
|
||||
--tab-active-bg-color: #${colors.dark};
|
||||
--tab-hover-bg-color: #${colors.accent};
|
||||
--tab-inactive-bg-color: #${colors.prime};
|
||||
--tab-active-fg-fallback-color: #${colors.text};
|
||||
--tab-inactive-fg-fallback-color: #FFFFFF;
|
||||
--urlbar-focused-bg-color: #${colors.prime};
|
||||
--urlbar-not-focused-bg-color: #${colors.prime};
|
||||
--toolbar-bgcolor: #${colors.prime} !important;
|
||||
'';
|
||||
quteFoxCSS = ''
|
||||
--tab-font: '${fonts.main}';
|
||||
--urlbar-font: '${fonts.main}';
|
||||
|
||||
/* try increasing if you encounter problems */
|
||||
--urlbar-height-setting: 24px;
|
||||
--tab-min-height: 20px !important;
|
||||
|
||||
/* I don't recommend you touch this */
|
||||
--arrowpanel-menuitem-padding: 2px !important;
|
||||
--arrowpanel-border-radius: 0px !important;
|
||||
--arrowpanel-menuitem-border-radius: 0px !important;
|
||||
--toolbarbutton-border-radius: 0px !important;
|
||||
--toolbarbutton-inner-padding: 0px 2px !important;
|
||||
--toolbar-field-focus-background-color: var(--urlbar-focused-bg-color) !important;
|
||||
--toolbar-field-background-color: var(--urlbar-not-focused-bg-color) !important;
|
||||
--toolbar-field-focus-border-color: transparent !important;
|
||||
}
|
||||
|
||||
/* --- General debloat ------------------------------ */
|
||||
|
||||
/* bottom left page loading status or url preview */
|
||||
#statuspanel { display: none !important; }
|
||||
|
||||
/* remove radius from right-click popup */
|
||||
menupopup, panel { --panel-border-radius: 0px !important; }
|
||||
menu, menuitem, menucaption { border-radius: 0px !important; }
|
||||
|
||||
/* no large buttons in right-click menu */
|
||||
menupopup > #context-navigation { display: none !important; }
|
||||
menupopup > #context-sep-navigation { display: none !important; }
|
||||
|
||||
/* --- Debloat navbar ------------------------------- */
|
||||
|
||||
#back-button { display: none; }
|
||||
#forward-button { display: none; }
|
||||
#reload-button { display: none; }
|
||||
#stop-button { display: none; }
|
||||
#home-button { display: none; }
|
||||
#library-button { display: none; }
|
||||
#fxa-toolbar-menu-button { display: none; }
|
||||
/* empty space before and after the url bar */
|
||||
#customizableui-special-spring1, #customizableui-special-spring2 { display: none; }
|
||||
|
||||
/* --- Style navbar -------------------------------- */
|
||||
|
||||
/* remove padding between toolbar buttons */
|
||||
toolbar .toolbarbutton-1 { padding: 0 0 !important; }
|
||||
|
||||
#urlbar-container {
|
||||
--urlbar-container-height: var(--urlbar-height-setting) !important;
|
||||
margin-left: 0 !important;
|
||||
margin-right: 0 !important;
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
font-family: var(--urlbar-font, 'monospace');
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#urlbar {
|
||||
--urlbar-height: var(--urlbar-height-setting) !important;
|
||||
--urlbar-toolbar-height: var(--urlbar-height-setting) !important;
|
||||
min-height: var(--urlbar-height-setting) !important;
|
||||
border-color: var(--lwt-toolbar-field-border-color, hsla(240,5%,5%,.25)) !important;
|
||||
}
|
||||
|
||||
#urlbar-input {
|
||||
margin-left: 0.8em !important;
|
||||
margin-right: 0.4em !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
/* keep pop-up menus from overlapping with navbar */
|
||||
#widget-overflow { margin: 0 !important; }
|
||||
#appmenu-popup { margin: 0 !important; }
|
||||
#customizationui-widget-panel { margin: 0 !important; }
|
||||
#unified-extensions-panel { margin: 0 !important; }
|
||||
|
||||
/* --- Unified extensions button -------------------- */
|
||||
|
||||
/* make extension icons smaller */
|
||||
#unified-extensions-view {
|
||||
--uei-icon-size: 18px;
|
||||
}
|
||||
|
||||
/* hide bloat */
|
||||
.unified-extensions-item-message-deck,
|
||||
#unified-extensions-view > .panel-header,
|
||||
#unified-extensions-view > toolbarseparator,
|
||||
#unified-extensions-manage-extensions {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* add 3px padding on the top and the bottom of the box */
|
||||
.panel-subview-body {
|
||||
padding: 3px 0px !important;
|
||||
}
|
||||
|
||||
#unified-extensions-view .unified-extensions-item-menu-button {
|
||||
margin-inline-end: 0 !important;
|
||||
}
|
||||
|
||||
#unified-extensions-view .toolbarbutton-icon {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.unified-extensions-item-contents {
|
||||
line-height: 1 !important;
|
||||
white-space: nowrap !important;
|
||||
}
|
||||
|
||||
/* --- Debloat URL bar ------------------------------- */
|
||||
|
||||
#identity-box { display: none; }
|
||||
#pageActionButton { display: none; }
|
||||
#pocket-button { display: none; }
|
||||
#urlbar-zoom-button { display: none; }
|
||||
#tracking-protection-icon-container { display: none !important; }
|
||||
#reader-mode-button{ display: none !important; }
|
||||
#star-button { display: none; }
|
||||
#star-button-box:hover { background: inherit !important; }
|
||||
|
||||
/* Go to arrow button at the end of the urlbar when searching */
|
||||
#urlbar-go-button { display: none; }
|
||||
|
||||
/* remove container indicator from urlbar */
|
||||
#userContext-label, #userContext-indicator { display: none !important;}
|
||||
|
||||
/* --- Style tab toolbar ---------------------------- */
|
||||
|
||||
#titlebar {
|
||||
--proton-tab-block-margin: 0px !important;
|
||||
--tab-block-margin: 0px !important;
|
||||
}
|
||||
|
||||
#TabsToolbar, .tabbrowser-tab {
|
||||
max-height: var(--tab-min-height) !important;
|
||||
font-size: 14px !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
/* Change color of normal tabs */
|
||||
tab:not([selected="true"]) {
|
||||
background-color: var(--tab-inactive-bg-color) !important;
|
||||
color: var(--identity-icon-color, var(--tab-inactive-fg-fallback-color)) !important;
|
||||
}
|
||||
|
||||
tab {
|
||||
font-family: var(--tab-font, monospace);
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
/* safari style tab width */
|
||||
.tabbrowser-tab[fadein] {
|
||||
max-width: 100vw !important;
|
||||
border: none
|
||||
}
|
||||
|
||||
/* Hide close button on tabs */
|
||||
#tabbrowser-tabs .tabbrowser-tab .tab-close-button { display: none !important; }
|
||||
|
||||
.tabbrowser-tab {
|
||||
/* remove border between tabs */
|
||||
padding-inline: 0px !important;
|
||||
/* reduce fade effect of tab text */
|
||||
--tab-label-mask-size: 1em !important;
|
||||
/* fix pinned tab behaviour on overflow */
|
||||
overflow-clip-margin: 0px !important;
|
||||
}
|
||||
|
||||
/* Tab: selected colors */
|
||||
#tabbrowser-tabs .tabbrowser-tab[selected] .tab-content {
|
||||
background: var(--tab-active-bg-color) !important;
|
||||
color: var(--identity-icon-color, var(--tab-active-fg-fallback-color)) !important;
|
||||
}
|
||||
|
||||
/* Tab: hovered colors */
|
||||
#tabbrowser-tabs .tabbrowser-tab:hover:not([selected]) .tab-content {
|
||||
background: var(--tab-hover-bg-color) !important;
|
||||
}
|
||||
|
||||
/* hide window controls */
|
||||
.titlebar-buttonbox-container { display: none; }
|
||||
|
||||
/* remove titlebar spacers */
|
||||
.titlebar-spacer { display: none !important; }
|
||||
|
||||
/* disable tab shadow */
|
||||
#tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
/* remove dark space between pinned tab and first non-pinned tab */
|
||||
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) >
|
||||
#tabbrowser-arrowscrollbox >
|
||||
.tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) {
|
||||
margin-inline-start: 0px !important;
|
||||
}
|
||||
|
||||
/* remove dropdown menu button which displays all tabs on overflow */
|
||||
#alltabs-button { display: none !important }
|
||||
|
||||
/* fix displaying of pinned tabs on overflow */
|
||||
#tabbrowser-tabs:not([secondarytext-unsupported]) .tab-label-container {
|
||||
height: var(--tab-min-height) !important;
|
||||
}
|
||||
|
||||
/* remove overflow scroll buttons */
|
||||
#scrollbutton-up, #scrollbutton-down { display: none !important; }
|
||||
|
||||
/* remove new tab button */
|
||||
#tabs-newtab-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* --- Autohide Navbar ------------------------------ */
|
||||
|
||||
/* hide navbar unless focused */
|
||||
#nav-bar {
|
||||
min-height: 0 !important;
|
||||
max-height: 0 !important;
|
||||
height: 0 !important;
|
||||
--moz-transform: scaleY(0) !important;
|
||||
transform: scaleY(0) !important;
|
||||
}
|
||||
|
||||
/* show on focus */
|
||||
#nav-bar:focus-within {
|
||||
--moz-transform: scale(1) !important;
|
||||
transform: scale(1) !important;
|
||||
max-height: var(--urlbar-height-setting) !important;
|
||||
height: var(--urlbar-height-setting) !important;
|
||||
min-height: var(--urlbar-height-setting) !important;
|
||||
}
|
||||
|
||||
#navigator-toolbox:focus-within > .browser-toolbar {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* --- Hide tab bar on single tab ------------------- */
|
||||
|
||||
#tabbrowser-tabs .tabbrowser-tab:only-of-type,
|
||||
#tabbrowser-tabs .tabbrowser-tab:only-of-type + #tabbrowser-arrowscrollbox-periphery{
|
||||
display:none !important;
|
||||
}
|
||||
#tabbrowser-tabs, #tabbrowser-arrowscrollbox {min-height:0!important;}
|
||||
#alltabs-button {display:none !important;}
|
||||
|
||||
/* --- Prevent tab folding -------------------------- */
|
||||
|
||||
.tabbrowser-tab {
|
||||
min-width: initial !important;
|
||||
}
|
||||
.tab-content {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
'';
|
||||
in {
|
||||
# Enable Librewolf and extensions
|
||||
programs.firefox = let
|
||||
commonExtensions = with config.nur.repos.rycee.firefox-addons; [
|
||||
ublock-origin
|
||||
bitwarden
|
||||
darkreader
|
||||
sponsorblock
|
||||
return-youtube-dislikes
|
||||
no-pdf-download
|
||||
];
|
||||
commonSearch = {
|
||||
force = true;
|
||||
default = "Google";
|
||||
engines = {
|
||||
"Google" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.google.com/search";
|
||||
params = [
|
||||
{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = ["@g"];
|
||||
};
|
||||
"NixPKGs" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{
|
||||
name = "type";
|
||||
value = "packages";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@pkgs"];
|
||||
};
|
||||
};
|
||||
};
|
||||
commonSettings = {
|
||||
"font.name.serif.x-western" = "${fonts.main}";
|
||||
"font.name.sans-serif.x-western" = "${fonts.main}";
|
||||
"font.name.monospace.x-western" = "${fonts.nerd}";
|
||||
"general.autoScroll" = true;
|
||||
"browser.compactmode.show" = true;
|
||||
"browser.uidensity" = 1;
|
||||
"browser.startup.page" = 3;
|
||||
"extensions.pocket.enabled" = false;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"privacy.userContext.newTabContainerOnLeftClick.enabled" = true;
|
||||
"privacy.clearOnShutdown.history" = false;
|
||||
"privacy.clearOnShutdown.cookies" = false;
|
||||
"browser.toolbars.bookmarks.visibility" = "never";
|
||||
"media.hardware-video-decoding.force-enabled" = true;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
"toolkit.tabbox.switchByScrolling" = true;
|
||||
"device.sensors.motion.enabled" = false;
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
"gnomeTheme.hideSingleTab" = true;
|
||||
"browser.contentblocking.category" = "strict";
|
||||
"urlclassifier.trackingSkipURLs" = "*.reddit.com, *.twitter.com, *.twimg.com, *.tiktok.com";
|
||||
"urlclassifier.features.socialtracking.skipURLs" = "*.instagram.com, *.twitter.com, *.twimg.com";
|
||||
"network.cookie.sameSite.noneRequiresSecure" = true;
|
||||
"browser.helperApps.deleteTempFileOnExit" = true;
|
||||
"privacy.globalprivacycontrol.enabled" = true;
|
||||
"privacy.globalprivacycontrol.functionality.enabled" = true;
|
||||
#"webgl.disabled" = false;
|
||||
};
|
||||
in {
|
||||
enable = true;
|
||||
package = pkgs.librewolf;
|
||||
profiles = {
|
||||
Jimbo = {
|
||||
id = 0;
|
||||
extensions = commonExtensions;
|
||||
search = commonSearch;
|
||||
settings = commonSettings;
|
||||
userChrome = ''
|
||||
${themeJim}
|
||||
${quteFoxCSS}
|
||||
'';
|
||||
};
|
||||
Alt = {
|
||||
id = 1;
|
||||
extensions = commonExtensions;
|
||||
search = commonSearch;
|
||||
settings = commonSettings;
|
||||
userChrome = ''
|
||||
${themeAlt}
|
||||
${quteFoxCSS}
|
||||
'';
|
||||
};
|
||||
Misc = {
|
||||
id = 2;
|
||||
extensions = commonExtensions;
|
||||
search = commonSearch;
|
||||
settings = commonSettings;
|
||||
containersForce = true;
|
||||
containers = {
|
||||
Google = {
|
||||
color = "green";
|
||||
icon = "fingerprint";
|
||||
id = 200;
|
||||
};
|
||||
Seneca = {
|
||||
color = "red";
|
||||
icon = "briefcase";
|
||||
id = 201;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Fixes
|
||||
home.file = {
|
||||
# Symlinks to Librewolf
|
||||
".librewolf".source = config.lib.file.mkOutOfStoreSymlink "/home/jimbo/.mozilla/firefox";
|
||||
|
||||
# Gnome theme
|
||||
".mozilla/firefox/Misc/chrome".source = "${fetchTarball {
|
||||
url = "https://github.com/rafaelmardojai/firefox-gnome-theme/archive/refs/tags/v129.zip";
|
||||
sha256 = "14x0vp66i8b14q6c9n75sa88fcwy9jd9lik8sjnab2rnwlskvq9h";
|
||||
}}";
|
||||
};
|
||||
}
|
32
home-manager/guiapps/mangohud.nix
Normal file
32
home-manager/guiapps/mangohud.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{pkgs, ...}: {
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
mangohud
|
||||
];
|
||||
file = let
|
||||
# Mangohud config file
|
||||
mangoConf = ''
|
||||
table_columns=2
|
||||
frametime=0
|
||||
legacy_layout=0
|
||||
font_scale=0.80
|
||||
background_alpha=0.25
|
||||
|
||||
# Set the loads and such
|
||||
exec=echo $(echo $XDG_CURRENT_DESKTOP | sed 's/./\U&/') on $(cat /etc/os-release | grep PRETTY_NAME | cut -d '"' -f 2)
|
||||
fps
|
||||
fps_color_change
|
||||
ram
|
||||
vram
|
||||
cpu_stats
|
||||
cpu_load_change
|
||||
gpu_stats
|
||||
gpu_load_change
|
||||
frame_timing
|
||||
'';
|
||||
in {
|
||||
# Mangohud config
|
||||
".config/MangoHud/MangoHud.conf".text = mangoConf;
|
||||
};
|
||||
};
|
||||
}
|
11
home-manager/guiapps/mpv.nix
Normal file
11
home-manager/guiapps/mpv.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
# MPV settings
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
config = {
|
||||
volume = 55;
|
||||
loop-playlist = "inf";
|
||||
osc = "no";
|
||||
};
|
||||
};
|
||||
}
|
14
home-manager/guiapps/obs.nix
Normal file
14
home-manager/guiapps/obs.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
# OBS with plugins
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
obs-pipewire-audio-capture
|
||||
obs-webkitgtk
|
||||
obs-multi-rtmp
|
||||
obs-vkcapture
|
||||
obs-tuna
|
||||
looking-glass-obs
|
||||
];
|
||||
};
|
||||
}
|
61
home-manager/guiapps/pcmanfm-qt.nix
Normal file
61
home-manager/guiapps/pcmanfm-qt.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{pkgs, ...}: {
|
||||
# Swappy config file
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
pcmanfm-qt
|
||||
];
|
||||
file = let
|
||||
# File manager config
|
||||
pcmanConf = ''
|
||||
[Behavior]
|
||||
BookmarkOpenMethod=current_tab
|
||||
ConfirmDelete=true
|
||||
RecentFilesNumber=0
|
||||
|
||||
[Desktop]
|
||||
HideItems=false
|
||||
SortColumn=name
|
||||
SortFolderFirst=true
|
||||
SortHiddenLast=false
|
||||
SortOrder=ascending
|
||||
|
||||
[FolderView]
|
||||
Mode=icon
|
||||
ScrollPerPixel=true
|
||||
ShadowHidden=true
|
||||
ShowFilter=false
|
||||
ShowFullNames=true
|
||||
ShowHidden=true
|
||||
SortCaseSensitive=false
|
||||
SortColumn=mtime
|
||||
SortFolderFirst=true
|
||||
SortHiddenLast=false
|
||||
SortOrder=descending
|
||||
|
||||
[Places]
|
||||
HiddenPlaces=menu://applications/, network:///, computer:///, /home/jimbo/Desktop
|
||||
|
||||
[System]
|
||||
Archiver=file-roller
|
||||
Terminal=foot
|
||||
|
||||
[Thumbnail]
|
||||
MaxExternalThumbnailFileSize=-1
|
||||
MaxThumbnailFileSize=4096
|
||||
ShowThumbnails=true
|
||||
ThumbnailLocalFilesOnly=true
|
||||
|
||||
[Window]
|
||||
AlwaysShowTabs=false
|
||||
PathBarButtons=true
|
||||
ShowMenuBar=true
|
||||
ShowTabClose=true
|
||||
SwitchToNewTab=true
|
||||
TabPaths=@Invalid()
|
||||
'';
|
||||
in {
|
||||
# PCManFM config
|
||||
".config/pcmanfm-qt/default/settings.conf".text = pcmanConf;
|
||||
};
|
||||
};
|
||||
}
|
191
home-manager/guiapps/rofi.nix
Normal file
191
home-manager/guiapps/rofi.nix
Normal file
|
@ -0,0 +1,191 @@
|
|||
{pkgs, config, ...}: {
|
||||
# Enable Rofi
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
terminal = "foot";
|
||||
font = let
|
||||
fonts = import ../common/fonts.nix;
|
||||
in "${fonts.main} 14";
|
||||
theme = let
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
border = import ../common/border.nix;
|
||||
colors = import ../style/colors.nix;
|
||||
in {
|
||||
"*" = {
|
||||
lightbg = mkLiteral "#EEE8D5";
|
||||
lightfg = mkLiteral "#586875";
|
||||
blue = mkLiteral "#268BD2";
|
||||
red = mkLiteral "#DC322F";
|
||||
background-color = mkLiteral "#00000000";
|
||||
separatorcolor = mkLiteral "#00000000";
|
||||
normal-foreground = mkLiteral "#${colors.text}";
|
||||
normal-background = mkLiteral "#${colors.dark}1A";
|
||||
urgent-foreground = mkLiteral "#${colors.urgent}";
|
||||
active-foreground = mkLiteral "#${colors.split}";
|
||||
selected-active-foreground = mkLiteral "#${colors.prime}";
|
||||
background = mkLiteral "#${colors.dark}B3";
|
||||
bordercolor = mkLiteral "#${colors.prime}";
|
||||
selected-normal-foreground = mkLiteral "#FFFFFF";
|
||||
selected-normal-background = mkLiteral "#${colors.prime}80";
|
||||
border-color = mkLiteral "#${colors.prime}";
|
||||
urgent-background = mkLiteral "#${colors.accent}26";
|
||||
active-background = mkLiteral "#${colors.accent}26";
|
||||
selected-active-background = mkLiteral "#${colors.split}54";
|
||||
};
|
||||
"#window" = {
|
||||
background-color = mkLiteral "@background";
|
||||
width = 500;
|
||||
border = mkLiteral "${border.weight}";
|
||||
padding = 5;
|
||||
};
|
||||
"#message" = {
|
||||
border = mkLiteral "1px dash 0px 0px";
|
||||
border-color = mkLiteral "@separatorcolor";
|
||||
padding = 1;
|
||||
};
|
||||
"#textbox" = {
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
"#listview" = {
|
||||
fixed-height = 0;
|
||||
border-color = mkLiteral "@separatorcolor";
|
||||
scrollbar = mkLiteral "false";
|
||||
columns = 2;
|
||||
};
|
||||
"#element" = {
|
||||
border = 0;
|
||||
padding = 1;
|
||||
};
|
||||
"#element-text" = {
|
||||
background-color = mkLiteral "inherit";
|
||||
text-color = mkLiteral "inherit";
|
||||
};
|
||||
"#element.normal.normal" = {
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
"#element.normal.urgent" = {
|
||||
text-color = mkLiteral "@urgent-foreground";
|
||||
};
|
||||
"#element.normal.active" = {
|
||||
background-color = mkLiteral "@active-background";
|
||||
text-color = mkLiteral "@active-foreground";
|
||||
};
|
||||
"#element.selected.normal" = {
|
||||
background-color = mkLiteral "@selected-normal-background";
|
||||
text-color = mkLiteral "@selected-normal-foreground";
|
||||
};
|
||||
"#element.selected.urgent" = {
|
||||
background-color = mkLiteral "@urgent-background";
|
||||
text-color = mkLiteral "@urgent-foreground";
|
||||
};
|
||||
"#element.selected.active" = {
|
||||
background-color = mkLiteral "@selected-active-background";
|
||||
text-color = mkLiteral "@selected-active-foreground";
|
||||
};
|
||||
"#element.alternate.normal" = {
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
"#element.alternate.urgent" = {
|
||||
text-color = mkLiteral "@urgent-foreground";
|
||||
};
|
||||
"#element.alternate.active" = {
|
||||
background-color = mkLiteral "@active-background";
|
||||
text-color = mkLiteral "@active-foreground";
|
||||
};
|
||||
"#mode-switcher" = {
|
||||
border = mkLiteral "2px dash 0px 0px";
|
||||
border-color = mkLiteral "@separatorcolor";
|
||||
};
|
||||
"#button.selected" = {
|
||||
background-color = mkLiteral "@selected-normal-background";
|
||||
text-color = mkLiteral "@selected-normal-foreground";
|
||||
};
|
||||
"#case-indicator" = {
|
||||
spacing = mkLiteral "0";
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
"#entry" = {
|
||||
spacing = 0;
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
"#prompt" = {
|
||||
spacing = 0;
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
"#inputbar" = {
|
||||
spacing = 0;
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
padding = 1;
|
||||
children = map mkLiteral ["prompt" "textbox-prompt-colon" "entry"];
|
||||
};
|
||||
"#textbox-prompt-colon" = {
|
||||
expand = false;
|
||||
str = ":";
|
||||
margin = mkLiteral "0px 0.3em 0em 0em";
|
||||
text-color = mkLiteral "@normal-foreground";
|
||||
};
|
||||
};
|
||||
};
|
||||
home.packages = let
|
||||
# All my rofi scripts in one file
|
||||
rofiScripts = let
|
||||
displays = import ../common/displays.nix;
|
||||
in pkgs.writeScriptBin "rofiscripts" ''
|
||||
# Scratchpad function
|
||||
handle_scratchpads() {
|
||||
SCRATCHPADS=$(echo -e "Gotop\nMusic\nSound\nEasyEffects" | rofi -dmenu -i -p "Scratchpads")
|
||||
case $SCRATCHPADS in
|
||||
Gotop) foot -a gotop -T Gotop gotop;;
|
||||
Music) foot -a music -T Music ncmpcpp;;
|
||||
Sound) foot -a sound -T Sound pulsemixer;;
|
||||
EasyEffects) easyeffects;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Lock menu
|
||||
handle_power() {
|
||||
POWER=$(echo -e "Shutdown\nReboot\nSleep\nLock\nKill" | rofi -dmenu -i -p "Power")
|
||||
case $POWER in
|
||||
Shutdown) poweroff;;
|
||||
Reboot) reboot;;
|
||||
Sleep) swaylock --sleep &;;
|
||||
Lock) swaylock &;;
|
||||
Kill) pkill -9 sway;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Resolutions
|
||||
handle_resolutions() {
|
||||
RET=$(echo -e "Default\nWide\nGPU2" | rofi -dmenu -i -p "Resolutions")
|
||||
case $RET in
|
||||
Default) swaymsg reload ;;
|
||||
Wide) swaymsg "
|
||||
output ${displays.d1} enable pos 1680 0 mode 1680x1050@59.954Hz
|
||||
output ${displays.d2} enable pos 0 0 mode 1680x1050@59.954Hz
|
||||
output ${displays.d3} enable pos 3360 0 transform 0
|
||||
";;
|
||||
GPU2) swaymsg "
|
||||
output ${displays.d2} enable pos 1680 0 mode 1920x1080@60Hz
|
||||
output ${displays.d3} enable pos 0 0 transform 0
|
||||
";;
|
||||
esac
|
||||
}
|
||||
|
||||
# Check for command-line arguments
|
||||
if [ "$1" == "--scratchpads" ]; then
|
||||
handle_scratchpads
|
||||
elif [ "$1" == "--power" ]; then
|
||||
handle_power
|
||||
elif [ "$1" == "--resolutions" ]; then
|
||||
handle_resolutions
|
||||
else
|
||||
echo "Please use a valid argument."
|
||||
fi
|
||||
'';
|
||||
in with pkgs; [
|
||||
rofiScripts
|
||||
rofi-bluetooth
|
||||
bemoji
|
||||
];
|
||||
}
|
19
home-manager/guiapps/swappy.nix
Normal file
19
home-manager/guiapps/swappy.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{pkgs, ...}: {
|
||||
# Swappy config file
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
swappy
|
||||
];
|
||||
file = let
|
||||
# Swappy config, for screenshot editing
|
||||
swappyConfig = ''
|
||||
[Default]
|
||||
early_exit=true
|
||||
save_dir=$HOME/Pictures/Screenshots
|
||||
'';
|
||||
in {
|
||||
# Swappy's config
|
||||
".config/swappy/config".text = swappyConfig;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue