Compare commits
2 Commits
7759241d99
...
ec6a7979de
Author | SHA1 | Date |
---|---|---|
randomuser | ec6a7979de | |
randomuser | fa17d83cb2 |
|
@ -53,22 +53,24 @@ case "$(hostname)" in
|
|||
"mlg")
|
||||
case "$1" in
|
||||
"invert")
|
||||
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
|
||||
xrandr \
|
||||
--output HDMI-0 --mode 1920x1080 --pos 3840x0 --rotate right --rate 60 \
|
||||
--output DP-0 --off \
|
||||
--output DP-1-1 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \
|
||||
--output DP-1-2 --mode 1920x1080 --pos 0x0 --rotate right --rate 60
|
||||
--output DP-1-2 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \
|
||||
--output DP-1-1 --mode 1920x1080 --pos 1920x352 --rotate normal --rate 180
|
||||
bspc monitor DP-1-2 -d 1 3 5 7
|
||||
bspc monitor DP-1-1 -d 2 4 6 8
|
||||
bspc monitor DP-1-2 -d 9
|
||||
bspc monitor HDMI-0 -d 1 3 5 7
|
||||
bspc monitor HDMI-0 -d 9
|
||||
;;
|
||||
*)
|
||||
xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --rate 120 \
|
||||
xrandr \
|
||||
--output HDMI-0 --mode 1920x1080 --pos 3840x0 --rotate right --rate 60 \
|
||||
--output DP-0 --off \
|
||||
--output DP-1-2 --mode 1920x1080 --pos 3000x420 --rotate normal --rate 120 \
|
||||
--output DP-1-1 --mode 1920x1080 --pos 0x0 --rotate right --rate 60
|
||||
--output DP-1-1 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \
|
||||
--output DP-1-2 --mode 1920x1080 --pos 1920x352 --rotate normal --rate 180
|
||||
bspc monitor DP-1-1 -d 1 3 5 7
|
||||
bspc monitor DP-1-2 -d 2 4 6 8
|
||||
bspc monitor DP-1-1 -d 9
|
||||
bspc monitor HDMI-0 -d 1 3 5 7
|
||||
bspc monitor HDMI-0 -d 9
|
||||
;;
|
||||
esac
|
||||
xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1
|
||||
|
@ -82,10 +84,10 @@ case "$(hostname)" in
|
|||
sshfs usr@192.168.1.120:/home/usr/doc $HOME/.cache/mount_point
|
||||
ln -sf $HOME/.cache/mount_point $HOME/doc
|
||||
|
||||
rm $HOME/dot_testing # this is also safe. see above
|
||||
mkdir -p $HOME/.cache/mount_point2
|
||||
sshfs usr@192.168.1.120:/home/usr/dot_testing $HOME/.cache/mount_point2
|
||||
ln -sf $HOME/.cache/mount_point2 $HOME/dot_testing
|
||||
rm $HOME/.thunderbird
|
||||
mkdir -p $HOME/.cache/mount_point3
|
||||
sshfs usr@192.168.1.120:/home/usr/.thunderbird $HOME/.cache/mount_point3
|
||||
ln -sf $HOME/.cache/mount_point3 $HOME/.thunderbird
|
||||
|
||||
;;
|
||||
"x230t")
|
||||
|
|
|
@ -1,16 +1,23 @@
|
|||
{ lib, config, pkgs, ...}:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
xclip
|
||||
xcape
|
||||
xscreensaver
|
||||
mpv
|
||||
sxiv
|
||||
xwallpaper
|
||||
xbrightness
|
||||
xdotool
|
||||
|
||||
brave
|
||||
let
|
||||
plib = import ../lib { inherit pkgs; };
|
||||
in {
|
||||
home.packages = [
|
||||
pkgs.xclip
|
||||
pkgs.xcape
|
||||
pkgs.xscreensaver
|
||||
pkgs.mpv
|
||||
pkgs.sxiv
|
||||
pkgs.xwallpaper
|
||||
pkgs.xbrightness
|
||||
pkgs.xdotool
|
||||
] ++ [
|
||||
(plib.mkPackageWrapper
|
||||
pkgs.brave
|
||||
"export HOME=$HOME/.cache/brave"
|
||||
""
|
||||
"--args --disable-frame-rate-limit"
|
||||
)
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
let
|
||||
getPkgName =
|
||||
pkg:
|
||||
builtins.elemAt (builtins.split "-" pkg.name) 0;
|
||||
in {
|
||||
mkPackageWrapper =
|
||||
pkg:
|
||||
environ:
|
||||
prefix:
|
||||
postfix:
|
||||
pkgs.writeScriptBin
|
||||
(getPkgName pkg)
|
||||
''
|
||||
#! ${pkgs.bash}/bin/bash
|
||||
${environ}
|
||||
exec ${prefix} ${pkg}/bin/${getPkgName pkg} ${postfix} "$@"
|
||||
'';
|
||||
mkQuarantinedPackage =
|
||||
pkg:
|
||||
pkgs.writeScriptBin
|
||||
(getPkgName pkg)
|
||||
''
|
||||
#! ${pkgs.bash}/bin/bash
|
||||
export HOME=$HOME/.local/${getPkgName pkg}
|
||||
exec ${pkg}/bin/${getPkgName pkg}
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue