some dotfiles and tools

This commit is contained in:
He4eT 2018-08-29 01:32:41 +05:00
commit c0b7d66189
11 changed files with 775 additions and 0 deletions

23
apply.sh Executable file
View file

@ -0,0 +1,23 @@
# .Xresources
ln -sv ~/dotfiles/root/.Xresources ~/.Xresources
# .Xresources
rm ~/.zshrc
ln -sv ~/dotfiles/root/.zshrc ~/.zshrc
# i3
mkdir -p ~/.config/i3
ln -sv ~/dotfiles/i3/config ~/.config/i3/config
# polybar
mkdir -p ~/.config/polybar
ln -sv ~/dotfiles/polybar/config ~/.config/polybar/config
# rofi
mkdir -p ~/.config/rofi
ln -sv ~/dotfiles/rofi/config ~/.config/rofi/config
ln -sv ~/dotfiles/rofi/paper-float.rasi ~/.config/rofi/paper-float.rasi
# oomox
mkdir -p ~/.config/oomox/colors
ln -sv ~/dotfiles/oomox/colors/gray ~/.config/oomox/colors/gray

10
firefox/userChrome.css Normal file
View file

@ -0,0 +1,10 @@
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
display: none;
}

201
i3/config Normal file
View file

@ -0,0 +1,201 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# class border backgr. text indicator child_border b9b9b9
client.focused #000000 #000000 #ffffff #ffffff #b9b9b9
client.focused_inactive #000000 #000000 #ffffff #ffffff #000000
client.unfocused #000000 #000000 #999999 #ffffff #000000
client.urgent #000000 #000000 #ffffff #ffffff #000000
client.placeholder #000000 #000000 #ffffff #ffffff #000000
client.background #ffffff
gaps inner 30
# exec --no-startup-id compton -cfb -D 5 --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 0.5
exec --no-startup-id compton -cb --shadow-exclude '_NET_WM_NAME@:s = "rofi"' -o 1
exec --no-startup-id polybar example
# 2
for_window [class="^.*"] border pixel 3
# new_window 1pixel
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# font pango:monospace 8
font pango:terminus 16
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesnt scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec rofi -show run
bindsym $mod+Tab exec rofi -show window
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+colon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
workspace 1 gaps inner 0
hide_edge_borders both
bindsym $mod+Ctrl+Left workspace prev
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+j workspace prev
bindsym $mod+Ctrl+k workspace next
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
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+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# 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 exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# status_command i3status
#}

14
installPackages.sh Executable file
View file

@ -0,0 +1,14 @@
sudo apt install \
rxvt-unicode-256color \
fonts-font-awesome \
xfonts-terminus \
lxappearance \
curl \
htop \
gimp \
node \
rofi \
git \
mc
sudo update-alternatives --config x-terminal-emulator

47
oomox/colors/gray Normal file
View file

@ -0,0 +1,47 @@
ACCENT_BG=686868
BASE16_GENERATE_DARK=False
BG=b9b9b9
BTN_BG=cccccc
BTN_FG=101010
BTN_OUTLINE_OFFSET=0
BTN_OUTLINE_WIDTH=2
CARET1_FG=252525
CARET2_FG=252525
CARET_SIZE=0.04
CINNAMON_OPACITY=1.0
FG=101010
GNOME_SHELL_PANEL_OPACITY=0.6
GRADIENT=0.0
GTK3_GENERATE_DARK=True
HDR_BTN_BG=b5b5b5
HDR_BTN_FG=252525
ICONS_ARCHDROID=686868
ICONS_DARK=525252
ICONS_LIGHT=868686
ICONS_LIGHT_FOLDER=868686
ICONS_MEDIUM=686868
ICONS_STYLE=archdroid
MATERIA_STYLE_COMPACT=True
MENU_BG=b9b9b9
MENU_FG=252525
NAME=gray
OUTLINE_WIDTH=2
ROUNDNESS=0
SEL_BG=999999
SEL_FG=101010
SPACING=5
SPOTIFY_PROTO_BG=ababab
SPOTIFY_PROTO_FG=252525
SPOTIFY_PROTO_SEL=686868
TERMINAL_ACCENT_COLOR=999999
TERMINAL_BACKGROUND=e3e3e3
TERMINAL_BASE_TEMPLATE=material
TERMINAL_FOREGROUND=252525
TERMINAL_THEME_AUTO_BGFG=True
TERMINAL_THEME_MODE=auto
THEME_STYLE=oomox
TXT_BG=e3e3e3
TXT_FG=252525
UNITY_DEFAULT_LAUNCHER_STYLE=False
WM_BORDER_FOCUS=686868
WM_BORDER_UNFOCUS=ababab

215
polybar/config Normal file
View file

@ -0,0 +1,215 @@
[colors]
background = #222
background-alt = #444
foreground = #dfdfdf
foreground-alt = #999
primary = #444
[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 30
radius = 0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
border-size = 0
padding-left = 0
padding-right = 2
module-margin-left = 4
module-margin-right = 4
;font-0 = Noto Sans:size=11;1
font-0 = NotoSans-Regular:size=11;1
font-1 = FontAwesome:size=10;2
font-2 = Unifont:size=6;1
modules-left = i3 xwindow
;modules-center = cpu memory
;modules-right = volume xkeyboard memory cpu wlan eth battery temperature date powermenu
modules-right = xkeyboard volume wlan eth battery date
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;tray-transparent = true
;wm-restack = i3
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
;i3
[module/i3]
type = internal/i3
format = <label-state><label-mode>
index-sort = true
wrapping-scroll = false
strip-wsnumbers = true
; Only show workspaces on the same output as the bar
;pin-workspaces = true
label-mode-padding = 2
label-mode-foreground = ${colors.foreground}
label-mode-background = ${colors.primary}
label-mode-underline = ${colors.foreground}
; focused = Active workspace on focused monitor
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline = ${colors.foreground}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = ${self.label-focused-padding}
; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
;label-urgent = %index%
;label-urgent-background = ${module/bspwm.label-urgent-background}
;label-urgent-padding = ${module/bspwm.label-urgent-padding}
;title
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
;lang
[module/xkeyboard]
type = internal/xkeyboard
format = <label-indicator><label-layout>
blacklist-0 = num lock
label-layout-padding = 2
label-layout-underline = ${colors.foreground}
label-indicator-font = 1
label-indicator = 
label-indicator-underline = ${colors.foreground}
;cpu
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "cpu "
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #f90000
label = %percentage%%
;mem
[module/memory]
type = internal/memory
interval = 2
format-prefix = "ram "
format-prefix-foreground = ${colors.foreground-alt}
;format-underline = #4bffdc
label = %percentage_used%%
;network
[module/wlan]
type = internal/network
interface = wlan0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp0s3
interval = 3.0
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
;backlight
;volume
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = 
label-volume-foreground = ${root.foreground}
format-muted-foreground = #444
label-muted =   ═══════════════════
bar-volume-width = 20
bar-volume-foreground-0 = #555
bar-volume-foreground-1 = #666
bar-volume-foreground-2 = #777
bar-volume-foreground-3 = #888
bar-volume-foreground-4 = #999
bar-volume-foreground-5 = #aaa
bar-volume-foreground-6 = #fff
bar-volume-gradient = false
bar-volume-indicator =
bar-volume-indicator-font = 0
bar-volume-fill = ═
bar-volume-fill-font = 1
bar-volume-empty = ═
bar-volume-empty-font = 1
bar-volume-empty-foreground = #444
;battery
[module/battery]
type = internal/battery
full-at = 98
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
ramp-capacity-0 = 
ramp-capacity-0-foreground = ${colors.foreground}
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
animation-charging-0 = ""
animation-charging-framerate = 10000
;time date
[module/date]
type = internal/date
date = %%{F#99}%Y-%m-%d%%{F-} %%{F#fff}%H:%M%%{F-}
;date-alt =  %%{F#99}%A, %d %B %Y %%{F#fff}%H:%M%%{F#666} %%{F#fba922}%S%%{F-}
date-alt =  %%{F#99}%A, %d %B %Y %%{F#fff}%H:%M:%S%%{F-}
;label-underline = ${colors.foreground}

1
rofi/config Normal file
View file

@ -0,0 +1 @@
rofi.theme: ./paper-float.rasi

117
rofi/paper-float.rasi Normal file
View file

@ -0,0 +1,117 @@
/**
* A floating box version of the paper theme.
*
* User: Qball
* Copyright: Dave Davenport
*/
* {
blue: #0000FF;
white: #FFFFFF;
black: #000000;
grey: #eeeeee;
spacing: 2;
background-color: #00000000;
border-color: #444444FF;
}
#window {
transparency: "screenshot";
background-color: #00000000;
border: 0;
padding: 0% 0% 1em 0%;
x-offset: 0;
y-offset: 0;
}
#mainbox {
padding: 0px;
border: 0;
spacing: 1%;
}
#message {
border: 2px;
padding: 1em;
background-color: @white;
text-color: @back;
}
#textbox normal {
text-color: #002B36FF;
padding: 0;
border: 0;
}
#listview {
fixed-height: 1;
border: 2px;
padding: 0em;
reverse: false;
columns: 1;
background-color: @white;
}
#element {
padding: 0.5em;
highlight: bold ;
}
#element normal.normal {
text-color: @gray;
background-color: #F5F5F500;
}
#element normal.urgent {
text-color: #D75F00FF;
background-color: #F5F5F5FF;
}
#element normal.active {
text-color: @black;
background-color: #F5F5F5FF;
}
#element selected.normal {
text-color: #F5F5F5FF;
text-color: @black;
background-color: #D0D0D0FF;
}
#element selected.urgent {
text-color: #F5F5F5FF;
background-color: #D75F00FF;
}
#element selected.active {
text-color: @black;
background-color: #D0D0D0FF;
}
#scrollbar {
border: 0;
padding: 0;
}
#inputbar {
spacing: 0;
border: 2px;
padding: 0.5em 1em;
padding: 0.5em 0.4em;
background-color: @grey;
index: 0;
}
#inputbar normal {
foreground-color: #002B36FF;
background-color: #F5F5F500;
}
#sidebar {
border: 2px;
padding: 0.5em 1em;
background-color: @grey;
index: 10;
}
#button selected {
text-color: #4271AEFF;
}
inputbar {
children: [ prompt, textbox-prompt-colon, entry, case-indicator ];
}
textbox-prompt-colon {
text-color: inherit;
expand: false;
margin: 0 0.3em 0em 0em;
str: ":";
}

50
root/.Xresources Normal file
View file

@ -0,0 +1,50 @@
! RXVT Config. terminus font is required!
! sudo update-alternatives --set x-terminal-emulator "$(which terminator)"
URxvt.font: xft:Terminus:size=13
URxvt*transparent: true
URxvt*tintColor: White
URxvt*shading: 40
URxvt*scrollBar: false
URxvt.internalBorder: 20
! terminal.sexy
! hybrid
! 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

97
root/.zshrc Normal file
View file

@ -0,0 +1,97 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/odd/.oh-my-zsh"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="minimal"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="false"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

BIN
wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 KiB