~kiwec/dotfiles

0579b8ad193975145e763818a59291bed76e0fed — Wolf Clement 9 months ago 47074f6
Remove pulseaudio, redshift, etc
9 files changed, 159 insertions(+), 170 deletions(-)

D .Xdefaults
D .bashrc
A .config/fish/completions/poetry.fish
A .config/fish/config.fish
M .config/i3/config
M .config/nvim/init.vim
D .config/redshift/hooks/brightness.sh
D .config/technobabble
D .gitmodules
D .Xdefaults => .Xdefaults +0 -37
@@ 1,37 0,0 @@
! special
*.foreground:   #c5c8c6
*.background:   #1d1f21
*.cursorColor:  #c5c8c6

! black
*.color0:       #282a2e
*.color8:       #373b41

! red
*.color1:       #a54242
*.color9:       #cc6666

! green
*.color2:       #8c9440
*.color10:      #b5bd68

! yellow
*.color3:       #de935f
*.color11:      #f0c674

! blue
*.color4:       #5f819d
*.color12:      #81a2be

! magenta
*.color5:       #85678f
*.color13:      #b294bb

! cyan
*.color6:       #5e8d87
*.color14:      #8abeb7

! white
*.color7:       #707880
*.color15:      #c5c8c6


D .bashrc => .bashrc +0 -3
@@ 1,3 0,0 @@
export PAGER=most
~/.config/technobabble/charger.sh


A .config/fish/completions/poetry.fish => .config/fish/completions/poetry.fish +135 -0
@@ 0,0 1,135 @@
function __fish_poetry_08b253988adb33fa_complete_no_subcommand
    for i in (commandline -opc)
        if contains -- $i about add build cache check config debug env export help init install lock new publish remove run search self shell show update version
            return 1
        end
    end
    return 0
end

# global options
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l ansi -d 'Force ANSI output'
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l help -d 'Display this help message'
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l no-ansi -d 'Disable ANSI output'
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l no-interaction -d 'Do not ask any interactive question'
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l quiet -d 'Do not output any message'
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l verbose -d 'Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug'
complete -c poetry -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -l version -d 'Display this application version'

# commands
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a about -d 'Shows information about Poetry.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a add -d 'Adds a new dependency to pyproject.toml.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a build -d 'Builds a package, as a tarball and a wheel by default.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a cache -d 'Interact with Poetry\'s cache'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a check -d 'Checks the validity of the pyproject.toml file.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a config -d 'Manages configuration settings.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a debug -d 'Debug various elements of Poetry.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a env -d 'Interact with Poetry\'s project environments.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a export -d 'Exports the lock file to alternative formats.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a help -d 'Display the manual of a command'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a init -d 'Creates a basic pyproject.toml file in the current directory.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a install -d 'Installs the project dependencies.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a lock -d 'Locks the project dependencies.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a new -d 'Creates a new Python project at <path>.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a publish -d 'Publishes a package to a remote repository.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a remove -d 'Removes a package from the project dependencies.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a run -d 'Runs a command in the appropriate environment.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a search -d 'Searches for packages on remote repositories.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a self -d 'Interact with Poetry directly.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a shell -d 'Spawns a shell within the virtual environment.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a show -d 'Shows information about packages.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a update -d 'Update the dependencies as according to the pyproject.toml file.'
complete -c poetry -f -n '__fish_poetry_08b253988adb33fa_complete_no_subcommand' -a version -d 'Shows the version of the project or bumps it when a valid bump rule is provided.'

# command options

# about

# add
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l allow-prereleases -d 'Accept prereleases.'
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l dev -d 'Add as a development dependency.'
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l dry-run -d 'Output the operations but do not execute anything (implicitly enables --verbose).'
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l extras -d 'Extras to activate for the dependency.'
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l optional -d 'Add as an optional dependency.'
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l platform -d 'Platforms for which the dependency must be installed.'
complete -c poetry -A -n '__fish_seen_subcommand_from add' -l python -d 'Python version for which the dependency must be installed.'

# build
complete -c poetry -A -n '__fish_seen_subcommand_from build' -l format -d 'Limit the format to either sdist or wheel.'

# cache

# check

# config
complete -c poetry -A -n '__fish_seen_subcommand_from config' -l list -d 'List configuration settings.'
complete -c poetry -A -n '__fish_seen_subcommand_from config' -l local -d 'Set/Get from the project\'s local configuration.'
complete -c poetry -A -n '__fish_seen_subcommand_from config' -l unset -d 'Unset configuration setting.'

# debug

# env

# export
complete -c poetry -A -n '__fish_seen_subcommand_from export' -l dev -d 'Include development dependencies.'
complete -c poetry -A -n '__fish_seen_subcommand_from export' -l extras -d 'Extra sets of dependencies to include.'
complete -c poetry -A -n '__fish_seen_subcommand_from export' -l format -d 'Format to export to. Currently, only requirements.txt is supported.'
complete -c poetry -A -n '__fish_seen_subcommand_from export' -l output -d 'The name of the output file.'
complete -c poetry -A -n '__fish_seen_subcommand_from export' -l with-credentials -d 'Include credentials for extra indices.'
complete -c poetry -A -n '__fish_seen_subcommand_from export' -l without-hashes -d 'Exclude hashes from the exported file.'

