alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
remove otpmenu in favor of passmenu
author
lassulus
date
1 year ago
(Jun 5, 2025, 4:18 PM CEST)
commit
f66eefa7
f66eefa76c5f04a65e72b85bc497b716a352c8d7
parent
fd01cf6f
fd01cf6f0c316afd2ee51a08e99929b7387ae424
+2
-20
5 changed files
Expand all
Collapse all
Unified
Split
2configs
desktops
lib
wayland.nix
qtile
qtile.py
sway
default.nix
xmonad
default.nix
5pkgs
otpmenu
default.nix
-11
5pkgs/otpmenu/default.nix
Reviewed
···
1
1
-
{ pkgs }:
2
2
-
pkgs.writers.writeDashBin "otpmenu" ''
3
3
-
set -efux
4
4
-
x=$(${pkgs.pass}/bin/pass git ls-files '*/otp.gpg' \
5
5
-
| ${pkgs.gnused}/bin/sed 's:/otp\.gpg$::' \
6
6
-
| ${pkgs.rofi}/bin/rofi -dmenu
7
7
-
)
8
8
-
9
9
-
otp=$(${(pkgs.pass.withExtensions (ext: [ ext.pass-otp ]))}/bin/pass otp code "$x/otp")
10
10
-
printf %s "$otp" | ${pkgs.wtype}/bin/wtype -d 10 -s 200 - || printf %s "$otp" | ${pkgs.xdotool}/bin/xdotool type -f -
11
11
-
''
-1
2configs/desktops/lib/wayland.nix
View file
Reviewed
···
105
105
106
106
# gtk3 themes
107
107
gsettings-desktop-schemas
108
108
-
self.packages.${pkgs.system}.otpmenu
109
108
(pkgs.writers.writeDashBin "pass_menu" ''
110
109
set -efux
111
110
password=$(
-1
2configs/desktops/qtile/qtile.py
View file
Reviewed
···
148
148
Key([mod], "i", lazy.spawn("screenshot")),
149
149
Key([mod], "p", lazy.spawn("passmenu")),
150
150
Key([mod], "Insert", lazy.spawn("type_paste")),
151
151
-
Key([mod, "shift"], "p", lazy.spawn("otpmenu")),
152
151
Key([mod], "v", goto_workspace, desc="Switch to group"),
153
152
Key([mod, "shift"], "v", moveto_workspace, desc="move window to group"),
154
153
Key(
+1
-4
2configs/desktops/sway/default.nix
View file
Reviewed
···
241
241
tr -d '\n' |
242
242
${pkgs.wtype}/bin/wtype -s 1 -
243
243
''}
244
244
-
bindsym $mod+Shift+p exec ${pkgs.writers.writeDash "otpmenu" ''
245
245
-
unset TERM
246
246
-
${pkgs.otpmenu}/bin/otpmenu
247
247
-
''}
244
244
+
248
245
249
246
# screenlock
250
247
bindsym $mod+F11 exec ${pkgs.swaylock}/bin/swaylock -f -c 000000
+1
-3
2configs/desktops/xmonad/default.nix
View file
Reviewed
···
127
127
128
128
myKeyMap :: [([Char], X ())]
129
129
myKeyMap =
130
130
-
[ ("M4-p", forkFile "${pkgs.writers.writeDash "passmenu-wrapped" ''
130
130
+
[ ("M4-p", forkFile "${pkgs.writers.writeDashBin "passmenu" ''
131
131
set -efux
132
132
export TERM=dumb
133
133
${pkgs.pass}/bin/passmenu --type
134
134
''}" [] Nothing)
135
135
-
136
136
-
, ("M4-S-p", forkFile "${self.packages.${pkgs.system}.otpmenu}/bin/otpmenu" [] Nothing)
137
135
138
136
, ("M4-S-q", restart "xmonad" True)
139
137