Compare commits

...

7 commits

Author SHA1 Message Date
Leonardo Eugênio 74624151b9 firefox: fix tab bar style on gnome 2024-08-19 11:51:40 -03:00
Leonardo Eugênio ab40423e4e gnome: don't hardcode qt program styles 2024-08-19 00:07:07 -03:00
Leonardo Eugênio b1f467866a gnome: use keepass as password manager 2024-08-19 00:07:07 -03:00
Leonardo Eugênio bc2ee9c165 scripts: fix pass-export TOTP containing too much information for keepassxc 2024-08-19 00:07:07 -03:00
Leonardo Eugênio 65bdab45c6 hardware: always enable powerplay led idle 2024-08-19 00:06:44 -03:00
Leonardo Eugênio 323e3cc7ce sway: fix mousepad led timeout 2024-08-17 18:05:39 -03:00
Leonardo Eugênio 113919f4b8 scripts: fixup infinite recursion and recompilations 2024-08-17 11:47:48 -03:00
21 changed files with 92 additions and 51 deletions

0
scripts/_diffr Normal file → Executable file
View file

0
scripts/_sway_idle_toggle Normal file → Executable file
View file

0
scripts/bmenu Normal file → Executable file
View file

0
scripts/br Normal file → Executable file
View file

View file

