Compare commits
4 Commits
db852f5144
...
5fe3c435c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
5fe3c435c5
|
|||
|
7d8410f5ad
|
|||
|
9cb3239cfe
|
|||
|
0a7942333a
|
@ -6,12 +6,10 @@ general {
|
|||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
|
|
||||||
{% if hostname == "sputnik" %}
|
|
||||||
# make background transparent, used in combination with screenlock-video
|
# make background transparent, used in combination with screenlock-video
|
||||||
color = rgba(00000000)
|
#color = rgba(00000000)
|
||||||
{% else %}
|
|
||||||
path = ~/.config/wallpapers/6000x3376/akira.jpg
|
path = ~/.config/wallpapers/6000x3376/akira.jpg
|
||||||
{% end %}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input-field {
|
input-field {
|
||||||
|
|||||||
@ -29,16 +29,22 @@ input {
|
|||||||
{% end %}
|
{% end %}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clipboard {
|
||||||
|
disable-primary // disable middle-click paste
|
||||||
|
}
|
||||||
|
|
||||||
// https://gdthub.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
// https://gdthub.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
||||||
// `niri msg outputs`
|
// `niri msg outputs`
|
||||||
output "Microstep MSI MAG342CQR DB6H262101804" {
|
output "Microstep MSI MAG342CQR DB6H262101804" {
|
||||||
mode "3440x1440@144.000"
|
mode "3440x1440@144.000"
|
||||||
position x=1280 y=1440
|
position x=1024 y=1152 // x=1280 y=1440 // scaled by 1.25
|
||||||
|
scale 1.25
|
||||||
}
|
}
|
||||||
|
|
||||||
output "Dell Inc. DELL U2724DE 1MV5L04" {
|
output "Dell Inc. DELL U2724DE 1MV5L04" {
|
||||||
mode "2560x1440@120.000"
|
mode "2560x1440@120.000"
|
||||||
position x=0 y=0
|
position x=0 y=0
|
||||||
|
scale 1.25
|
||||||
}
|
}
|
||||||
|
|
||||||
output "eDP-1" {
|
output "eDP-1" {
|
||||||
|
|||||||
@ -682,6 +682,7 @@ alias xo = xdg-open
|
|||||||
source ~/.local/nu/readelf.nu
|
source ~/.local/nu/readelf.nu
|
||||||
source ~/.local/nu/mullvad.nu
|
source ~/.local/nu/mullvad.nu
|
||||||
source ~/.local/nu/git.nu
|
source ~/.local/nu/git.nu
|
||||||
|
source ~/.local/nu/tailscale.nu
|
||||||
{% if os == "darwin" %}
|
{% if os == "darwin" %}
|
||||||
source ~/.local/nu/macos.nu
|
source ~/.local/nu/macos.nu
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
{% if hostname == "sputnik" %}
|
{% if hostname == "sputnik" %}
|
||||||
lock '$HOME/.local/bin/screenlock-video'
|
lock '$HOME/.local/bin/screenlock'
|
||||||
{% else %}
|
{% else %}
|
||||||
lock '$HOME/.local/bin/screenlock'
|
lock '$HOME/.local/bin/screenlock'
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|||||||
31
tree/.local/nu/tailscale.nu
Normal file
31
tree/.local/nu/tailscale.nu
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
def "tailscale peer" [
|
||||||
|
hostname?: string
|
||||||
|
path?: cell-path
|
||||||
|
]: nothing -> any {
|
||||||
|
let path = ($path | default ([] | into cell-path))
|
||||||
|
|
||||||
|
let status = (^tailscale status --json | from json)
|
||||||
|
|
||||||
|
let peers = ($status | get Peer | transpose key fields | flatten fields)
|
||||||
|
|
||||||
|
let peers = ($peers | each { |peer|
|
||||||
|
let ipv4 = $peer.TailscaleIPs | where { |ip| "." in $ip } | first
|
||||||
|
let ipv6 = $peer.TailscaleIPs | where { |ip| ":" in $ip } | first
|
||||||
|
|
||||||
|
{
|
||||||
|
host: $peer.HostName,
|
||||||
|
ipv4: $ipv4,
|
||||||
|
ipv6: $ipv6,
|
||||||
|
online: $peer.Online,
|
||||||
|
active: $peer.Active,
|
||||||
|
rx: ($peer.RxBytes | into filesize),
|
||||||
|
tx: ($peer.TxBytes | into filesize),
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
if $hostname == null {
|
||||||
|
$peers
|
||||||
|
} else {
|
||||||
|
$peers | where host == $hostname | first | get $path
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user