NixOS standardization
This commit is contained in:
parent
c66efc268c
commit
f174299ffd
9 changed files with 16 additions and 11 deletions
|
|
@ -22,6 +22,11 @@ eval $(gpg-agent --daemon)
|
||||||
export PATH="$PATH:~/.local/share/cargo/bin/"
|
export PATH="$PATH:~/.local/share/cargo/bin/"
|
||||||
export PATH="$PATH:$JAVA_HOME/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/overrides:$PATH # Overriding /usr/bin/*
|
||||||
export PATH=~/.local/bin:$PATH # Highest precedence to local bin
|
export PATH=~/.local/bin:$PATH # Highest precedence to local bin
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/env sh
|
||||||
# For the programs that create a ~/Downloads folder on startup (ie: spotify, zoom)
|
# 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
|
# Look in the program settings to redirect the Downloads folder before trying this solution
|
||||||
# Usage: 'dlkiller $my-program'
|
# Usage: 'dlkiller $my-program'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
layout=`autorandr | rofi -dmenu -i -p "Select layout" | awk '{print $1}'`
|
layout=`autorandr | rofi -dmenu -i -p "Select layout" | awk '{print $1}'`
|
||||||
autorandr $layout
|
autorandr $layout
|
||||||
feh --bg-scale --no-fehbg "$HOME/.config/wallpaper"
|
feh --bg-scale --no-fehbg "$HOME/.config/wallpaper"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/env sh
|
||||||
# Script to have rofi show and run aliases
|
# Script to have rofi show and run aliases
|
||||||
|
|
||||||
rofi -run-list-command "alias | awk -F= \"{print \\\$1}\"" \
|
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" \
|
-rnow -show-icons -matching "prefix" \
|
||||||
-display-combi "Start" \
|
-display-combi "Start" \
|
||||||
-show combi -combi-modes "drun,run"
|
-show combi -combi-modes "drun,run"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
# Simple dmenu script for changing default audio sink
|
# Simple dmenu script for changing default audio sink
|
||||||
|
|
||||||
sinks_and_numbers=`wpctl status |
|
sinks_and_numbers=`wpctl status |
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# The famous "get a menu of emojis to copy" script.
|
# The famous "get a menu of emojis to copy" script.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,13 @@
|
||||||
|
|
||||||
case "$PINENTRY_USER_DATA" in
|
case "$PINENTRY_USER_DATA" in
|
||||||
dmenu)
|
dmenu)
|
||||||
exec /usr/bin/pinentry-dmenu "$@"
|
exec pinentry-dmenu "$@"
|
||||||
;;
|
;;
|
||||||
rofi)
|
rofi)
|
||||||
exec /usr/bin/pinentry-rofi "$@"
|
exec pinentry-rofi "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exec /usr/bin/pinentry-curses "$@"
|
exec pinentry-curses "$@"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
# 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
|
# to be able to press the next/previous keys to key through the rest of the
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
enable-ssh-support
|
enable-ssh-support
|
||||||
pinentry-program /usr/bin/pinentry-wrapper
|
pinentry-program /usr/local/bin/pinentry-wrapper
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue