From 7952033da2d8a90cb0f9a30150cf6a45c6492b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Sun, 18 Oct 2020 13:59:23 +0000 Subject: Remove unused dotfiles --- authorized_keys | 14 -- chesen-mouse-emulation.xorg.conf | 10 -- config/fish/config.fish | 6 - config/fish/functions/__format_time.fish | 27 ---- config/fish/functions/__parse_current_folder.fish | 3 - config/fish/functions/__parse_git_branch.fish | 4 - config/fish/functions/fish_prompt.fish | 69 --------- config/fish/functions/insert_cmd.fish | 3 - i3/config | 164 --------------------- i3blocks.conf | 108 -------------- i3status.conf | 77 ---------- livestreamerrc | 1 - mbsyncrc | 65 -------- old/config/fish/config.fish | 6 + old/config/fish/functions/__format_time.fish | 27 ++++ .../fish/functions/__parse_current_folder.fish | 3 + old/config/fish/functions/__parse_git_branch.fish | 4 + old/config/fish/functions/fish_prompt.fish | 69 +++++++++ old/config/fish/functions/insert_cmd.fish | 3 + old/vimrc | 109 ++++++++++++++ taskrc | 80 ---------- vimrc | 109 -------------- xbindkeysrc-pincer | 20 --- 23 files changed, 221 insertions(+), 760 deletions(-) delete mode 100644 authorized_keys delete mode 100644 chesen-mouse-emulation.xorg.conf delete mode 100644 config/fish/config.fish delete mode 100644 config/fish/functions/__format_time.fish delete mode 100644 config/fish/functions/__parse_current_folder.fish delete mode 100644 config/fish/functions/__parse_git_branch.fish delete mode 100644 config/fish/functions/fish_prompt.fish delete mode 100644 config/fish/functions/insert_cmd.fish delete mode 100644 i3/config delete mode 100644 i3blocks.conf delete mode 100644 i3status.conf delete mode 100644 livestreamerrc delete mode 100644 mbsyncrc create mode 100644 old/config/fish/config.fish create mode 100644 old/config/fish/functions/__format_time.fish create mode 100644 old/config/fish/functions/__parse_current_folder.fish create mode 100644 old/config/fish/functions/__parse_git_branch.fish create mode 100644 old/config/fish/functions/fish_prompt.fish create mode 100644 old/config/fish/functions/insert_cmd.fish create mode 100755 old/vimrc delete mode 100644 taskrc delete mode 100755 vimrc delete mode 100644 xbindkeysrc-pincer diff --git a/authorized_keys b/authorized_keys deleted file mode 100644 index 71c500a..0000000 --- a/authorized_keys +++ /dev/null @@ -1,14 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCrmBrIzS85zP4M5se34J7NC4LoiEfoMV0IoglbzGFxEWM4HALx4jE3StC20Wa5MakVx8vgUoXR2rEDwQgpMT8X0j7TfZvmJ8yDBSq7Ft+NhOGlRT8i5Jrj7T3CN7Q/KWc5yF8s/+A5xPTaNtlmg5SRnSRV+IOadJY/ZjZP/4j2n1U7039O0/HYlkgka00msCxv0Zu+CkFC81Z/+rjmJL+PFkqnCdSFhxjTzjavHPojFpJlFAam06L7m12ruG0HY4cAdpk1drsiCqVoHBApqODy7kRcC7GCkwIlIV/+LRigfGnM57y1e1pFKvM655DemwphvzpPURLO50XNQyWiQ1O1 orbekk@orbekk-macbookpro.roam.corp.google.com -ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzQkO3BVxISTjqYfks4+PAJ2xOyZUWqxzW5/yYSGYuaDKS6UvD6f029yhFgjVh6zszacDmT20OdpSuzLg7BVMWSR5gaR3azc3QRCJGWIRp0eWp0dnBGegGbkptogazDKdnL/Gjlb6QFHwxbOqeorg56kWGElRAdGrrtn67zkd91alqqRgXG8pDtqIVtApLrVD+f+C91ePJuTA7khDHVFyv+uf1BaP7wVb6eHPzI7IGpy68PXIA+KeRiJokDTyfxQPYahfF5ELU3D9SvAeaBFJEL4fX/ve8fPcaWBS50JTVObfatopt5aiACWAIyJlz0xWSpP+6trBZjAdq/Ml8aDgPw== orbekk@horisont -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCy8BTlFTQldQh/mibrVvJUHutDrOObqE5hIdDl79GqI1DDjr5kvAAdlyjpDrxyD55uWt/V3KJAlWdHV7tHMFHOjyRZWdQ6cDox4WYMghJZ1pJMi/1uGgQM4SMWJiEUUqdx/JqDOti4gNDA0giPP/ZWp7/zpz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aASaiJWTAvluwbibMFAC1OSBFb20xM5gD0C1q05pxVMN3Ioy1P0CIvJMLWfQR1yrNbnmoGUGHeSA/gwaxqMg7G+P/SBIheDAYEu5fzXXgFgO3sI8JvIdc1NTJMmHktahb/ecG1MQ== cardno:000605483607 # pincer - diff --git a/chesen-mouse-emulation.xorg.conf b/chesen-mouse-emulation.xorg.conf deleted file mode 100644 index a6d7abd..0000000 --- a/chesen-mouse-emulation.xorg.conf +++ /dev/null @@ -1,10 +0,0 @@ -Section "InputClass" - Identifier "Wheel emulation" - MatchProduct "CHESEN" - MatchDevicePath "/dev/input/event*" - Option "EmulateWheel" "true" - Option "EmulateWheelButton" "3" - Option "Emulate3Buttons" "false" - Option "XAxisMapping" "6 7" - Option "YAxisMapping" "4 5" -EndSection diff --git a/config/fish/config.fish b/config/fish/config.fish deleted file mode 100644 index 885e7bd..0000000 --- a/config/fish/config.fish +++ /dev/null @@ -1,6 +0,0 @@ -bind \ec insert_cmd - -set -x EDITOR nvim -set -x TZ 'America/New_York' -set -x PATH "$HOME/bin" $PATH - diff --git a/config/fish/functions/__format_time.fish b/config/fish/functions/__format_time.fish deleted file mode 100644 index 298e4cb..0000000 --- a/config/fish/functions/__format_time.fish +++ /dev/null @@ -1,27 +0,0 @@ -function __format_time -d "Format milliseconds to a human readable format" - set -l milliseconds $argv[1] - set -l seconds (math "$milliseconds / 1000 % 60") - set -l minutes (math "$milliseconds / 60000 % 60") - set -l hours (math "$milliseconds / 3600000 % 24") - set -l days (math "$milliseconds / 86400000") - set -l time - set -l threshold 5 - - if test $days -gt 0 - set time (command printf "$time%sd " $days) - end - - if test $hours -gt 0 - set time (command printf "$time%sh " $hours) - end - - if test $minutes -gt 0 - set time (command printf "$time%sm " $minutes) - end - - if test $seconds -gt $threshold - set time (command printf "$time%ss " $seconds) - end - - echo -e $time -end diff --git a/config/fish/functions/__parse_current_folder.fish b/config/fish/functions/__parse_current_folder.fish deleted file mode 100644 index 031b53e..0000000 --- a/config/fish/functions/__parse_current_folder.fish +++ /dev/null @@ -1,3 +0,0 @@ -function __parse_current_folder -d "Replace '$HOME' with '~'" - pwd | sed "s|$HOME|~|" -end diff --git a/config/fish/functions/__parse_git_branch.fish b/config/fish/functions/__parse_git_branch.fish deleted file mode 100644 index 42b46fb..0000000 --- a/config/fish/functions/__parse_git_branch.fish +++ /dev/null @@ -1,4 +0,0 @@ -function __parse_git_branch -d "Parse current Git branch name" - command git symbolic-ref --short HEAD ^/dev/null; - or command git show-ref --head -s --abbrev | head -n1 ^/dev/null -end diff --git a/config/fish/functions/fish_prompt.fish b/config/fish/functions/fish_prompt.fish deleted file mode 100644 index bd142dd..0000000 --- a/config/fish/functions/fish_prompt.fish +++ /dev/null @@ -1,69 +0,0 @@ -function fish_prompt --description 'Write out the prompt' - set -l last_status $status - - # Just calculate this once, to save a few cycles when displaying the prompt - if not set -q __fish_prompt_hostname - set -g __fish_prompt_hostname (hostname|cut -d . -f 1) - end - - set -l normal (set_color normal) - - # Hack; fish_config only copies the fish_prompt function (see #736) - if not set -q -g __fish_classic_git_functions_defined - set -g __fish_classic_git_functions_defined - - function __fish_repaint_user --on-variable fish_color_user --description "Event handler, repaint when fish_color_user changes" - if status --is-interactive - commandline -f repaint ^/dev/null - end - end - - function __fish_repaint_host --on-variable fish_color_host --description "Event handler, repaint when fish_color_host changes" - if status --is-interactive - commandline -f repaint ^/dev/null - end - end - - function __fish_repaint_status --on-variable fish_color_status --description "Event handler; repaint when fish_color_status changes" - if status --is-interactive - commandline -f repaint ^/dev/null - end - end - - function __fish_repaint_bind_mode --on-variable fish_key_bindings --description "Event handler; repaint when fish_key_bindings changes" - if status --is-interactive - commandline -f repaint ^/dev/null - end - end - - # initialize our new variables - if not set -q __fish_classic_git_prompt_initialized - set -qU fish_color_user; or set -U fish_color_user -o green - set -qU fish_color_host; or set -U fish_color_host -o cyan - set -qU fish_color_status; or set -U fish_color_status red - set -U __fish_classic_git_prompt_initialized - end - end - - set -l color_cwd - set -l prefix - switch $USER - case root toor - if set -q fish_color_cwd_root - set color_cwd $fish_color_cwd_root - else - set color_cwd $fish_color_cwd - end - set suffix '#' - case '*' - set color_cwd $fish_color_cwd - set suffix '>' - end - - set -l prompt_status - if test $last_status -ne 0 - set prompt_status ' ' (set_color $fish_color_status) "[$last_status]" "$normal" - end - - echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $fish_color_host) "$__fish_prompt_hostname" $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (__fish_vcs_prompt) $normal $prompt_status "> " -end diff --git a/config/fish/functions/insert_cmd.fish b/config/fish/functions/insert_cmd.fish deleted file mode 100644 index b167734..0000000 --- a/config/fish/functions/insert_cmd.fish +++ /dev/null @@ -1,3 +0,0 @@ -function insert_cmd - commandline -i (pwd) -end diff --git a/i3/config b/i3/config deleted file mode 100644 index ab47118..0000000 --- a/i3/config +++ /dev/null @@ -1,164 +0,0 @@ -# i3 config file (v4) -# -# Please see http://i3wm.org/docs/userguide.html for a complete reference! -# -# This config file uses keycodes (bindsym) and was written for the QWERTY -# layout. -# -# To get a config file with the same key positions, but for your current -# layout, use the i3-config-wizard -# - -# font for window titles. ISO 10646 = Unicode -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -font xft:Droid Sans Bold 7 - -# i3 modifier key. -set $mod Mod4 - -# use Mouse+Mod1 to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec gnome-terminal - -bindsym Pause exec i3lock -c 2A3462 - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec $HOME/bin/dmenu_run.sh - -# change focus -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right - -# move focused window -bindsym $mod+Shift+h move left -bindsym $mod+Shift+j move down -bindsym $mod+Shift+k move up -bindsym $mod+Shift+l move right - -# split in horizontal orientation -bindsym $mod+minus split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen - -# change container layout (stacked, tabbed, default) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout default - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# switch to workspace -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 -bindsym $mod+apostrophe workspace 1 -bindsym $mod+comma workspace 2 -bindsym $mod+period workspace 3 -bindsym $mod+p workspace 4 -bindsym $mod+y workspace 5 - -# move focused container to workspace -bindsym $mod+Shift+1 move workspace 1 -bindsym $mod+Shift+2 move workspace 2 -bindsym $mod+Shift+3 move workspace 3 -bindsym $mod+Shift+4 move workspace 4 -bindsym $mod+Shift+5 move workspace 5 -bindsym $mod+Shift+6 move workspace 6 -bindsym $mod+Shift+7 move workspace 7 -bindsym $mod+Shift+8 move workspace 8 -bindsym $mod+Shift+9 move workspace 9 -bindsym $mod+Shift+0 move workspace 10 - -# reload the configuration file -bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exit - -# # class border backgr. text indicator -client.focused #000000 #6a9fb5 #f5f5f5 #2e9ef4 -client.focused_inactive #000000 #505050 #e0e0e0 #484e50 -client.unfocused #000000 #505050 #aa759f -client.urgent #000000 #ac4142 #e0e0e0 #ac4142 - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # They resize the border in the direction you pressed, e.g. - # when pressing left, the window is resized so that it has - # more space on its left - - bindsym h resize shrink left 10 px or 10 ppt - bindsym Shift+h resize grow left 10 px or 10 ppt - - bindsym j resize shrink down 10 px or 10 ppt - bindsym Shift+j resize grow down 10 px or 10 ppt - - bindsym k resize shrink up 10 px or 10 ppt - bindsym Shift+k resize grow up 10 px or 10 ppt - - bindsym l resize shrink right 10 px or 10 ppt - bindsym Shift+l resize grow right 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink left 10 px or 10 ppt - bindsym Shift+Left resize grow left 10 px or 10 ppt - - bindsym Down resize shrink down 10 px or 10 ppt - bindsym Shift+Down resize grow down 10 px or 10 ppt - - bindsym Up resize shrink up 10 px or 10 ppt - bindsym Shift+Up resize grow up 10 px or 10 ppt - - bindsym Right resize shrink right 10 px or 10 ppt - bindsym Shift+Right resize grow right 10 px or 10 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} - -# NOTE(orbekk): Disable resize mode: I never use it and sometimes I accidentally trigger it. -# bindsym $mod+r mode "resize" - -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) -bar { - status_command i3blocks || i3status - font xft:Source Code Pro 10 -} - -exec xrdb -merge $HOME/.Xresources -exec setxkbmap us -variant dvorak -option compose:ralt -option caps:ctrl_modifier -exec $HOME/bin/keyboard_setup.sh -exec $HOME/bin/local.sh -exec xbindkeys -exec xset -b -exec nm-applet & -exec google-chrome & -exec xautolock -time 10 -locker 'i3lock -c 2A3462' & -exec redshift -l 40:-70 -r -t 5500:3700 & diff --git a/i3blocks.conf b/i3blocks.conf deleted file mode 100644 index 2c0d847..0000000 --- a/i3blocks.conf +++ /dev/null @@ -1,108 +0,0 @@ -# i3blocks config file -# Global properties -# -# The top properties below are applied to every block, but can be overridden. -# Each block command defaults to the script name to avoid boilerplate. -command=/usr/lib/i3blocks/$BLOCK_NAME -separator_block_width=15 -markup=none - -# Volume indicator -[volume] -label=♪ -interval=once -#instance=Master -#instance=PCM -command=amixer -c 1 get Master | /usr/bin/grep -E -o '[0-9]*%' | head -n 1 -interval=30 -signal=10 - -[brightness] -label=☼ -command=xbacklight | awk -F. '{print $1}' -interval=once -signal=10 - -[disk] -label=/ -instance=/ -interval=300 - -# Network interface monitoring -# -# If the instance is not specified, use the interface used for default route. -# The address can be forced to IPv4 or IPv6 with -4 or -6 switches. -[iface] -label= -interval=20 -separator=false -signal=11 - -[wifi] -instance=wlp4s0 -label=W: -interval=20 -separator=false -signal=11 - -[ipv6] -label= -command=ip -6 a show scope global | grep -q global && echo -e "ipv6\nipv6\n#A8FF00" || echo -e "ipv4\nipv4\n#cc0000" -interval=20 -signal=11 - -[bandwidth] -#instance=eth0 -interval=30 -signal=11 - -[load_average] -interval=20 - -# Battery indicator -# -# The battery instance defaults to 0. -[battery] -#label=bat -label=⚡ -#instance=1 -interval=30 -separator=false - -[power] -label= -command=zsh -c '[[ $(cat /sys/class/power_supply/BAT0/status) == "Discharging" ]] && printf "%.2f W" $(( $(cat /sys/class/power_supply/BAT0/power_now) / 1000000.0 )) || echo ""' -color=77bb33 -interval=30 -signal=10 - -# Date Time -# -[time] -command=date '+%Y-%m-%d %H:%M' -interval=60 - -# Temperature -# -# Support multiple chips, though lm-sensors. -# The script may be called with -w and -c switches to specify thresholds, -# see the script for details. -[temperature] -label= -interval=60 - -# Key indicators -# -# Add the following bindings to i3 config file: -# -# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks -# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks -#[keyindicator] -#instance=CAPS -#interval=once -#signal=11 - -#[keyindicator] -#instance=NUM -#interval=once -#signal=11 diff --git a/i3status.conf b/i3status.conf deleted file mode 100644 index 8d4744d..0000000 --- a/i3status.conf +++ /dev/null @@ -1,77 +0,0 @@ -general { - colors = true - interval = 10 - color_good = "#b5bd68" - color_bad = "#cc6666" -} - -order += "ipv6" -order += "disk /" -#order += "run_watch DHCP" -#order += "run_watch VPN" -order += "wireless wlp4s0" -order += "ethernet enp0s25" -order += "battery 1" -order += "battery 0" -order += "cpu_temperature 0" -order += "load" -order += "volume master" -order += "time" - -volume master { - format = "♪: %volume" - format_muted = "♪: muted (%volume)" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - - -wireless wlp4s0 { - format_up = "%essid %ip" - format_down = "" -} - -ethernet enp0s25 { - # if you use %speed, i3status requires root privileges - format_up = "E: %ip (%speed)" - format_down = "" -} - -battery 1 { - last_full_capacity = true - low_threshold = 15 - threshold_type = time - format = "%status %percentage %remaining (%consumption)" -} - -battery 0 { - last_full_capacity = true - low_threshold = 15 - threshold_type = time - format = "%status %percentage %remaining (%consumption)" -} - -run_watch DHCP { - pidfile = "/var/run/dhclient*.pid" -} - -run_watch VPN { - pidfile = "/var/run/vpnc/pid" -} - -time { - format = "%Y-%m-%d %H:%M:%S" -} - -load { - format = "%1min" -} - -cpu_temperature 0 { - format = "T: %degrees °C" -} - -disk "/" { - format = "/: %free" -} diff --git a/livestreamerrc b/livestreamerrc deleted file mode 100644 index 5818361..0000000 --- a/livestreamerrc +++ /dev/null @@ -1 +0,0 @@ -player=mpv --cache 2048 diff --git a/mbsyncrc b/mbsyncrc deleted file mode 100644 index 5d23b0d..0000000 --- a/mbsyncrc +++ /dev/null @@ -1,65 +0,0 @@ -IMAPAccount gmail -PipelineDepth 200 -Host imap.gmail.com -User kjetil.orbekk@gmail.com -PassCmd "cat /home/orbekk/.gmail-password" -SSLType IMAPS -CertificateFile /etc/ssl/certs/ca-certificates.crt - -IMAPStore gmail-remote -Account gmail - -MaildirStore gmail-local -Path ~/Maildir/ -Inbox ~/Maildir/Inbox - -# Channel sync-gmail-inbox -# Master :gmail-remote:"Inbox" -# Slave :gmail-local:inbox -# Create Slave -# -# Channel sync-gmail-sent -# Master :gmail-remote:"[Gmail]/Sent Mail" -# Slave :gmail-local:sent -# Create Slave -# -# Channel sync-gmail-drafts -# Master :gmail-remote:"[Gmail]/Drafts" -# Slave :gmail-local:drafts -# Create Slave -# -# Channel sync-gmail-trash -# Master :gmail-remote:"[Gmail]/Trash" -# Slave :gmail-local:trash -# Create Slave -# -# Channel sync-gmail-spam -# Master :gmail-remote:"[Gmail]/Spam" -# Slave :gmail-local:spam -# Create Slave -# -# Channel sync-gmail-starred -# Master :gmail-remote:"[Gmail]/Starred" -# Slave :gmail-local:starred -# Create Slave -# -# Channel sync-gmail-archive -# Master :gmail-remote:"[Gmail]/All Mail" -# Slave :gmail-local:archive -# Create Slave -# -# Group gmail -# Channel sync-gmail-inbox -# Channel sync-gmail-sent -# Channel sync-gmail-trash -# Channel sync-gmail-spam -# Channel sync-gmail-starred -# Channel sync-gmail-archive - -Channel gmail -Master :gmail-remote: -Slave :gmail-local: -Patterns INBOX ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Spam" "[Gmail]/Drafts" "[Gmail]/Sent" -Create Both -SyncState * - diff --git a/old/config/fish/config.fish b/old/config/fish/config.fish new file mode 100644 index 0000000..885e7bd --- /dev/null +++ b/old/config/fish/config.fish @@ -0,0 +1,6 @@ +bind \ec insert_cmd + +set -x EDITOR nvim +set -x TZ 'America/New_York' +set -x PATH "$HOME/bin" $PATH + diff --git a/old/config/fish/functions/__format_time.fish b/old/config/fish/functions/__format_time.fish new file mode 100644 index 0000000..298e4cb --- /dev/null +++ b/old/config/fish/functions/__format_time.fish @@ -0,0 +1,27 @@ +function __format_time -d "Format milliseconds to a human readable format" + set -l milliseconds $argv[1] + set -l seconds (math "$milliseconds / 1000 % 60") + set -l minutes (math "$milliseconds / 60000 % 60") + set -l hours (math "$milliseconds / 3600000 % 24") + set -l days (math "$milliseconds / 86400000") + set -l time + set -l threshold 5 + + if test $days -gt 0 + set time (command printf "$time%sd " $days) + end + + if test $hours -gt 0 + set time (command printf "$time%sh " $hours) + end + + if test $minutes -gt 0 + set time (command printf "$time%sm " $minutes) + end + + if test $seconds -gt $threshold + set time (command printf "$time%ss " $seconds) + end + + echo -e $time +end diff --git a/old/config/fish/functions/__parse_current_folder.fish b/old/config/fish/functions/__parse_current_folder.fish new file mode 100644 index 0000000..031b53e --- /dev/null +++ b/old/config/fish/functions/__parse_current_folder.fish @@ -0,0 +1,3 @@ +function __parse_current_folder -d "Replace '$HOME' with '~'" + pwd | sed "s|$HOME|~|" +end diff --git a/old/config/fish/functions/__parse_git_branch.fish b/old/config/fish/functions/__parse_git_branch.fish new file mode 100644 index 0000000..42b46fb --- /dev/null +++ b/old/config/fish/functions/__parse_git_branch.fish @@ -0,0 +1,4 @@ +function __parse_git_branch -d "Parse current Git branch name" + command git symbolic-ref --short HEAD ^/dev/null; + or command git show-ref --head -s --abbrev | head -n1 ^/dev/null +end diff --git a/old/config/fish/functions/fish_prompt.fish b/old/config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..bd142dd --- /dev/null +++ b/old/config/fish/functions/fish_prompt.fish @@ -0,0 +1,69 @@ +function fish_prompt --description 'Write out the prompt' + set -l last_status $status + + # Just calculate this once, to save a few cycles when displaying the prompt + if not set -q __fish_prompt_hostname + set -g __fish_prompt_hostname (hostname|cut -d . -f 1) + end + + set -l normal (set_color normal) + + # Hack; fish_config only copies the fish_prompt function (see #736) + if not set -q -g __fish_classic_git_functions_defined + set -g __fish_classic_git_functions_defined + + function __fish_repaint_user --on-variable fish_color_user --description "Event handler, repaint when fish_color_user changes" + if status --is-interactive + commandline -f repaint ^/dev/null + end + end + + function __fish_repaint_host --on-variable fish_color_host --description "Event handler, repaint when fish_color_host changes" + if status --is-interactive + commandline -f repaint ^/dev/null + end + end + + function __fish_repaint_status --on-variable fish_color_status --description "Event handler; repaint when fish_color_status changes" + if status --is-interactive + commandline -f repaint ^/dev/null + end + end + + function __fish_repaint_bind_mode --on-variable fish_key_bindings --description "Event handler; repaint when fish_key_bindings changes" + if status --is-interactive + commandline -f repaint ^/dev/null + end + end + + # initialize our new variables + if not set -q __fish_classic_git_prompt_initialized + set -qU fish_color_user; or set -U fish_color_user -o green + set -qU fish_color_host; or set -U fish_color_host -o cyan + set -qU fish_color_status; or set -U fish_color_status red + set -U __fish_classic_git_prompt_initialized + end + end + + set -l color_cwd + set -l prefix + switch $USER + case root toor + if set -q fish_color_cwd_root + set color_cwd $fish_color_cwd_root + else + set color_cwd $fish_color_cwd + end + set suffix '#' + case '*' + set color_cwd $fish_color_cwd + set suffix '>' + end + + set -l prompt_status + if test $last_status -ne 0 + set prompt_status ' ' (set_color $fish_color_status) "[$last_status]" "$normal" + end + + echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $fish_color_host) "$__fish_prompt_hostname" $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (__fish_vcs_prompt) $normal $prompt_status "> " +end diff --git a/old/config/fish/functions/insert_cmd.fish b/old/config/fish/functions/insert_cmd.fish new file mode 100644 index 0000000..b167734 --- /dev/null +++ b/old/config/fish/functions/insert_cmd.fish @@ -0,0 +1,3 @@ +function insert_cmd + commandline -i (pwd) +end diff --git a/old/vimrc b/old/vimrc new file mode 100755 index 0000000..32e6fc5 --- /dev/null +++ b/old/vimrc @@ -0,0 +1,109 @@ +let mapleader = "," +syntax on + +filetype off +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" TODO(orbekk): Try ctrlp.vim instead. +" Plugin 'wincent/command-t' +" Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'chriskempson/base16-vim' +Plugin 'chriskempson/vim-tomorrow-theme' +Plugin 'gmarik/Vundle.vim' +Plugin 'Shougo/vimproc.vim' +Plugin 'Shougo/unite.vim' +Plugin 'Shougo/unite-outline' +Plugin 'Shougo/neomru.vim' +call vundle#end() + +set modeline +set tabpagemax=20 +set autoread +set noswapfile +set timeoutlen=1000 +set ignorecase +set expandtab +set shiftwidth=2 +set softtabstop=2 +set smarttab +set smartcase +set incsearch +set autoindent +set formatoptions=crt +setglobal fileencoding=utf-8 +set fileencodings=ucs-bomb,utf-8,latin1 +set virtualedit=block +set hidden +set confirm +inoremap +set hlsearch + +filetype plugin on +filetype indent on + +setlocal complete+=ktags + +nmap :silent noh +map cd :cd %:p:h:pwd + +if executable('ag') +let g:unite_source_grep_command = 'ag' +let g:unite_source_grep_default_opts = +\ '-i --vimgrep --ignore ' . +\ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr''' +endif + +let g:unite_source_history_yank_enable = 1 +call unite#filters#matcher_default#use(['matcher_fuzzy']) +nnoremap t :Unite -no-split -buffer-name=files -start-insert file_mru file_rec/async:. +nnoremap r :Unite -no-split -buffer-name=mru -start-insert file_rec/git +nnoremap O :Unite -no-split -buffer-name=outline outline +nnoremap y :Unite -no-split -buffer-name=yank history/yank +nnoremap b :Unite -no-split -buffer-name=buffer buffer bookmark +nnoremap g :Unite -no-split -buffer-name=grep -start-insert grep:. + +" map t :CtrlP +" map b :CtrlPBuffer +" map r :CtrlPMRU + +set wildignore+=*.class,target/*,project/* + +"set guifont=DroidSansMono\ 10 +set guifont="Source Code Pro 10" +set guioptions-=m +set guioptions-=M +set guioptions-=T +set guioptions-=r +set guioptions-=L + +set colorcolumn=81 + +map R :source ~/.vimrc + +function! GetFileBase() + return substitute(expand("%"), + \ '\(.\{-}\)\(_test\|_unittest\)\?\.\(h\|cc\)$', '\1', "") +endfunction + +" Switch between cc, h, test/unittest files. +function! EditCc() + exec "edit " . fnameescape(GetFileBase() . ".cc") +endfunction +map cc :silent :call EditCc() + +function! EditH() + exec "edit " . fnameescape(GetFileBase() . ".h") +endfunction +map h :silent :call EditH() + +function! EditTest() + let file_base = GetFileBase() + if (filereadable(file_base . "_unittest.cc")) + exec "edit " . fnameescape(file_base . "_unittest.cc") + else + exec "edit " . fnameescape(file_base . "_test.cc") + endif +endfunction +map te :silent :call EditTest() + +source ~/.vimrc.local diff --git a/taskrc b/taskrc deleted file mode 100644 index 3c1d1ca..0000000 --- a/taskrc +++ /dev/null @@ -1,80 +0,0 @@ -# [Created by task 2.2.0 6/9/2015 11:33:17] -# Taskwarrior program configuration file. -# For more documentation, see http://taskwarrior.org or try 'man task', 'man task-faq', -# 'man task-tutorial', 'man task-color', 'man task-sync' or 'man taskrc' - -# Here is an example of entries that use the default, override and blank values -# variable=foo -- By specifying a value, this overrides the default -# variable= -- By specifying no value, this means no default -# #variable=foo -- By commenting out the line, or deleting it, this uses the default - -# Use the command 'task show' to see all defaults and overrides - -# Files -data.location=~/.task - -report.gtd.columns=tags,id,description,project,due -report.gtd.description=List GTD style task -report.gtd.filter=status:pending limit:page +next -report.gtd.labels=Context,ID,Task,Project,Due -report.gtd.sort=tags+,due+,project+,description+ - -# Color theme (uncomment one to use) -#include /usr/share/task/light-16.theme -# include /usr/share/task/light-256.theme -#include /usr/share/task/dark-16.theme -include /usr/share/task/dark-256.theme -#include /usr/share/task/dark-red-256.theme -#include /usr/share/task/dark-green-256.theme -#include /usr/share/task/dark-blue-256.theme -#include /usr/share/task/dark-violets-256.theme -#include /usr/share/task/dark-yellow-green.theme -#include /usr/share/task/dark-gray-256.theme -#include /usr/share/task/solarized-light-256.theme -# Copy of light-256.theme: -#color=on -#color.header=color4 -#color.footnote=color4 -#color.error=color4 -#color.debug=color4 -#color.summary.bar=black on rgb141 -#color.summary.background=white on color0 -#color.history.add=color0 on rgb500 -#color.history.done=color0 on rgb050 -#color.history.delete=color0 on rgb550 -#color.burndown.pending=on rgb200 -#color.burndown.started=on rgb520 -#color.burndown.done=on rgb011 -#color.sync.added=rgb011 -#color.sync.changed=rgb520 -#color.sync.rejected=rgb200 -#color.undo.before=color1 -#color.undo.after=color2 -#color.calendar.today=color15 on rgb013 -#color.calendar.due=color0 on color9 -#color.calendar.due.today=color15 on color1 -#color.calendar.overdue=color0 on color1 -#color.calendar.weekend=on color253 -#color.calendar.holiday=color0 on color3 -#color.calendar.weeknumber=rgb013 -#color.recurring=rgb013 -#color.overdue=color1 -#color.due.today=rgb400 -#color.due=color9 -#color.active=rgb210 -#color.pri.none= -#color.pri.H=color232 -#color.pri.M=color237 -#color.pri.L=color242 -#color.tagged=rgb020 -#color.blocked=gray12 on gray4 -#color.blocking=gray12 on gray6 -#color.project.none= -#color.tag.none= -#color.alternate=on color254 - -# Custom colors -color.blocking=rgb111 on rgb543 -color.blocked=rgb222 -due=4 -urgency.user.tag.waiting.coefficient=-6.0 diff --git a/vimrc b/vimrc deleted file mode 100755 index 32e6fc5..0000000 --- a/vimrc +++ /dev/null @@ -1,109 +0,0 @@ -let mapleader = "," -syntax on - -filetype off -set rtp+=~/.vim/bundle/Vundle.vim -call vundle#begin() -" TODO(orbekk): Try ctrlp.vim instead. -" Plugin 'wincent/command-t' -" Plugin 'ctrlpvim/ctrlp.vim' -Plugin 'chriskempson/base16-vim' -Plugin 'chriskempson/vim-tomorrow-theme' -Plugin 'gmarik/Vundle.vim' -Plugin 'Shougo/vimproc.vim' -Plugin 'Shougo/unite.vim' -Plugin 'Shougo/unite-outline' -Plugin 'Shougo/neomru.vim' -call vundle#end() - -set modeline -set tabpagemax=20 -set autoread -set noswapfile -set timeoutlen=1000 -set ignorecase -set expandtab -set shiftwidth=2 -set softtabstop=2 -set smarttab -set smartcase -set incsearch -set autoindent -set formatoptions=crt -setglobal fileencoding=utf-8 -set fileencodings=ucs-bomb,utf-8,latin1 -set virtualedit=block -set hidden -set confirm -inoremap -set hlsearch - -filetype plugin on -filetype indent on - -setlocal complete+=ktags - -nmap :silent noh -map cd :cd %:p:h:pwd - -if executable('ag') -let g:unite_source_grep_command = 'ag' -let g:unite_source_grep_default_opts = -\ '-i --vimgrep --ignore ' . -\ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr''' -endif - -let g:unite_source_history_yank_enable = 1 -call unite#filters#matcher_default#use(['matcher_fuzzy']) -nnoremap t :Unite -no-split -buffer-name=files -start-insert file_mru file_rec/async:. -nnoremap r :Unite -no-split -buffer-name=mru -start-insert file_rec/git -nnoremap O :Unite -no-split -buffer-name=outline outline -nnoremap y :Unite -no-split -buffer-name=yank history/yank -nnoremap b :Unite -no-split -buffer-name=buffer buffer bookmark -nnoremap g :Unite -no-split -buffer-name=grep -start-insert grep:. - -" map t :CtrlP -" map b :CtrlPBuffer -" map r :CtrlPMRU - -set wildignore+=*.class,target/*,project/* - -"set guifont=DroidSansMono\ 10 -set guifont="Source Code Pro 10" -set guioptions-=m -set guioptions-=M -set guioptions-=T -set guioptions-=r -set guioptions-=L - -set colorcolumn=81 - -map R :source ~/.vimrc - -function! GetFileBase() - return substitute(expand("%"), - \ '\(.\{-}\)\(_test\|_unittest\)\?\.\(h\|cc\)$', '\1', "") -endfunction - -" Switch between cc, h, test/unittest files. -function! EditCc() - exec "edit " . fnameescape(GetFileBase() . ".cc") -endfunction -map cc :silent :call EditCc() - -function! EditH() - exec "edit " . fnameescape(GetFileBase() . ".h") -endfunction -map h :silent :call EditH() - -function! EditTest() - let file_base = GetFileBase() - if (filereadable(file_base . "_unittest.cc")) - exec "edit " . fnameescape(file_base . "_unittest.cc") - else - exec "edit " . fnameescape(file_base . "_test.cc") - endif -endfunction -map te :silent :call EditTest() - -source ~/.vimrc.local diff --git a/xbindkeysrc-pincer b/xbindkeysrc-pincer deleted file mode 100644 index a72b809..0000000 --- a/xbindkeysrc-pincer +++ /dev/null @@ -1,20 +0,0 @@ -"/home/orbekk/bin/brightness.sh + && pkill -RTMIN+10 i3blocks" - XF86MonBrightnessUp - -"/home/orbekk/bin/brightness.sh - && pkill -RTMIN+10 i3blocks" - XF86MonBrightnessDown - -"amixer -c 1 set Master 1dB- && pkill -RTMIN+10 i3blocks" - XF86AudioLowerVolume - -"amixer -c 1 set Master 1dB+ && pkill -RTMIN+10 i3blocks" - XF86AudioRaiseVolume - -"amixer -c 1 set Master toggle && pkill -RTMIN+10 i3blocks" - XF86AudioMute - -"amixer -c 1 set Mic toggle && pkill -RTMIN+10 i3blocks" - XF86AudioMicMute - -"i3lock -c 2A3462" - XF86Tools -- cgit v1.2.3