feat: initial commit
This commit is contained in:
84
.config/kanshi/config
Normal file
84
.config/kanshi/config
Normal file
@@ -0,0 +1,84 @@
|
||||
# === Integrated ===
|
||||
|
||||
output "eDP-1" {
|
||||
alias $INTERNAL
|
||||
mode 1920x1080
|
||||
position 0,0
|
||||
}
|
||||
|
||||
# === Office ====
|
||||
|
||||
output "Dell Inc. DELL P2414H KKMMW62M0YKU" {
|
||||
alias $OFFICE_CENTER
|
||||
mode 1920x1080@60
|
||||
position 0,0
|
||||
}
|
||||
|
||||
output "Hewlett Packard LA2405 CN41150LLN" {
|
||||
alias $OFFICE_RIGHT
|
||||
mode 1920x1200@59.950
|
||||
position 1920,0
|
||||
}
|
||||
|
||||
# === Home ===
|
||||
|
||||
output "Iiyama North America PL2470H 0x30363738" {
|
||||
alias $HOME_LEFT
|
||||
mode 1920x1080@120
|
||||
position -1920,0
|
||||
}
|
||||
|
||||
output "AOC Q24G4 VH0R3HA002164" {
|
||||
alias $HOME_CENTER
|
||||
mode 2560x1440@120
|
||||
position 0,0
|
||||
scale 1.25
|
||||
}
|
||||
|
||||
output "Iiyama North America PL2470H 0x30363735" {
|
||||
alias $HOME_RIGHT
|
||||
mode 1920x1080@60
|
||||
position 2048,-235
|
||||
transform 270
|
||||
}
|
||||
|
||||
# ====================================================
|
||||
|
||||
profile Nomad {
|
||||
output $INTERNAL enable
|
||||
exec ~/.config/kanshi/lid.sh
|
||||
|
||||
exec tuned-adm profile balanced
|
||||
}
|
||||
|
||||
profile Home {
|
||||
output $INTERNAL disable
|
||||
|
||||
output $HOME_LEFT enable
|
||||
output $HOME_CENTER enable
|
||||
output $HOME_RIGHT enable
|
||||
|
||||
# Workspace 1 on left
|
||||
exec swaymsg workspace 1, move workspace to "'Iiyama North America PL2470H 0x30363738'"
|
||||
# Workspace 2 on center
|
||||
exec swaymsg workspace 2, move workspace to "'AOC Q24G4 VH0R3HA002164'"
|
||||
# Workspace 3 on right
|
||||
exec swaymsg workspace 3, move workspace to "'Iiyama North America PL2470H 0x30363735'"
|
||||
|
||||
exec tuned-adm profile throughput-performance
|
||||
}
|
||||
|
||||
profile Office {
|
||||
output $INTERNAL enable position -1920,0
|
||||
output $OFFICE_CENTER enable
|
||||
output $OFFICE_RIGHT enable
|
||||
|
||||
# Workspace 1 on left
|
||||
exec swaymsg workspace 1, move workspace to "eDP-1"
|
||||
# Workspace 2 on center
|
||||
exec swaymsg workspace 2, move workspace to "'Dell Inc. DELL P2414H KKMMW62M0YKU'"
|
||||
# Workspace 3 on right
|
||||
exec swaymsg workspace 3, move workspace to "'Hewlett Packard LA2405 CN41150LLN'"
|
||||
|
||||
exec tuned-adm profile throughput-performance
|
||||
}
|
||||
12
.config/kanshi/lid.sh
Executable file
12
.config/kanshi/lid.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
LAPTOP_OUTPUT="eDP-1"
|
||||
LID_STATE_FILE="/proc/acpi/button/lid/LID0/state"
|
||||
|
||||
read -r LS < "$LID_STATE_FILE"
|
||||
|
||||
case "$LS" in
|
||||
*open) swaymsg output "$LAPTOP_OUTPUT" enable ;;
|
||||
*closed) swaymsg output "$LAPTOP_OUTPUT" disable ;;
|
||||
*) echo "Could not get lid state" >&2 ; exit 1 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user