@ -1,34 +1,32 @@
(
final: prev:
with prev;
let
import_script = (_: path: import (path) { inherit pkgs lib; });
create_script = (
name: text: runtimeInputs:
let
script_body = pkgs.writeTextFile {
inherit name;
executable = true;
text = ''
${builtins.readFile text}
'';
};
in
(pkgs.writeShellApplication {
inherit name runtimeInputs;
text = ''exec ${script_body} "$@"'';
checkPhase = "";
})
);
create_scripts = lib.mapAttrs (name: deps: create_script name ./${name} deps);
lib = prev.lib;
pass = pkgs.pass.withExtensions (ex: with ex; [ pass-otp ]);
importScript = (_: path: import (path) { inherit (final) pkgs lib; });
wrapScript =
name: text: runtimeInputs:
final.runCommand name
{
nativeBuildInputs = [ final.makeWrapper ];
meta.mainProgram = name;
}
''
mkdir -p $out/bin
cp ${text} $out/bin/${name}
wrapProgram $out/bin/${name} \
--suffix PATH : ${lib.makeBinPath runtimeInputs}
'';
createScripts = lib.mapAttrs (name: deps: wrapScript name ./${name} deps);
myPass = final.pass.withExtensions (ex: with ex; [ pass-otp ]);
in
create_scripts {
with final;
createScripts {
br = [ ];
bmenu = [
final.bemenu
final.dhist
bemenu
dhist
fish
j4-dmenu-desktop
jq
@ -44,21 +42,21 @@
fish
];
_diffr = [ diffr ];
_thunar-terminal = [ final.terminal ];
_sway_idle_toggle = [ final.swayidle ];
_thunar-terminal = [ terminal ];
_sway_idle_toggle = [ swayidle ];
kak-pager = [
fish
final._diffr
_diffr
];
kak-man-pager = [ final.kak-pager ];
kak-man-pager = [ kak-pager ];
helix-pager = [
fish
final._diffr
_diffr
];
helix-man-pager = [ final.helix-pager ];
helix-man-pager = [ helix-pager ];
musmenu = [
mpc-cli
final.wdmenu
wdmenu
trash-cli
xdg-user-dirs
libnotify
@ -71,11 +69,12 @@
pass-export = [
pass2csv
gnupg
sd
];
wpass = [
final.wdmenu
wdmenu
fd
pass
myPass
sd
wl-clipboard
wtype
@ -96,7 +95,7 @@
pulse_sink = [
pulseaudio
pamixer
final.wdmenu
wdmenu
];
color_picker = [
grim
@ -108,13 +107,13 @@
dzadd = [
procps
libnotify
final.wdmenu
wdmenu
jq
mpv
pqiv
python3Packages.deemix
mpc-cli
final.mpdDup
mpdDup
];
mpdDup = [
mpc-cli
@ -128,15 +127,15 @@
auto_connect_gamepad = [
bluez
coreutils
final.gnugrep
gnugrep
];
powerplay-led-idle = [
final.bash
bash
libinput
libratbag
];
}
// lib.mapAttrs import_script {
// lib.mapAttrs importScript {
wdmenu = ./wdmenu.nix;
wlauncher = ./wlauncher.nix;
_gpg-unlock = ./_gpg-unlock.nix;

0
scripts/helix-pager Normal file → Executable file
View file

0
scripts/kak-pager Normal file → Executable file
View file

View file

@ -8,3 +8,6 @@ pass2csv "$PASSWORD_STORE_DIR" "$HOME/passwords.csv" \
-f User '(user|login)(:\s*)?' \
-f TOTP 'otpauth(:)?' \
-f URL 'url(:\s*)?'
# Fix TOTP format for keepass
sd '"//totp/.*?secret=(.*?)(&.*?)?"' '"$1"' "$HOME/passwords.csv"

0
scripts/playerctl-status Normal file → Executable file
View file

View file

@ -4,7 +4,7 @@ set -e
# Constants
SECONDS_UNTIL_FADE=$(( 1 * 60))
SECONDS_UNTIL_OFF=$(( 5 * 60))
SECONDS_UNTIL_OFF=$(( 6 * 60))
COLOR_ON=ff0000
COLOR_FADE=880000

0
scripts/pulse_sink Normal file → Executable file
View file

0
scripts/screenshotsh Normal file → Executable file
View file

0
scripts/showkeys Normal file → Executable file
View file

0
scripts/terminal Normal file → Executable file
View file

0
scripts/wl-copy-file Normal file → Executable file
View file

0
scripts/wpass Normal file → Executable file
View file

View file

@ -124,10 +124,53 @@ in
"devtools.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true;
};
userChrome = lib.mkIf (desktop == "sway") ''
#titlebar { display: none !important; }
#sidebar-header { display: none !important; }
'';
userChrome =
if desktop == "sway" then
''
#titlebar { display: none !important; }
#sidebar-header { display: none !important; }
''
else
''
/* Element | chrome://browser/content/browser.xhtml */
#navigator-toolbox {
display: grid;
grid-template-columns: 1fr 50px;
overflow: hidden;
}
/* Element | chrome://browser/content/browser.xhtml */
#nav-bar {
flex: 1;
width: 100%;
grid-column: 1 / 3;
grid-row: 1;
z-index: 0;
padding-right: 29px !important;
}
/* Element | chrome://browser/content/browser.xhtml */
.toolbar-items {
display: none;
}
/* Element | chrome://browser/content/browser.xhtml */
#TabsToolbar {
max-width: 50px;
}
/* Element | chrome://browser/content/browser.xhtml */
#titlebar {
max-width: 50px;
grid-area: 1 / 2;
z-index: 10;
}
'';
};
};
};

View file

@ -34,7 +34,7 @@ lib.mkIf (config.my.desktop == "gnome") {
foliate
amberol
pitivi
gnome-passwordsafe
keepassxc
libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum
@ -42,10 +42,6 @@ lib.mkIf (config.my.desktop == "gnome") {
qt6Packages.qtstyleplugin-kvantum
];
home.sessionVariables = {
QT_QPA_PLATFORMTHEME = "qt5ct";
};
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
xdg.defaultApplications = {

View file

@ -42,6 +42,7 @@
./xdg-dirs.nix
inputs.nix-index-database.hmModules.nix-index
../settings
./powerplay-led-idle.nix
];
my = import ./variables.nix;

View file

@ -11,7 +11,7 @@
Restart = "on-failure";
};
Install = {
WantedBy = [ "sway-session.target" ];
WantedBy = [ "graphical-session.target" ];
};
};
}

View file

@ -23,7 +23,6 @@ in
./swayidle.nix
./swaylock.nix
./theme.nix
./powerplay-led-idle.nix
];
config = lib.mkIf (config.my.desktop == "sway") {
services.mako.enable = true;