Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
onny
wl-togglescreens
Commits
c51adec7
Commit
c51adec7
authored
Jan 26, 2022
by
onny
Browse files
fix build
parent
8b2c2016
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c51adec7
# wl-togglescreens
Script for toggle screen states on Wayland. If you invoke it, the script will
switch states between main and an external screen.
## Installation
flake.nix
View file @
c51adec7
...
...
@@ -13,18 +13,12 @@
version
=
"0.1"
;
src
=
self
;
buildInputs
=
[
python3
];
nativeBuildInputs
=
[
python3Packages
.
wrapPython
];
nativeBuildInputs
=
with
python3Packages
;
[
wrapPython
];
dontBuild
=
true
;
buildInputs
=
[
python
];
installPhase
=
''
install -
v
D
main
.py $out/bin/wl-togglescreen
s
install -D
wl-togglescreens
.py $out/bin/wl-togglescreen
''
;
postFixup
=
"
...
...
main
.py
→
wl-togglescreens
.py
100644 → 100755
View file @
c51adec7
#!/usr/bin/python
import
subprocess
import
re
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment