Commit f824babb authored by Naoki OKAMURA's avatar Naoki OKAMURA

wip: splitted dotfiles to other repository

parent e1c56598
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
Name=InSync Daemon
Commment=Launch InSync Daemon as command line
Path=/run/current-system/sw/bin
Exec=insync start --no-daemon
Icon=web-google-drive
Terminal=false
Categories=System;Daemon
#!/usr/bin/env sh
# BSPWM Configuration
# ===================
bspc config normal_border_color '#F9F9F9'
bspc config active_border_color '#CCFF00'
bspc config focused_border_color '#00CCFF'
bspc config presel_feedback_color '#FFCC33'
bspc config top_padding 48
bspc config left_padding 0
bspc config bottom_padding 0
bspc config right_padding 0
bspc config window_gap 48
bspc config border_width 3
bspc monitor -d 1 2 3 4 5 6 7 8 9
bspc config click_to_focus button1
bspc config focus_follows_pointer true
bspc config external_rules_command /etc/nixos/dotfiles/nyarla/bspwm/rules
# Desktop Configuration
# =====================
# Wallpaper
# ---------
hsetroot -full /etc/nixos/dotfiles/nyarla/xorg/wallpaper.jpg
# Polybar
# -------
/etc/nixos/dotfiles/nyarla/polybar/launch.sh &
# Startup Configuartion
# =====================
# Dropbox
# -------
if ! pgrep dropbox && test -e /dev/sda1 ; then
gio mount -d "$(readlink -e /dev/disk/by-uuid/813eda2b-63cb-4cbe-8dd4-5f02c090273b)"
gocryptfs -config /run/media/nyarla/LINUX/Vault/gocryptfs.conf \
-allow_other \
-passfile /etc/gocryptfs/password \
/run/media/nyarla/LINUX/Dropbox/Encrypted \
/run/media/nyarla/LINUX/Decrypted
dropbox &
fi
# Network Manager
# ---------------
nm-applet &
# Input Method
# ------------
"$(nix-store -r $(nix-store -qd $(which dconf)) | grep -vP "\-\w+$")"/libexec/dconf-service &
P="$(nix-store -r $(nix-store -qd $(which ibus-setup)))"
$P/bin/ibus-daemon -drx --config=$P/libexec/ibus-dconf
unset P
#!/bin/sh
wid=$1
class=$2
if [[ "${class}" =~ ^jetbrains-.*$ ]] && [[ "$(xtitle "${wid}")" =~ ^win[0-9]*$ ]] ; then
echo "manage=off"
exit 0
fi
if [[ "${class}" =~ ^Ibus-ui-* ]] ; then
echo "manage=off"
exit 0
fi
@echo off
prompt $_$E[34m$P$E[39m$_$E[35m$E[39m
doskey ls=ls --color=auto -F $*
doskey clear=cls
if "%CMD_INIT_SCRIPT_LOADED%" neq "" goto :eof
set CMD_INIT_SRIPT_LOADED=1
set TERM=xterm-256color
set LANG=ja_JP.SJIS
set HOMEDRIVE=C:
set HOMEPATH=\msys64\home\nyarla
set HOME=%HOMEDRIVE%%HOMEPATH%
set PREFIX_MSYS2=C:\msys64
set PREFIX_APPS=Z:\platforms\Windows
set GOPATH=C:\msys64\home\nyarla\dev
set GOROOT=%PREFIX_APPS%\go
set PATH=%PREFIX_APPS%\vim;%GOROOT%\bin;%PATH%
set PATH=%PREFIX_MSYS2%\usr\bin;%PREFIX_MSYS2%\mingw64\bin;%PREFIX_MSYS2%\mingw32\bin;%PATH%
cls
[global]
# appearance
monitor = 0
geometry = "3840x48+0+0"
transparency = 0
notification_height = 0
separator_height = 0
padding = 2
horizontal_padding = 2
frame_width = 2
frame_color = "#FFFFFF"
separator_color = frame
font = "Monospace 13"
line_height = 1.414
format = "<b>%s</b>: %b"
alignment = left
word_wrap = no
icon_position = left
max_icon_size = 32
# behavior
follow = mouse
indicate_hidden = yes
shrink = no
sort = true
idle_threshold = 120
markup = full
show_age_threshold = 60
ignore_newline = yes
stack_duplicates = true
hide_duplicate_count = true
show_indicators = yes
sticky_history = yes
history_length = 20
always_run_script = true
title = Dunst
class = Dunst
startup_notification = false
force_xinerama = false
# paths
browser = firefox -new-tab
icon_folders = /home/nyarla/.icons/Newaita/actions/32@2x:/home/nyarla/.icons/Newaita/apps/32@2x:/home/nyarla/.icons/Newaita/categories/32@2x:/home/nyarla/.icons/Newaita/devices/32@2x:/home/nyarla/.icons/Newaita/status/32@2x
[experimental]
per_monitor_dpi = false
[shortcuts]
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+grave
context = ctrl+shift+period
[urgency_low]
background = "#F9F9F9"
foreground = "#000000"
frame_color = "#CCCCCC"
timeout = 10
[urgency_normal]
background = "#FFCC33"
foreground = "#000000"
frame_color = "#CC9900"
timeout = 10
[urgency_critical]
background = "#FF0000"
foreground = "#000000"
frame_color = "#CC0000"
timeout = 0
# vim: ft=cfg
[color]
ui = true
[user]
name = nyarla
email = nyarla@thotep.net
[alias]
co = checkout
ci = commit
st = status
[core]
excludesfile = ~/.gitignore
fileMode = false
preloadindex = true
fscache = true
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
._*
Icon
Thumbs.db
ehthumbs.db
*.swp
*.swo
*.orig
*~
\#*\#
/tags
.netrwhist
DEFAULT=MyricaM M
U+25A0-25FF=Menlo
U+2700-27BF=Menlo
black=#000000
red=#CC0000
green=#99CC00
yellow=#CC9900
blue=#0099CC
magenta=#CC00CC
cyan=#009999
white=#CCCCCC
hl_black=#666666
hl_red=#FF6633
hl_green=#CCFF00
hl_yellow=#FFCC33
hl_blue=#00CCFF
hl_magenta=#FF00FF
hl_cyan=#00CCCC
hl_white=#F9F9F9
# Terminal
# ========
use_login_shell = true
termtype = xterm-256color
encoding = UTF-8
col_size_of_width_a = 2
# Font
# ====
fontsize = 30
use_anti_alias = true
box_drawing_font = decsp
# Appearance
# ==========
scrollbar_mode = false
fg_color = hl_white
bg_color = #191919
vt_color_mode = true
cursor_bg_color = hl_green
cursor_fg_color = hl_black
line_space = 6
blink_cursor = true
# Others
# ======
use_xim = true
input_method = ibus:skk
tab_size = 2
log_size = 4096
mod_meta_key = alt
mod_meta_mode = esc
use_clipboard = true
#Terminal
use_login_shell = true
termtype = xterm-256color
# Encoding
encoding = UTF-8
col_size_of_width_a = 2
use_ctl = false
# Keyboard
mod_meta_key = alt
mod_meta_mode = esc
# Font
fontsize = 14
# Appearance
use_mdi = false
scrollbar_mode = false
line_space=3
fg_color = hl_white
bg_color = #242424
blink_cursor = false
vt_color_mode = true
cursor_bg_color = hl_black
cursor_fg_color = hl_white
# Others
tabsize = 2
logsize = 4096
# vim: ft=conf
[colors]
gray-brightest = #FFFFFF
gray-brighter = #F9F9F9
gray-bright = #CCCCCC
gray-dark = #666666
gray-darker = #333333
gray-darkest = #000000
red-bright = #FF0000
red-dark = #CC0000
orange-bright = #FF6633
orange-dark = #CC6600
yellow-bright = #FFCC33
yellow-dark = #CC9900
lime-bright = #CCFF00
lime-dark = #99CC00
green-bright = #00CC00
green-dark = #009900
mint-bright = #00CC99
mint-dark = #009966
cyan-bright = #00CCCC
cyan-adark = #009999
sky-bright = #00CCFF
sky-dark = #0099CC
blue-bright = #0000FF
blue-dark = #0000CC
purple-bright = #9900CC
purple-dark = #660099
magenta-bright = #CC00CC
magenta-dark = #990099
wine-bright = #CC3366
wine-dark = #990033
[bar/main]
monitor = eDP-1
# monitor = rdp0
offset-x = 0
offset-y = 0
width = 3840
height = 48
font-0 = "MyricaM M:size=24;3"
font-1 = "Symbols Nerd Font:size=24;3"
background = #81191919
foreground = #F0F9F9
border-size = 0
module-margin-left = 1
modules-left = userhost title
modules-center = bspwm
modules-right = datetime cpu memory volume network battery
tray-position = right
tray-maxsize = 32
tray-scale = 1.0
line-size = 3
line-color = ${colors.gray-brighter}
[module/bspwm]
type = internal/bspwm
enable-click = true
enable-scroll = true
label-focused = "%icon% %name% "
label-focused-underline = ${colors.lime-bright}
label-occupied = "%icon% %name% "
label-occupied-underline = ${colors.sky-bright}
label-uegent = "%icon% %name% "
label-urgent-background = ${colors.red-bright}
label-urgent-foreground = ${colors.gray-brightest}
label-empty = "%icon% %name% "
label-empty-foreground = ${colors.gray-bright}
[module/title]
type = internal/xwindow
format = <label>
label = %{F#CCFF00}%{F-} %{B}%title%%{B-}
label-maxlen = 64
[module/volume]
type = internal/pulseaudio
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
use-ui-max = false
interval = 1
format-volume = %{A2:polybar-pulseaudio-volume.sh 2 &:}%{A3:pavucontrol &:}<ramp-volume> <label-volume>%{A}%{A}
format-mute = %{A2:polybar-pulseaudio-volume.sh 2 &:}%{A3:pavucontrol &:}<label-mute>%{A}{A}
label-volume = %percentage%%
label-muted = %{F#FF6633}%{F-} ---
ramp-volume-0 = %{F#00CCFF}%{F-}
ramp-volume-1 = %{F#CCFF00}%{F-}
ramp-volume-2 = %{F#FFCC33}%{F-}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
time-format = %H:%M
format-charging = "%{F#FFCC00}%{F-} %percentage%% <ramp-capacity>"
format-discharging = "%{F#CCCCCD}%{F-} %percentage% <ramp-capacity>"
format-full = "%{F#CCFF00}%{F-} 100% <ramp-capacity>"
ramp-capacity-0 = %{F#FF0000}%{F-}
ramp-capacity-1 = %{F#FF6633}%{F-}
ramp-capacity-2 = %{F#FFCC33}%{F-}
ramp-capacity-3 = %{F#CCFF00}%{F-}
ramp-capacity-4 = %{F#CCFF00}%{F-}
[module/network]
type = internal/network
interface = wlp2s0
format-connected = %{F#9CD9F0}%{F-} <label-connected>
format-disconnetted = %{F#5D5D5D}%{F-} <label-disconnected>
label-connected = %essid%
label-disconnected = none
[module/datetime]
type = internal/date
interval = 1.0
date = %Y-%m-%d
time = %H:%M:%S (%a)
format = %{F#00CCCC}%{F-} <label>
label = %{A1:zenity --calendar --text Display &:}%date%T%time%%{A}
[module/userhost]
type = custom/script
exec = "sh -c 'echo $(id -un)@$(hostname)'"
tail = false
format = "%{F#00CCFF} %{F-} <label>"
[module/cpu]
type = internal/cpu
format = <ramp-load>
ramp-load-0 = %{F#72B3CC}▁%{F-}
ramp-load-1 = %{F#72B3CC}▂%{F-}
ramp-load-2 = %{F#8EB33B}▃%{F-}
ramp-load-3 = %{F#8EB33B}▄%{F-}
ramp-load-4 = %{F#D0B03B}▅%{F-}
ramp-load-5 = %{F#D0B03B}▆%{F-}
ramp-load-6 = %{F#C75646}▇%{F-}
ramp-load-7 = %{F#C75646}█%{F-}
[module/memory]
type = internal/memory
format = %{F#5D5D5D}%{F-} <label>
label = %gb_used:0:4%GB
#!/usr/bin/env bash
pkill polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
case "${PATH}" in
*:/etc/nixos/scripts:*) ;;
*) export PATH=/etc/nixos/scripts:$PATH
esac
polybar -c /etc/nixos/dotfiles/nyarla/polybar/config main &
[Desktop Entry]
Name=Edit the.kalaclista.com
Exec=/etc/nixos/scripts/protocol-kalaclista-website.pl %u
Icon=text-markdown
Type=Application
Terminal=false
MimeType=x-scheme-handler/kalaclista;
all: clean SKK-JISYO.XL
SKK-JISYO.XL: \
SKK-JISYO.S \
SKK-JISYO.M \
SKK-JISYO.ML \
SKK-JISYO.L \
SKK-JISYO.fullname \
SKK-JISYO.geo \
SKK-JISYO.jinmei \
SKK-JISYO.law \
SKK-JISYO.okinawa \
SKK-JISYO.propernoun \
SKK-JISYO.pubdic+ \
SKK-JISYO.station
echo ';; -*- mode: fundamental; coding: euc-jp -*-' >SKK-JISYO.XL
skkdic-expr2 $(shell sh -c 'ls SKK-JISYO.* | tr "\n" " " | sed "s! ! + !g" | sed "s!\+ \$$!!"') >>SKK-JISYO.XL
SKK-JISYO.%:
curl -O https://raw.githubusercontent.com/skk-dev/dict/master/SKK-JISYO.$*
clean:
rm -rf SKK-JISYO.*
deploy: SKK-JISYO.XL
test -d $(HOME)/.config/skk || mkdir -p $(HOME)/.config/skk
cp SKK-JISYO.XL $(HOME)/.config/skk/
# Applications
# ============
super + a ; c
caja
super + a ; d
deadbeef
super + a ; g
chromium
super + a ; l
sh /etc/nixos/scripts/rofi-application-launch.sh
super + a ; q
bspc quit
super + a ; r
sh /etc/nixos/dotfiles/nyarla/bspwm/bspwmrc && pkill -SIGUSR1 sxhkd
super + a ; t
mlterm
super + a ; x
bspc node focused -c
super + a ; X
bspc node focused -k
super + l
dm-tool switch-to-greeter
# Desktops
# ========
super + a ; {1,2,3,4,5,6,7,8,9}
bspc desktop -f {1,2,3,4,5,6,7,8,9}
# Windows
# =======
super + shift + Left
bspc node -s west || bspc node -s east
super + shift + Right
bspc node -s east || bspc node -s west
super + shift + Up
bspc node -s north || bspc node -s south
super + shift + Down
bspc node -s south || bspc node -s north
super + ctrl + {Up,Left,Right,Down}
bspc node -f {north,west,east,south}
super + alt + Left
bspc node -z right -10 0 || bspc node -z left -10 0
super + alt + Right
bspc node -z right 10 0 || bspc node -z left 10 0
super + alt + Up
bspc node -z top 0 -10 || bspc node -z bottom 0 -10
super + alt + Down
bspc node -z top 0 10 || bspc node -z bottom 0 10
super + {Left,Right}
bspc desktop -f {prev,next}
# Multimedia Keys
# ===============
XF86AudioRaiseVolume
pactl set-sink-mute 1 false ; pactl set-sink-volume 1 +1%
XF86AudioLowerVolume
pactl set-sink-mute 1 false ; pactl set-sink-volume 1 -1%
XF86AudioMute
pactl set-sink-mute 1 toggle
XF86MonBrightnessDown
light -U 10%
XF86MonBrightnessUp
light -A 10%
XF86Search
sh -c /etc/nixos/scripts/bemenu-application-launch.sh
# Behavior
# =======
# window and pane
# ---------------
set-option -g pane-border-ascii on
set-option -g base-index 1
set-window-option -g pane-base-index 1
set-window-option -g aggressive-resize on
# status bar
# ----------
set-option -g status-position top
set-option -g status-interval 1
set-option -g message-command-style "bg=default,fg=brightblue"
set-option -g message-style "bg=default,fg=brightwhite"
set-option -g status-style "bg=default,fg=brightwhite"
set-option -g status-left " #{?pane_in_mode,#[fg=brightmagenta]类#[default],#[fg=blue]#[default]} "
set-option -g status-right "#[fg=brightyellow]#[default] %Y-%m-%d %H:%M:%S #[fg=brightblue]#[default] #(echo $USER) #[fg=brightgreen]#[default] #(hostname)"
set-option -g status-right-length 80
set-window-option -g window-status-current-format "#[fg=brightgreen]#[bold]#[default] #W"
set-window-option -g window-status-format "#[bold]#I#[default]:#W"
# pane status
# -----------
set-option -g pane-border-status bottom
set-option -g pane-border-format " #[fg=brightwhite]#[bold]#{pane_index}: #T #[default]"
# terminal
# --------
set-option -g default-terminal "tmux-256color"
set-option -g set-clipboard on
set-option -g escape-time 1
set-option -g default-command "${SHELL}"
# KeyBindings
# ===========
# reset
# -----
unbind-key -n "C-t"
unbind-key -T "copy-mode-vi" v
unbind-key -T "copy-mode-vi" y
unbind-key -T "copy-mode-vi" Enter
unbind-key ":"
unbind-key "c"
unbind-key "p"
unbind-key "q"
unbind-key "r"
unbind-key "x"
unbind-key "X"
unbind-key "1"
unbind-key "2"
unbind-key "3"
unbind-key "4"
unbind-key "5"
unbind-key "6"
unbind-key "7"
unbind-key "8"
unbind-key "9"
unbind-key "|"
unbind-key "-"
unbind-key -n "M-Left"
unbind-key -n "M-Right"
unbind-key -n "M-Up"
unbind-key -n "M-Down"
unbind-key -n "C-M-Left"
unbind-key -n "C-M-Right"
unbind-key -n "C-M-Up"
unbind-key -n "C-M-Down"
unbind-key -n "S-M-Left"
unbind-key -n "S-M-Right"
unbind-key -n "S-M-Up"
unbind-key -n "S-M-Down"
set-option -g mouse on
set-window-option -g alternate-screen on
set-option -g mode-keys vi
set-option -g prefix "C-t"
# bindings
# --------
bind-key -T "copy-mode-vi" v send-keys -X begin-selection
bind-key -T "copy-mode-vi" y send-keys -X copy-pipe-and-cancel "clipboard set"
bind-key -T "copy-mode-vi" Enter send-keys -X copy-pipe-and-cancel "clipboard set"
bind-key -T "copy-mode-vi" i send-keys -X cancel
bind-key ":" command-prompt
bind-key "c" new-window
bind-key "p" run "clipboard get | tmux load-buffer - && tmux paste-buffer"
bind-key "q" kill-server
bind-key "r" source-file "$HOME/.tmux.conf" \; display-message "  ~/.tmux.conf is reloaded."
bind-key "v" copy-mode
bind-key "x" kill-pane