Initial commit

This commit is contained in:
Oystein Kristoffer Tveit 2021-02-06 23:41:32 +01:00
commit 0631809876
9 changed files with 729 additions and 0 deletions

0
README.md Normal file
View File

86
general/.aliases Executable file
View File

@ -0,0 +1,86 @@
#!/usr/bin/env bash
# ░█▀█░█▀▄░█▀█░█▀▀░█▀▄░█▀█░█▄█░█▀▀
# ░█▀▀░█▀▄░█░█░█░█░█▀▄░█▀█░█░█░▀▀█
# ░▀░░░▀░▀░▀▀▀░▀▀▀░▀░▀░▀░▀░▀░▀░▀▀▀
alias m="ncmpcpp"
alias vim="nvim"
alias p="ipython"
alias dp="python ~/.scripts/dropbox.py"
# ░█▀▀░█▀█░█░░░█▀█░█▀▄
# ░█░░░█░█░█░░░█░█░█▀▄
# ░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀
# alias ls='ls --group-directories-first --color=auto'
# alias ll='ls -alFh --group-directories-first --color=auto'
# alias la='ls -A --group-directories-first --color=auto -F'
alias ls='exa'
alias ll='exa --long --header --git'
alias sl='exa -a --long --header --git'
alias la='exa -a'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# ░█▄█░▀█▀░█▀▀░█▀▀
# ░█░█░░█░░▀▀█░█░░
# ░▀░▀░▀▀▀░▀▀▀░▀▀▀
# Cd to git folder
alias gt="cd ~/git"
# Make ftp server
alias makeftp="python -m pyftpdlib --directory=$HOME/ --port=2121"
# Get current Fcitx mode
alias getFcitxMod='qdbus "org.fcitx.Fcitx" "/inputmethod" "GetCurrentIM"'
alias youtube-dl-list='youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s" -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio"'
cfile() {
nvim $($HOME/.scripts/rofi/config-selector.py)
}
alias tangleDoomEmacs="cd $HOME/.doom.d && $HOME/.emacs.d/bin/org-tangle config.org && cd -"
alias openfile="~/.scripts/rofi/config-selector.py | xargs nvim"
alias xr='xmonad --recompile'
# TODO: Update to paru
alias xmr='yay -S xmobar-git --answerclean A --answerdiff N'
alias xxmr='xr; xmr'
alias tmuxkillall="tmux ls | awk '{print $1}' | sed 's/://g' | xargs -I{} tmux kill-session -t {}"
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias q="exit"
alias rainbows='head -n 1000 /dev/random | toilet -f pagga | lolcat'
#TODO: Fix dynamic disable and enable (16 was a one time occurence)
alias disableTouch="xinput set-prop 16 'Device Enabled' 0"
alias enableTouch="xinput set-prop 16 'Device Enabled' 1"
# Connect to home media server
alias plexr=" ssh -L 8443:localhost:32400 -N desktop"
# Fix fn keys for Keychron K1
alias fixkeys="sudo echo 0 > /sys/module/hid_apple/parameters/fnmode"
# Fix the screens on Desktop computer
alias fixscreen="xrandr --output DP-4 --mode 1920x1080 --pos 0x0 -r 144 --output DVI-I-1 --primary --mode 1920x1080 --pos 1920x0 -r 144"
alias doubleScreen="xrandr --output DP-3 --mode 1920x1080"
alias exScreen="xrandr --output DP-3 --mode 1920x1080 --right-of eDP-1"
source ~/.privateAliases

2
general/.ghc/ghci.conf Normal file
View File

@ -0,0 +1,2 @@
:set prompt "\ESC[32m\STX\x03BB> \ESC[m\STX"
:set prompt-cont " | "

14
general/.gitignore vendored Normal file
View File

