1
0
Fork 0
This commit is contained in:
Gregory Eremin 2023-02-22 15:33:55 +01:00
parent f0dd76f2fb
commit 64be233740
14 changed files with 69 additions and 11 deletions

View File

@ -1,6 +1,8 @@
# General
alias ll="ls -lAFh --color"
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
alias ga="git add -u; git add .; git status -sb"
@ -27,5 +29,6 @@ alias goi="go install ./..."
alias gg='rg -g "*.go"'
alias ytdl="youtube-dl -f 'bestvideo+bestaudio'"
#alias ytdl="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]'"
alias cr="cargo run --quiet --"

View File

@ -42,3 +42,5 @@ export PATH="$HOME/.local/bin:$PATH"
# Disable Ruby 2.7 deprecation warnings
# export RUBYOPT='-W:no-deprecated -W:no-experimental'
export RUBYOPT=
alias sysupdate="sudo pacman -Sy archlinux-keyring && sudo pacman -Su && PATH=/usr/bin:$PATH yay -Syu"

1
bash/secrets.bash Normal file
View File

@ -0,0 +1 @@
#!/bin/bash

5
bin/log-display-standby-state Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
DISPLAY=:0.0 xset -q | grep -q "Monitor is Off"
echo $? > $HOME/.cache/node-exporter/display-standby-state

5
bin/pulseaudio-setup.sh Executable file
View File

@ -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'

View File

@ -14,3 +14,4 @@ vendor/gems
# VSCode
*.code-workspace
.vscode

View File

@ -21,8 +21,8 @@ include @sysconfdir@/sway/config.d/*
include $HOME/.config/sway/config.d/*
# Color Scheme
include $HOME/.config/sway/themes/dracula2
# include $HOME/.config/sway/themes/default
# include $HOME/.config/sway/themes/dracula2
include $HOME/.config/sway/themes/default
exec wl-clipsync
exec mako

View File

@ -12,13 +12,13 @@ output "Unknown U2790B 0x000007CE" scale 1.5
# Office Dell 24"
# output "Dell Inc. DELL U2412M YPPY07AV1AHB" position 0 0
output "Dell Inc. DELL U2421HE CD8LV83" position 0 0
# Office Dell 27" 1080p
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
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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Automatic display switch
[Service]
ExecStart=display_switch
[Install]
WantedBy=default.target

View File

@ -3,9 +3,10 @@ Description=swayidle: Manages lockscreen and display
[Service]
ExecStart=/sbin/swayidle \
timeout 300 /home/gregory/dotfiles/bin/screens-lock \
timeout 10 /home/gregory/dotfiles/bin/screens-off \
resume /home/gregory/dotfiles/bin/screens-on
timeout 300 %h/dotfiles/bin/screens-lock \
timeout 60 %h/dotfiles/bin/screens-off \
resume %h/dotfiles/bin/screens-on \
before-sleep %h/dotfiles/bin/screens-lock
[Install]
WantedBy=default.target

View File

@ -2,7 +2,7 @@
Description=wl-clipsync: Synchronizes primary and clipboard paste buffers
[Service]
ExecStart=/home/gregory/go/path/bin/wl-clipsync -i 300ms
ExecStart=%h/go/path/bin/wl-clipsync -i 300ms
[Install]
WantedBy=default.target