This commit is contained in:
Tyler Starr 2023-01-14 12:54:09 -08:00
parent 9ef35aee1c
commit a2839ec0e8
10 changed files with 38 additions and 4 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
tmp=$(mktemp); xbps-query -m > ${tmp}; xilog | grep -f ${tmp}; /usr/bin/rm ${tmp}

View File

@ -0,0 +1,20 @@
#!/bin/sh
SCREEN_POS=$(swaymsg -t get_outputs \
| jq -r \
'.[] | select(.focused).rect | "\(.width)x\(.height)\\+\(.x)\\+\(.y)"')
# ripgrep
XWAYLAND_OUTPUT=$(xrandr | rg -oP "[A-Z]+[0-9]+(?= [a-z]+ $SCREEN_POS)")
MONITOR_ID=$(rofi --help | rg $XWAYLAND_OUTPUT -B1 \
| sed -sr '/ID/!d;s/[^:]*:\s([0-9])/\1/')
# GNU grep
#XWAYLAND_OUTPUT=$(xrandr | grep -oP "[A-Z]+[0-9]+(?= connected $SCREEN_POS)
#MONITOR_ID=$(rofi --help | grep $XWAYLAND_OUTPUT -B1 \
#| sed -sr '/ID/!d;s/[^:]*:\s([0-9])/\1/')
# stdin for dmenu mode
rofi -m $MONITOR_ID $@ </dev/stdin

View File

@ -149,6 +149,7 @@ mode layout {
bindsym j resize shrink height 50
bindsym k resize grow height 50
bindsym l resize grow width 50
bindsym e move position center
bindsym Escape mode default
}

View File

@ -34,5 +34,6 @@ return require('packer').startup(function(use)
use ('L3MON4D3/LuaSnip')
use ('saadparwaiz1/cmp_luasnip')
use ('alker0/chezmoi.vim')
use ('nathangrigg/vim-beancount')
end)

View File

@ -12,6 +12,6 @@ if test -z "${XDG_RUNTIME_DIR}"; then
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
#if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
# startx
#fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
startx
fi

View File

@ -119,6 +119,7 @@ alias ca="chezmoi apply"
# xbps
alias xi="sudo xbps-install"
alias xr="sudo xbps-remove"
alias xl="void-list-packages"
# trashcli
alias rm='echo "This is not the command you are looking for."; false'
@ -127,5 +128,6 @@ alias te='trash-empty'
alias tl='trash-list'
alias tre='trash-restore'
alias trm='trash-rm'
alias rofi='wayland-rofi'
export GPG_TTY=$(tty)

View File

@ -12,7 +12,7 @@
- xrandr # Primitive command line interface to RandR extension
- dunst # Lightweight and customizable notification daemon
- ffmpeg # Decoding, encoding and streaming software
- i3-gaps # Improved tiling window manager - i3 fork with more features
- i3 # Improved tiling window manager
- i3status # Status bar generator for i3bar, dzen2, xmobar or similar programs
- nitrogen # Background browser and setter for X with support for Xinerama
- nvidia # NVIDIA drivers for linux - Libraries and Utilities
@ -27,6 +27,7 @@
- clipmenu # Clipboard management using dmenu
- nerd-fonts # Iconic font aggregator, collection and patcher
- xdotool # Command-line X11 automation tool
- flameshot # Powerful yet simple to use screenshot software for GNU/Linux
state: present
become: true

View File

@ -7,6 +7,8 @@
- fd # Simple, fast and user-friendly alternative to find
- lazygit # Simple terminal UI for git commands
- ruby-tmuxinator # Create and manage complex tmux sessions easily
- python3-pipenv # Python Development Workflow for Humans
- python3-devel # Python programming language (3.11 series) - development files
state: present
become: true

View File

@ -38,6 +38,9 @@
- wget # GNU wget download utility
- NetworkManager # Network Management daemon
- network-manager-applet # NetworkManager panel applet for GNOME
- psensor # Graphical hardware temperature monitor for Linux
- upower # Abstraction for enumerating power devices
- android-udev-rules # Android udev rules list aimed to be the most comprehensive on the net
state: present
become: true

View File

@ -13,6 +13,7 @@
- khal # Command-line calendar build around CalDAV
- khard # Command-line addressbook built around CardDAV
- vdirsyncer # Synchronize calendars and addressbooks
- neofetch # Simple system information script
state: present
become: true