@ -0,0 +1,14 @@
.emacs.d/*
!.emacs.d/config.org
!.emacs.d/logo.svg
!.emacs.d/snippets
!.emacs.d/.projectile
.ghc/ghc_history
.mpd/*.pid
.mpd/*.db
.mpd/mpdstate*
.ncmpcpp/error.log

436
general/.ncmpcpp/bindings Normal file
View File

@ -0,0 +1,436 @@
# /usr/share/doc/ncmpcpp/bindings
def_key "mouse"
mouse_event
def_key "up"
scroll_up
def_key "shift-up"
select_item
scroll_up
def_key "down"
scroll_down
def_key "shift-down"
select_item
scroll_down
def_key "["
scroll_up_album
def_key "]"
scroll_down_album
def_key "{"
scroll_up_artist
def_key "}"
scroll_down_artist
def_key "page_up"
page_up
def_key "page_down"
page_down
def_key "home"
move_home
def_key "end"
move_end
def_key "insert"
select_item
def_key "enter"
enter_directory
def_key "enter"
toggle_output
def_key "enter"
run_action
def_key "enter"
play_item
def_key "space"
add_item_to_playlist
def_key "space"
toggle_lyrics_update_on_song_change
def_key "space"
toggle_visualization_type
#CHANGE
def_key "d"
delete_playlist_items
def_key "delete"
delete_browser_items
def_key "delete"
delete_stored_playlist
def_key "right"
next_column
def_key "right"
slave_screen
def_key "right"
volume_up
def_key "+"
volume_up
def_key "left"
previous_column
def_key "left"
master_screen
def_key "left"
volume_down
def_key "-"
volume_down
def_key ":"
execute_command
def_key "tab"
next_screen
def_key "shift-tab"
previous_screen
def_key "f1"
show_help
def_key "1"
show_playlist
def_key "2"
show_browser
def_key "2"
change_browse_mode
def_key "3"
show_search_engine
def_key "3"
reset_search_engine
def_key "4"
show_media_library
def_key "4"
toggle_media_library_columns_mode
def_key "5"
show_playlist_editor
def_key "6"
show_tag_editor
def_key "7"
show_outputs
def_key "8"
show_visualizer
def_key "="
show_clock
def_key "@"
show_server_info
def_key "s"
stop
def_key "p"
pause
def_key ">"
next
def_key "<"
previous
def_key "ctrl-h"
jump_to_parent_directory
def_key "ctrl-h"
replay_song
def_key "backspace"
jump_to_parent_directory
def_key "backspace"
replay_song
def_key "f"
seek_forward
def_key "b"
seek_backward
def_key "r"
toggle_repeat
def_key "z"
toggle_random
def_key "y"
save_tag_changes
def_key "y"
start_searching
def_key "y"
toggle_single
def_key "R"
toggle_consume
def_key "Y"
toggle_replay_gain_mode
def_key "T"
toggle_add_mode
def_key "|"
toggle_mouse
def_key "#"
toggle_bitrate_visibility
def_key "Z"
shuffle
def_key "x"
toggle_crossfade
def_key "X"
set_crossfade
def_key "u"
update_database
def_key "ctrl-s"
sort_playlist
def_key "ctrl-s"
toggle_browser_sort_mode
def_key "ctrl-s"
toggle_media_library_sort_mode
def_key "ctrl-r"
reverse_playlist
def_key "ctrl-f"
apply_filter
def_key "ctrl-_"
select_found_items
def_key "/"
find
def_key "/"
find_item_forward
def_key "?"
find
def_key "?"
find_item_backward
def_key "."
next_found_item
def_key ","
previous_found_item
def_key "w"
toggle_find_mode
def_key "e"
edit_song
def_key "e"
edit_library_tag
def_key "e"
edit_library_album
def_key "e"
edit_directory_name
def_key "e"
edit_playlist_name
def_key "e"
edit_lyrics
def_key "i"
show_song_info
def_key "I"
show_artist_info
def_key "g"
jump_to_position_in_song
def_key "l"
show_lyrics
def_key "ctrl-v"
select_range
def_key "v"
reverse_selection
def_key "V"
remove_selection
def_key "B"
select_album
def_key "a"
add_selected_items
def_key "c"
clear_playlist
def_key "c"
clear_main_playlist
def_key "C"
crop_playlist
def_key "C"
crop_main_playlist
def_key "m"
move_sort_order_up
def_key "m"
move_selected_items_up
def_key "n"
move_sort_order_down
def_key "n"
move_selected_items_down
def_key "M"
move_selected_items_to
def_key "A"
add
def_key "S"
save_playlist
def_key "o"
jump_to_playing_song
def_key "G"
jump_to_browser
def_key "G"
jump_to_playlist_editor
def_key "~"
jump_to_media_library
def_key "E"
jump_to_tag_editor
def_key "U"
toggle_playing_song_centering
def_key "P"
toggle_display_mode
def_key "\\"
toggle_interface
def_key "!"
toggle_separators_between_albums
def_key "L"
toggle_lyrics_fetcher
def_key "F"
fetch_lyrics_in_background
def_key "alt-l"
toggle_fetching_lyrics_in_background
def_key "ctrl-l"
toggle_screen_lock
def_key "`"
toggle_library_tag_type
def_key "`"
refetch_lyrics
def_key "`"
add_random_items
def_key "ctrl-p"
set_selected_items_priority
def_key "q"
quit
# the t key isn't used and it's easier to press than /, so lets use it
def_key "t"
find
def_key "t"
find_item_forward
def_key "+"
show_clock
def_key "="
volume_up
def_key "j"
scroll_down
def_key "k"
scroll_up
def_key "ctrl-u"
page_up
#push_characters "kkkkkkkkkkkkkkk"
def_key "ctrl-d"
page_down
#push_characters "jjjjjjjjjjjjjjj"
def_key "h"
previous_column
def_key "l"
next_column
def_key "."
show_lyrics
def_key "n"
next_found_item
def_key "N"
previous_found_item
# not used but bound
def_key "J"
move_sort_order_down
def_key "K"
move_sort_order_up

155
general/.ncmpcpp/config Normal file
View File

@ -0,0 +1,155 @@
# /usr/share/doc/ncmpcpp/config
ncmpcpp_directory = ~/.ncmpcpp
lyrics_directory = ~/music/.lyrics
mpd_host = localhost
mpd_port = 6600
mpd_connection_timeout = 5
mpd_music_dir = ~/music
playlist_disable_highlight_delay = 0
message_delay_time = 5
# - 0 - default window color (discards all other colors)
# - 1 - black
# - 2 - red
# - 3 - green
# - 4 - yellow
# - 5 - blue
# - 6 - magenta
# - 7 - cyan
# - 8 - white
# - 9 - end of current color
# - b - bold text
# - u - underline text
# - r - reverse colors
# - a - use alternative character set
song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9}
song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
song_library_format = {%n - }{%t}|{%f}
alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
current_item_prefix = $(yellow)$r
current_item_suffix = $/r$(end)
current_item_inactive_column_prefix = $(white)$r
current_item_inactive_column_suffix = $/r$(end)
now_playing_prefix = $b
now_playing_suffix = $/b
browser_playlist_prefix = "$2playlist$9 "
selected_item_prefix = $6
selected_item_suffix = $9
modified_item_prefix = $3> $9
song_window_title_format = {%a - }{%t}|{%f}
browser_sort_mode = name
browser_sort_format = {%a - }{%t}|{%f} {(%l)}
song_columns_list_format = (10)[green]{a} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
execute_on_song_change = ""
execute_on_player_state_change = ""
playlist_show_mpd_host = no
playlist_show_remaining_time = no
playlist_shorten_total_times = no
playlist_separate_albums = no
playlist_display_mode = columns
browser_display_mode = classic
search_engine_display_mode = classic
playlist_editor_display_mode = classic
discard_colors_if_item_is_selected = yes
show_duplicate_tags = yes
incremental_seeking = yes
seek_time = 1
volume_change_step = 2
autocenter_mode = no
centered_cursor = no
progressbar_look = "─⊙╶"
#progressbar_look = "◾◾◽"
#progressbar_look = "=> "
default_place_to_search_in = database
user_interface = classic
data_fetching_delay = yes
media_library_primary_tag = artist
media_library_albums_split_by_date = yes
default_find_mode = wrapped
default_tag_editor_pattern = %n - %t
header_visibility = yes
statusbar_visibility = yes
titles_visibility = yes
header_text_scrolling = yes
cyclic_scrolling = no
lines_scrolled = 2
follow_now_playing_lyrics = no
fetch_lyrics_for_current_song_in_background = no
store_lyrics_in_song_dir = no
generate_win32_compatible_filenames = yes
allow_for_physical_item_deletion = no
lastfm_preferred_language = en
space_add_mode = add_remove
show_hidden_files_in_local_browser = no
screen_switcher_mode = playlist, browser
startup_screen = playlist
startup_slave_screen = ""
startup_slave_screen_focus = no
locked_screen_width_part = 50
ask_for_locked_screen_width_part = yes
jump_to_now_playing_song_at_start = yes
ask_before_clearing_playlists = yes
clock_display_seconds = no
display_volume_level = yes
display_bitrate = yes
display_remaining_time = no
ignore_leading_the = no
ignore_diacritics = no
block_search_constraints_change_if_items_found = yes
mouse_support = yes
mouse_list_scroll_whole_page = yes
empty_tag_marker = <empty>
tags_separator = " | "
tag_editor_extended_numeration = no
media_library_sort_by_mtime = no
enable_window_title = no
search_engine_default_search_mode = 1
external_editor = vim
use_console_editor = yes
colors_enabled = yes
empty_tag_color = cyan
header_window_color = cyan
volume_color = red
state_line_color = yellow
state_flags_color = red
#This one is probably the one you're looking for
main_window_color = white
color1 = white
color2 = green
progressbar_color = yellow
progressbar_elapsed_color = green:b
statusbar_color = cyan
statusbar_time_color = default:b
player_state_color = default:b
alternative_ui_separator_color = black:b
window_border_color = green
active_window_border = red
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "my_fifo"
visualizer_sync_interval = "30"
visualizer_in_stereo = "no"
visualizer_type = "spectrum" # spectrum, ellipse, wave_filled, wave
visualizer_look = "+█" # wave | spectrum, ellipse, wave_filled
#visualizer_look = "••"

1
general/.tmux.conf Symbolic link
View File

@ -0,0 +1 @@
/home/h7x4/.tmux.conf

34
general/.zshrc Normal file
View File

@ -0,0 +1,34 @@
# Initialize p10k if present
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
source ~/.aliases
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
vscode
vi-mode
systemd
npm
npx
node
flutter
archlinux
colorize
docker
docker-compose
pip
python
)
source $ZSH/oh-my-zsh.sh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

1
general/README.md Normal file
View File

@ -0,0 +1 @@
# Dotfiles