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: final: prev:
with prev;
let let
import_script = (_: path: import (path) { inherit pkgs lib; }); lib = prev.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);
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 in
create_scripts { with final;
createScripts {
br = [ ]; br = [ ];
bmenu = [ bmenu = [
final.bemenu bemenu
final.dhist dhist
fish fish
j4-dmenu-desktop j4-dmenu-desktop
jq jq
@ -44,21 +42,21 @@
fish fish
]; ];
_diffr = [ diffr ]; _diffr = [ diffr ];
_thunar-terminal = [ final.terminal ]; _thunar-terminal = [ terminal ];
_sway_idle_toggle = [ final.swayidle ]; _sway_idle_toggle = [ swayidle ];
kak-pager = [ kak-pager = [
fish fish
final._diffr _diffr
]; ];
kak-man-pager = [ final.kak-pager ]; kak-man-pager = [ kak-pager ];
helix-pager = [ helix-pager = [
fish fish
final._diffr _diffr
]; ];
helix-man-pager = [ final.helix-pager ]; helix-man-pager = [ helix-pager ];
musmenu = [ musmenu = [
mpc-cli mpc-cli
final.wdmenu wdmenu
trash-cli trash-cli
xdg-user-dirs xdg-user-dirs
libnotify libnotify
@ -71,11 +69,12 @@
pass-export = [ pass-export = [
pass2csv pass2csv
gnupg gnupg
sd
]; ];
wpass = [ wpass = [
final.wdmenu wdmenu
fd fd
pass myPass
sd sd
wl-clipboard wl-clipboard
wtype wtype
@ -96,7 +95,7 @@
pulse_sink = [ pulse_sink = [
pulseaudio pulseaudio
pamixer pamixer
final.wdmenu wdmenu
]; ];
color_picker = [ color_picker = [
grim grim
@ -108,13 +107,13 @@
dzadd = [ dzadd = [
procps procps
libnotify libnotify
final.wdmenu wdmenu
jq jq
mpv mpv
pqiv pqiv
python3Packages.deemix python3Packages.deemix
mpc-cli mpc-cli
final.mpdDup mpdDup
]; ];
mpdDup = [ mpdDup = [
mpc-cli mpc-cli
@ -128,15 +127,15 @@
auto_connect_gamepad = [ auto_connect_gamepad = [
bluez bluez
coreutils coreutils
final.gnugrep gnugrep
]; ];
powerplay-led-idle = [ powerplay-led-idle = [
final.bash bash
libinput libinput
libratbag libratbag
]; ];
} }
// lib.mapAttrs import_script { // lib.mapAttrs importScript {
wdmenu = ./wdmenu.nix; wdmenu = ./wdmenu.nix;
wlauncher = ./wlauncher.nix; wlauncher = ./wlauncher.nix;
_gpg-unlock = ./_gpg-unlock.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 User '(user|login)(:\s*)?' \
-f TOTP 'otpauth(:)?' \ -f TOTP 'otpauth(:)?' \
-f URL 'url(:\s*)?' -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 # Constants
SECONDS_UNTIL_FADE=$(( 1 * 60)) SECONDS_UNTIL_FADE=$(( 1 * 60))
SECONDS_UNTIL_OFF=$(( 5 * 60)) SECONDS_UNTIL_OFF=$(( 6 * 60))
COLOR_ON=ff0000 COLOR_ON=ff0000
COLOR_FADE=880000 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.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true; "devtools.debugger.remote-enabled" = true;
}; };
userChrome = lib.mkIf (desktop == "sway") '' userChrome =
#titlebar { display: none !important; } if desktop == "sway" then
#sidebar-header { display: none !important; } ''
''; #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 foliate
amberol amberol
pitivi pitivi
gnome-passwordsafe keepassxc
libsForQt5.qt5ct libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum libsForQt5.qtstyleplugin-kvantum
@ -42,10 +42,6 @@ lib.mkIf (config.my.desktop == "gnome") {
qt6Packages.qtstyleplugin-kvantum qt6Packages.qtstyleplugin-kvantum
]; ];
home.sessionVariables = {
QT_QPA_PLATFORMTHEME = "qt5ct";
};
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3; services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
xdg.defaultApplications = { xdg.defaultApplications = {

View file

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

View file

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

View file

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