NixOS standardization

This commit is contained in:
agryphus 2023-10-13 03:44:45 -04:00
parent c66efc268c
commit f174299ffd
9 changed files with 16 additions and 11 deletions

View file

@ -22,6 +22,11 @@ eval $(gpg-agent --daemon)
export PATH="$PATH:~/.local/share/cargo/bin/"
export PATH="$PATH:$JAVA_HOME/bin/"
if [ ! -z "$(grep nixos /etc/os-release)" ]; then
# NixOS does not explicitly link usr local bin
# Yes I know I'm circumventing immutability.
export PATH=/usr/local/bin:$PATH
fi
export PATH=~/.local/bin/overrides:$PATH # Overriding /usr/bin/*
export PATH=~/.local/bin:$PATH # Highest precedence to local bin

View file

@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/usr/bin/env sh
# For the programs that create a ~/Downloads folder on startup (ie: spotify, zoom)
# Look in the program settings to redirect the Downloads folder before trying this solution
# Usage: 'dlkiller $my-program'

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
layout=`autorandr | rofi -dmenu -i -p "Select layout" | awk '{print $1}'`
autorandr $layout
feh --bg-scale --no-fehbg "$HOME/.config/wallpaper"

View file

@ -1,8 +1,8 @@
#!/usr/bin/sh
#!/usr/bin/env sh
# Script to have rofi show and run aliases
rofi -run-list-command "alias | awk -F= \"{print \\\$1}\"" \
-run-command "/usr/bin/zsh -i -c '{cmd}'" \
-run-command "/usr/bin/env zsh -i -c '{cmd}'" \
-rnow -show-icons -matching "prefix" \
-display-combi "Start" \
-show combi -combi-modes "drun,run"

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# Simple dmenu script for changing default audio sink
sinks_and_numbers=`wpctl status |

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# The famous "get a menu of emojis to copy" script.

View file

@ -5,13 +5,13 @@
case "$PINENTRY_USER_DATA" in
dmenu)
exec /usr/bin/pinentry-dmenu "$@"
exec pinentry-dmenu "$@"
;;
rofi)
exec /usr/bin/pinentry-rofi "$@"
exec pinentry-rofi "$@"
;;
*)
exec /usr/bin/pinentry-curses "$@"
exec pinentry-curses "$@"
;;
esac

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
# When I open an image from the file manager in nsxiv (the image viewer), I want
# to be able to press the next/previous keys to key through the rest of the

View file

@ -1,3 +1,3 @@
enable-ssh-support
pinentry-program /usr/bin/pinentry-wrapper
pinentry-program /usr/local/bin/pinentry-wrapper