❯ cat /etc/greetd/tuigreet_wrap.sh
#!/bin/bash
GPU=`asusctl graphics -g`
tuigreet /home/christoph/bin/sway --sessions /etc/greetd/tuigreet_sessions --time -i
❯ cat /etc/greetd/config.toml
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
# designating the VT.
vt = 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
### Display ### | |
# Which monitor should the notifications be displayed on. | |
monitor = 0 | |
# Display notification on focused monitor. Possible modes are: | |
# mouse: follow mouse pointer | |
# keyboard: follow window with keyboard focus | |
# none: don't follow anything |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Arbitrary but unique message id | |
msgId="991049" | |
# Change the volume using alsa(might differ if you use pulseaudio) | |
#amixer -c 0 set Master "$@" > /dev/null | |
if [[ $1 == "up" ]]; then | |
pamixer -i 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################### | |
# Christophs sway config | |
########################################################### | |
set $mod Mod4 | |
mouse_warping container | |
# Font | |
font pango:Monospace 12 |
On the Zephyrus G14 the gpu situation is as follows:
- HDMI port is wired to the iGPU (amd)
- USB-C Displayport is wired to the dGPU (nvidia)
Sway (wayland) now supports prime render offloading with nvidia 470 drivers however:
- Render offloading has a performance hit so not ideal for gaming
- Using the dGPU as primary doesn't work to my knowledge
- As such no usb-c -> displayport support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn=64*1; | |
function sumv(v,i,s=0) = (i<=s ? v[i] : v[i] + sumv(v,i-1,s)); | |
// (ugh, i'm using base 1 to make the UI readable and it's making me sad) | |
// Inner diameter #1 (mm). You can have up to 8 inner diameters in this pack; if you want fewer, just set the others to zero. | |
id1 = 2; | |
// Inner diameter #2 (mm). Zero to ignore. | |
id2 = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import re, argparse, sys, time | |
import shutil, os | |
from serial import Serial | |
# call like this ./serial_test.py /dev/ttyACM0 115200 labeloflog | |
# note: edit paths in script accordingly - could/should be cleaned up a bit | |
CLI_DELIMITER = '# ' |
This is a SCRIPT-8 cassette.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CMD_TO_RUN=$@ | |
DRY_RUN=0 | |
function printHelp { | |
echo "Utility to run games and applications in separate X on discrete Nvidia graphic card" | |
echo "Usage: " | |
echo "nvidia-xrun [<options>] [<app>]" | |
echo "Options: " | |
echo " -d Dry run - prints the final command but does not execute it" | |
} |
NewerOlder