# help

# init
complete -c poetry -A -n '__fish_seen_subcommand_from init' -l author -d 'Author name of the package.'
complete -c poetry -A -n '__fish_seen_subcommand_from init' -l dependency -d 'Package to require, with an optional version constraint, e.g. requests:^2.10.0 or requests=2.11.1.'
complete -c poetry -A -n '__fish_seen_subcommand_from init' -l description -d 'Description of the package.'
complete -c poetry -A -n '__fish_seen_subcommand_from init' -l dev-dependency -d 'Package to require for development, with an optional version constraint, e.g. requests:^2.10.0 or requests=2.11.1.'
complete -c poetry -A -n '__fish_seen_subcommand_from init' -l license -d 'License of the package.'
complete -c poetry -A -n '__fish_seen_subcommand_from init' -l name -d 'Name of the package.'

# install
complete -c poetry -A -n '__fish_seen_subcommand_from install' -l dry-run -d 'Output the operations but do not execute anything (implicitly enables --verbose).'
complete -c poetry -A -n '__fish_seen_subcommand_from install' -l extras -d 'Extra sets of dependencies to install.'
complete -c poetry -A -n '__fish_seen_subcommand_from install' -l no-dev -d 'Do not install the development dependencies.'
complete -c poetry -A -n '__fish_seen_subcommand_from install' -l no-root -d 'Do not install the root package (the current project).'

# lock

# new
complete -c poetry -A -n '__fish_seen_subcommand_from new' -l name -d 'Set the resulting package name.'
complete -c poetry -A -n '__fish_seen_subcommand_from new' -l src -d 'Use the src layout for the project.'

# publish
complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l build -d 'Build the package before publishing.'
complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l cert -d 'Certificate authority to access the repository.'
complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l client-cert -d 'Client certificate to access the repository.'
complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l password -d 'The password to access the repository.'
complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l repository -d 'The repository to publish the package to.'
complete -c poetry -A -n '__fish_seen_subcommand_from publish' -l username -d 'The username to access the repository.'

# remove
complete -c poetry -A -n '__fish_seen_subcommand_from remove' -l dev -d 'Remove a package from the development dependencies.'
complete -c poetry -A -n '__fish_seen_subcommand_from remove' -l dry-run -d 'Output the operations but do not execute anything (implicitly enables --verbose).'

# run

# search

# self

# shell

# show
complete -c poetry -A -n '__fish_seen_subcommand_from show' -l all -d 'Show all packages (even those not compatible with current system).'
complete -c poetry -A -n '__fish_seen_subcommand_from show' -l latest -d 'Show the latest version.'
complete -c poetry -A -n '__fish_seen_subcommand_from show' -l no-dev -d 'Do not list the development dependencies.'
complete -c poetry -A -n '__fish_seen_subcommand_from show' -l outdated -d 'Show the latest version but only for packages that are outdated.'
complete -c poetry -A -n '__fish_seen_subcommand_from show' -l tree -d 'List the dependencies as a tree.'

# update
complete -c poetry -A -n '__fish_seen_subcommand_from update' -l dry-run -d 'Output the operations but do not execute anything (implicitly enables --verbose).'
complete -c poetry -A -n '__fish_seen_subcommand_from update' -l lock -d 'Do not perform operations (only update the lockfile).'
complete -c poetry -A -n '__fish_seen_subcommand_from update' -l no-dev -d 'Do not update the development dependencies.'

# version

A .config/fish/config.fish => .config/fish/config.fish +4 -0
@@ 0,0 1,4 @@
set -gx PATH $PATH /home/kiwec/.local/bin

function fish_greeting
end

M .config/i3/config => .config/i3/config +20 -19
@@ 1,4 1,4 @@
set $mod Mod4
set $mod Mod1
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"


@@ 11,7 11,7 @@ floating_modifier $mod

bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+c kill
bindsym $mod+d exec rofi -show run
bindsym $mod+d exec dmenu_run

bindsym $mod+Left focus left
bindsym $mod+Down focus down


@@ 25,6 25,8 @@ bindsym $mod+Shift+Right move right

bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+Shift+q kill
bindsym $mod+Shift+r reload

bindsym $mod+f fullscreen toggle
bindsym $mod+space focus mode_toggle


@@ 41,23 43,23 @@ bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5

bindsym $mod+Shift+r restart
bindsym $mod+Shift+q exec i3-msg exit

bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1000
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1000
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym Mod4+Up exec --no-startup-id amixer -c 0 sset Master 2dB+
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 0 sset Master 2dB+
bindsym Mod4+Down exec --no-startup-id amixer -c 0 sset Master 2dB-
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 0 sset Master 2dB-
bindsym Mod4+Return exec --no-startup-id amixer -c 0 sset Master toggle
bindsym XF86AudioMute exec --no-startup-id amixer -c 0 sset Master toggle
bindsym Mod4+Space exec --no-startup-id cmus-remote -u
bindsym XF86AudioPlay exec --no-startup-id cmus-remote -u
bindsym Mod4+Right exec --no-startup-id cmus-remote -n
bindsym XF86AudioNext exec --no-startup-id cmus-remote -n
bindsym Mod4+Left exec --no-startup-id cmus-remote -r
bindsym XF86AudioPrev exec --no-startup-id cmus-remote -r

