Updates
This commit is contained in:
parent
f0dd76f2fb
commit
64be233740
|
@ -1,6 +1,8 @@
|
||||||
# General
|
# General
|
||||||
alias ll="ls -lAFh --color"
|
alias ll="ls -lAFh --color"
|
||||||
alias dedup="awk '!visited[$0]++'"
|
alias dedup="awk '!visited[$0]++'"
|
||||||
|
alias dfh="df -h | grep -v '/var/lib/docker\|/snap/\|tmpfs'"
|
||||||
|
alias ,ssh-agent-forwarding="eval \`ssh-agent\` && ssh-add ~/.ssh/id_rsa"
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
alias ga="git add -u; git add .; git status -sb"
|
alias ga="git add -u; git add .; git status -sb"
|
||||||
|
@ -27,5 +29,6 @@ alias goi="go install ./..."
|
||||||
alias gg='rg -g "*.go"'
|
alias gg='rg -g "*.go"'
|
||||||
|
|
||||||
alias ytdl="youtube-dl -f 'bestvideo+bestaudio'"
|
alias ytdl="youtube-dl -f 'bestvideo+bestaudio'"
|
||||||
|
#alias ytdl="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]'"
|
||||||
alias cr="cargo run --quiet --"
|
alias cr="cargo run --quiet --"
|
||||||
|
|
||||||
|
|
|
@ -42,3 +42,5 @@ export PATH="$HOME/.local/bin:$PATH"
|
||||||
# Disable Ruby 2.7 deprecation warnings
|
# Disable Ruby 2.7 deprecation warnings
|
||||||
# export RUBYOPT='-W:no-deprecated -W:no-experimental'
|
# export RUBYOPT='-W:no-deprecated -W:no-experimental'
|
||||||
export RUBYOPT=
|
export RUBYOPT=
|
||||||
|
|
||||||
|
alias sysupdate="sudo pacman -Sy archlinux-keyring && sudo pacman -Su && PATH=/usr/bin:$PATH yay -Syu"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
#!/bin/bash
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
DISPLAY=:0.0 xset -q | grep -q "Monitor is Off"
|
||||||
|
echo $? > $HOME/.cache/node-exporter/display-standby-state
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
pactl unload-module 7
|
||||||
|
pactl unload-module 8
|
||||||
|
pactl set-card-profile 0 'output:iec958-stereo+input:iec958-stereo'
|
|
@ -14,3 +14,4 @@ vendor/gems
|
||||||
|
|
||||||
# VSCode
|
# VSCode
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
|
.vscode
|
||||||
|
|
|
@ -21,8 +21,8 @@ include @sysconfdir@/sway/config.d/*
|
||||||
include $HOME/.config/sway/config.d/*
|
include $HOME/.config/sway/config.d/*
|
||||||
|
|
||||||
# Color Scheme
|
# Color Scheme
|
||||||
include $HOME/.config/sway/themes/dracula2
|
# include $HOME/.config/sway/themes/dracula2
|
||||||
# include $HOME/.config/sway/themes/default
|
include $HOME/.config/sway/themes/default
|
||||||
|
|
||||||
exec wl-clipsync
|
exec wl-clipsync
|
||||||
exec mako
|
exec mako
|
||||||
|
|
|
@ -12,13 +12,13 @@ output "Unknown U2790B 0x000007CE" scale 1.5
|
||||||
# Office Dell 24"
|
# Office Dell 24"
|
||||||
# output "Dell Inc. DELL U2412M YPPY07AV1AHB" position 0 0
|
# output "Dell Inc. DELL U2412M YPPY07AV1AHB" position 0 0
|
||||||
output "Dell Inc. DELL U2421HE CD8LV83" position 0 0
|
output "Dell Inc. DELL U2421HE CD8LV83" position 0 0
|
||||||
|
|
||||||
# Office Dell 27" 1080p
|
# Office Dell 27" 1080p
|
||||||
output "Dell Inc. DELL P2719HC 6T1Y223" position 0 0
|
output "Dell Inc. DELL P2719HC 6T1Y223" position 0 0
|
||||||
|
|
||||||
# Maison n9 TV
|
|
||||||
output "Samsung Electric Company SAMSUNG 0x00000701" res 3840x2160 scale 2 position 0 0
|
|
||||||
|
|
||||||
# Current office 4K LG screen
|
# Current office 4K LG screen
|
||||||
output "LG Electronics LG HDR 4K 0x0000E7EC" position 0 0 scale 1.5 res 3840x2160
|
output "LG Electronics LG HDR 4K 0x0000E7EC" position 0 0 scale 1.5 res 3840x2160
|
||||||
|
|
||||||
|
# Maison n9 TV
|
||||||
|
output "Samsung Electric Company SAMSUNG 0x00000701" res 3840x2160 scale 2 position 0 0
|
||||||
|
# Dom Perignon TV
|
||||||
|
output "BenQ Corporation ZOWIE RL LCD 94H02169SL0" pos 4920 0 transform 270
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Autocutsel
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type = forking
|
||||||
|
Restart = on-failure
|
||||||
|
RestartSec = 10
|
||||||
|
ExecStartPre = /usr/bin/autocutsel -fork
|
||||||
|
ExecStart = /usr/bin/autocutsel -selection PRIMARY -fork
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Logs display standby state to a file
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=%h/dotfiles/bin/log-display-standby-state
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Log display standby state every minute
|
||||||
|
Requires=display-standby-state-logger.service
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
Unit=display-standby-state-logger.service
|
||||||
|
OnCalendar=*-*-* *:*:00
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Automatic display switch
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=display_switch
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
|
@ -3,9 +3,10 @@ Description=swayidle: Manages lockscreen and display
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/sbin/swayidle \
|
ExecStart=/sbin/swayidle \
|
||||||
timeout 300 /home/gregory/dotfiles/bin/screens-lock \
|
timeout 300 %h/dotfiles/bin/screens-lock \
|
||||||
timeout 10 /home/gregory/dotfiles/bin/screens-off \
|
timeout 60 %h/dotfiles/bin/screens-off \
|
||||||
resume /home/gregory/dotfiles/bin/screens-on
|
resume %h/dotfiles/bin/screens-on \
|
||||||
|
before-sleep %h/dotfiles/bin/screens-lock
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Description=wl-clipsync: Synchronizes primary and clipboard paste buffers
|
Description=wl-clipsync: Synchronizes primary and clipboard paste buffers
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/home/gregory/go/path/bin/wl-clipsync -i 300ms
|
ExecStart=%h/go/path/bin/wl-clipsync -i 300ms
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
Loading…
Reference in New Issue