gaps inner 20
gaps outer 0

workspace $ws5 output DVI-I-0
workspace $ws5 output HDMI-0

bar {
        status_command ~/.config/i3status/cmus.sh
        status_command /home/kiwec/.config/i3status/cmus.sh

        colors {
                statusline #ffffff


@@ 65,7 67,7 @@ bar {
                separator  #ffffff

                #                  BORDER  BACKGRND  TEXT
                focused_workspace  #000000 #000000 #ffffff
                focused_workspace  #000000 #550000 #ffffff
                inactive_workspace #000000 #000000 #aaaaaa
                active_workspace   #000000 #000000 #ffffff
                urgent_workspace   #ff0000 #000000 #000000


@@ 76,9 78,9 @@ default_border pixel 1
hide_edge_borders none

#                       BORDER  BACKGND TEXT    R.BORDR C.BORDR
client.focused          #000000 #000000 #ffffff #ff0000 #ff0000
client.focused_inactive #000000 #000000 #ffffff #aa0000 #aa0000
client.unfocused        #000000 #000000 #ffffff #550000 #550000
client.focused          #aa0000 #000000 #ffffff #000000 #000000
client.focused_inactive #000000 #000000 #ffffff #000000 #000000
client.unfocused        #000000 #000000 #ffffff #000000 #000000
client.urgent           #000000 #000000 #ffffff #ffff00 #ffff00
client.placeholder      #000000 #000000 #ffffff #aa0000 #aa0000
client.background       #000000


@@ 90,6 92,5 @@ for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable

exec --no-startup-id xrandr --output DVI-I-0 --right-of HDMI-0
exec --no-startup-id xrandr --output DP-0 --mode 1920x1080 --rate 240
exec_always --no-startup-id feh --bg-fill ~/.config/i3/wallpaper.jpg


M .config/nvim/init.vim => .config/nvim/init.vim +0 -80
@@ 1,42 1,3 @@
""" Begin plugins
call plug#begin('~/.vim/plugged')

" Completion
let g:ycm_server_python_interpreter = '/usr/bin/python3'
let g:ycm_global_ycm_extra_conf = '~/.config/nvim/.ycm_extra_conf'
Plug 'Valloric/YouCompleteMe'
Plug 'ervandew/supertab'
Plug 'SirVer/ultisnips'

" Snippets
Plug 'honza/vim-snippets'

" Syntax checking
Plug 'vim-syntastic/syntastic'

" Syntax highlighting
Plug 'kiwec/vim-brainfuck'
Plug 'sheerun/vim-polyglot'
Plug 'hashivim/vim-vagrant'
Plug 'ziglang/zig.vim'

" Colorscheme
Plug 'dim13/smyck.vim'

" Misc
Plug 'ctrlpvim/ctrlp.vim'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'ntpeters/vim-better-whitespace'
Plug 'ciaranm/detectindent'

call plug#end()
""" End plugins

" Usability
set number
set mouse=a
set tabstop=4
set shiftwidth=4


@@ 48,46 9,5 @@ set scrolloff=3
set nowrap
set splitright
set splitbelow
set ruler
set showmatch
set pumheight=20
set clipboard+=unnamedplus

" Ctrlp
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""'

" Indentation
let g:detectindent_preferred_expandtab = 0
let g:detectindent_preferred_indent = 4
autocmd BufReadPost * :DetectIndent

" Completion
let g:ycm_confirm_extra_conf = 0
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"

" Syntax checking
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']

" Colorscheme
set background=dark
set termguicolors
set t_Co=256
colorscheme smyck

" Indent guides
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_guide_size = 1
let g:indent_guides_start_level = 2


D .config/redshift/hooks/brightness.sh => .config/redshift/hooks/brightness.sh +0 -27
@@ 1,27 0,0 @@
#!/bin/sh

# Set brightness via xbrightness when redshift status changes

# Set brightness values for each status.
# Range from 1 to 100 is valid
brightness_day="100"
brightness_transition="50"
brightness_night="10"
# Set fade time for changes to one minute
fade_time=60000

case $1 in
	period-changed)
		case $3 in
			night)
				xbacklight -set $brightness_night -time $fade_time
				;;
			transition)
				xbacklight -set $brightness_transition -time $fade_time
				;;
			daytime)
				xbacklight -set $brightness_day -time $fade_time
				;;
		esac
		;;
esac

D .config/technobabble => .config/technobabble +0 -1
@@ 1,1 0,0 @@
Subproject commit dc7e8b275cb64c60c4a7db48846b2cdf1cf9aa7e

D .gitmodules => .gitmodules +0 -3
@@ 1,3 0,0 @@
[submodule ".config/technobabble"]
	path = .config/technobabble
	url = https://github.com/kiwec/rssi-simulator