Browse Source

i3 settings

fedora
Cian Butler 5 years ago
parent
commit
1551efe653
11 changed files with 142638 additions and 2 deletions
  1. +199
    -0
      Xdefaults
  2. +3
    -0
      gtkrc-3.0
  3. +141903
    -0
      i3/.i3log
  4. +139
    -0
      i3/block.conf
  5. +192
    -0
      i3/config
  6. +106
    -0
      i3/conkyrc
  7. +15
    -0
      i3/i3lock.sh
  8. +30
    -0
      i3/i3status.conf
  9. +0
    -1
      tmux
  10. +51
    -0
      xinitrc
  11. +0
    -1
      zsh

+ 199
- 0
Xdefaults View File

@@ -0,0 +1,199 @@

xterm*termName: xterm-256color
XTerm*locale: true
xterm*saveLines: 4096
xterm*reverseVideo: on

! URxvt*termName: string
! URxvt*geometry: geometry
! URxvt*chdir: string
! URxvt*reverseVideo: true
! URxvt*loginShell: boolean
! URxvt*multiClickTime: number
! URxvt*jumpScroll: boolean
! URxvt*skipScroll: boolean
! URxvt*pastableTabs: boolean
! URxvt*scrollstyle: mode
URxvt*scrollBar: false
! URxvt*scrollBar_right: boolean
! URxvt*scrollBar_floating: boolean
! URxvt*scrollBar_align: mode
! URxvt*thickness: number
! URxvt*scrollTtyOutput: boolean
! URxvt*scrollTtyKeypress: boolean
! URxvt*scrollWithBuffer: boolean
! URxvt*inheritPixmap: boolean
URxvt*transparent: true
! URxvt*tintColor: #fdf6e3
URxvt*shading: 25
URxvt*blurRadius: 8x8
! URxvt*fading: 80
! URxvt*fadeColor: #fdf6e3
! URxvt*utmpInhibit: boolean
URxvt*urgentOnBell: true
! URxvt*visualBell: boolean
! URxvt*mapAlert: boolean
! URxvt*meta8: boolean
! URxvt*mouseWheelScrollPage: boolean
! URxvt*tripleclickwords: boolean
! URxvt*insecure: boolean
! URxvt*cursorUnderline: boolean
! URxvt*cursorBlink: boolean
! URxvt*pointerBlank: boolean
! URxvt*background: #fdf6e3
! URxvt*foreground: color
! URxvt*color0: color
! URxvt*color1: color
! URxvt*color2: color
! URxvt*color3: color
! URxvt*color4: color
! URxvt*color5: color
! URxvt*color6: color
! URxvt*color7: color
! URxvt*color8: color
! URxvt*color9: color
! URxvt*color10: color
! URxvt*color11: color
! URxvt*color12: color
! URxvt*color13: color
! URxvt*color14: color
! URxvt*color15: color
! URxvt*colorBD: color
! URxvt*colorIT: color
! URxvt*colorUL: color
! URxvt*colorRV: color
! URxvt*underlineColor: color
! URxvt*scrollColor: color
! URxvt*troughColor: color
! URxvt*highlightColor: color
! URxvt*highlightTextColor: color
! URxvt*cursorColor: color
! URxvt*cursorColor2: color
! URxvt*pointerColor: color
! URxvt*pointerColor2: color
! URxvt*borderColor: color
! URxvt*iconFile: file
! URxvt*font: xft:Hack:size=8:antialias=false
! URxvt*boldFont: xft:Hack:bold:size=8:antialias=false
! URxvt*italicFont: xft:Hack:italic:size=8:antialias=false
URxvt*font: xft:Terminess Powerline:size=8:antialias=false
URxvt*boldFont: xft:Terminess Powerline:bold:size=8:antialias=false
URxvt*italicFont: xft:Terminess Powerline:italic:size=8:antialias=false
! URxvt*boldItalicFont: fontname
! URxvt*intensityStyles: boolean
! URxvt*inputMethod: name
! URxvt*preeditType: style
! URxvt*imLocale: string
! URxvt*imFont: fontname
! URxvt*title: string
! URxvt*iconName: string
! URxvt*saveLines: number
! URxvt*buffered: boolean
! URxvt*depth: number
! URxvt*visual: number
! URxvt*transient-for: windowid
! URxvt*override-redirect: boolean
! URxvt*hold: boolean
! URxvt*externalBorder: number
! URxvt*internalBorder: number
! URxvt*borderLess: boolean
! URxvt*lineSpace: number
! URxvt*letterSpace: number
! URxvt*skipBuiltinGlyphs: boolean
! URxvt*pointerBlankDelay: number
! URxvt*backspacekey: string
! URxvt*deletekey: string
! URxvt*print-pipe: string
! URxvt*modifier: modifier
! URxvt*cutchars: string
! URxvt*answerbackString: string
! URxvt*secondaryScreen: boolean
! URxvt*secondaryScroll: boolean
URxvt*perl-lib: /usr/lib/urxvt/perl
URxvt*url-launcher: /usr/bin/firfox
URxvt*matcher.button: 1
! URxvt*perl-eval: perl-eval
! URxvt*perl-ext-common: string
URxvt*perl-ext-common: default,url-select,clipboard,matcher
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: /usr/bin/xdg-open
URxvt.url-select.underline: true

URxvt*iso14755: false
URxvt*iso14755_52: false
! URxvt*xrm: string
! URxvt*keysym.sym: keysym
! URxvt*background.border: boolean
! URxvt*background.expr: string
! URxvt*background.interval: seconds
! URxvt*bell-command: string
! URxvt*kuake.hotkey: string
! URxvt*matcher.button: string
! URxvt*matcher.launcher: string
! URxvt*matcher.launcher.*: string
! URxvt*matcher.pattern.*: string
! URxvt*matcher.rend.*: string
! URxvt*remote-clipboard.fetch: string
! URxvt*remote-clipboard.store: string
! URxvt*searchable-scrollback: string
! URxvt*selection-autotransform.*: string
! URxvt*selection-pastebin.cmd: string
! URxvt*selection-pastebin.url: string
! URxvt*selection.pattern-0: string
! URxvt*tab-bg: colour
! URxvt*tab-fg: colour
! URxvt*tabbar-bg: colour
! URxvt*tabbar-fg: colour
! --- ~/.Xresources ------------------------------------------------------------
! ------------------------------------------------------------------------------
! --- generated with 4bit Terminal Color Scheme Designer -----------------------
! ------------------------------------------------------------------------------
! --- http://ciembor.github.com/4bit -------------------------------------------
! ------------------------------------------------------------------------------

! --- special colors ---

*background: #0d1926
*foreground: #d9e6f2

! --- standard colors ---

URxvt*depth: 32
URxvt*background: #000000
URxvt*foreground: #DEDEDE

URxvt*colorUL: #86a2b0

! black
URxvt*color0 : #2E3436
URxvt*color8 : #555753
! red
URxvt*color1 : #CC0000
URxvt*color9 : #EF2929
! green
URxvt*color2 : #4E9A06
URxvt*color10 : #8AE234
! yellow
URxvt*color3 : #C4A000
URxvt*color11 : #FCE94F
! blue
URxvt*color4 : #3465A4
URxvt*color12 : #729FCF
! magenta
URxvt*color5 : #75507B
URxvt*color13 : #AD7FA8
! cyan
URxvt*color6 : #06989A
URxvt*color14 : #34E2E2
! white
URxvt*color7 : #D3D7CF
URxvt*color15 : #EEEEEC
!

! ------------------------------------------------------------------------------
! --- end of terminal colors section -------------------------------------------
! ----------------------------------------------------------------------------

URxvt.keysym.M-Escape: perl:keyboard-select:active
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
URxvt.keysym.Shift-Control-C: perl:clipboard:copy

+ 3
- 0
gtkrc-3.0 View File

@@ -0,0 +1,3 @@
gtk-theme-name = "paper"
gtk-font-name = "Open Sans 8"
gtk-icon-theme-name = "gnome"

+ 141903
- 0
i3/.i3log
File diff suppressed because it is too large
View File


+ 139
- 0
i3/block.conf View File

@@ -0,0 +1,139 @@
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent

# 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=10
markup=terminator

full_text=❮
align=center
color=#007fff
separator=false
separator_block_width=0

[separator]

# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
[volume]
label=VOL
label=♪
instance=Master
#instance=PCM
interval=1
signal=10
separator=false

[separator]

# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=RAM:
separator=false
interval=5

[separator]

#[memory]
#label=SWAP
#instance=swap
#separator=false
#interval=30

# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
#[disk]
#label=HOME
#instance=/mnt/data
#interval=30

# 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]
instance=wlp1s0
color=#00FF00
interval=3
separator=false

[seperator]

[wifi]
label=W:
instance=wlp1s0
interval=5
separator=false

#[seperator]

#[bandwidth]
#instance=eth0
#interval=1
#separator=false

[seperator]

# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage]
label=CPU:
interval=10
min_width=CPU: 99.99%
separator=false

[seperator]

#[load_average]
#interval=10

# Battery indicator
#
# The battery instance defaults to 0.
[battery]
#label=BAT
label=⚡
#instance=1
interval=10
separator=false

[seperator]

# Date Time
#
[time]
command=date '+%d-%m-%Y %H:%M:%S'
interval=5

+ 192
- 0
i3/config View File

@@ -0,0 +1,192 @@
# 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).
#

# i3 config file (v4)
#
# Please see http://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 10

# 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 9

# 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 doesn’t 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 urxvt

# kill focused window
bindsym $mod+Shift+q kill

# 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+semicolon 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+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+s layout stacked

# 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


# switch to workspace
bindsym $mod+1 workspace 1 irc
bindsym $mod+2 workspace 2 web
bindsym $mod+3 workspace 3 term
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

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1 irc
bindsym $mod+Shift+2 move container to workspace 2 web
bindsym $mod+Shift+3 move container to workspace 3 term
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to 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 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 window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s 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
bindsym Return mode "default"
bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
position top
colors { # Whole color settings
background #000000#000000
statusline #ffffff#ffffff
separator #007fff#007fff
# Type border background font
focused_workspace #008fff#008fff #007fff#007fff #ffffff#ffffff
active_workspace #333333#333333 #5f676a#5f676a #ffffff#ffffff
inactive_workspace #333333#333333 #222222#222222 #888888#888888
urgent_workspace #aa0000#aa0000 #990000#990000 #ffffff#ffffff
}
#font pango:terminus\ Powerline 8
status_command i3blocks -c ~/.i3/block.conf
}

# Colors
client.focused #007fbf #007fbf #ffffff
client.unfocused #666666 #666666 #ffffff
client.urgent #aa0000 #990000 #ffffff

# Startup programs
exec --no-startup-id feh --bg-fill ~/pictures/wallpaper.jpg
exec --no-startup-id devmon --no-gui
exec --no-startup-id pulseaudio --start
exec --no-startup-id xbindkeys
exec --no-startup-id wicd-gtk -t

# Custom KeyBinds
bindsym Control+mod4+l exec sh ~/.i3/i3lock.sh
bindsym Print exec scrot '%Y-%m-%d-%T_$wx$h_scrot.png' -e 'mv $f ~/Pictures/screenshots/'

#smart_borders on|no_gaps
for_window [class="^.*"] border pixel 0
gaps inner 5
gaps outer 5
smart_gaps on

#Nautilus
bindsym $mod+Shift+U exec nautilus --no-desktop --browser

#rofi
bindsym $mod+o exec rofi -show window
bindsym $mod+i exec rofi -show ssh
bindsym $mod+d exec rofi -show run

+ 106
- 0
i3/conkyrc View File

@@ -0,0 +1,106 @@
# Conky para barra del i3
# Hasta que i3bar deje ocultar los separadores en la versión 4.8
# uso conky separado e i3bar ocultado (se muestra al pulsar ALT).
alignment top_right
background no
border_width 0
border_inner_margin 0
border_outer_margin 0
cpu_avg_samples 5
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft no
font -xos4-terminusicons2-medium-r-normal--12-120-72-72-c-60-iso8859-1
gap_x 0
gap_y 0
minimum_size 0 0
maximum_width 1024
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_title Meters
own_window_type dock
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
update_interval 1
uppercase no
use_spacer right
double_buffer yes
short_units yes
pad_percents 1
text_buffer_size 2048
if_up_strictness address

# Colores
default_color b8b8b8 # Fuente
own_window_colour 1d1f21 # Fondo
color0 373b41 # Light gray
color1 282a2e # Dark gray
color2 81a2be # Light Blue
color3 de935f # Yellow
color4 b5bd68 # Light Green
color5 a54242 # Red
color6 cc6666 # Light Red
color7 f0c674 # Light Yellow
color8 1d1f21 # Background
color9 a8a8a8 # Dark White

# Fuente de 6 pixels
TEXT
${goto 970}${color4}Üßßßßßßßßß\
${goto 856}${color0}Üßßßßßßßßßß${goto 916}${color8}Ü\
${goto 616}${color0}Üßßßßßßßßßßßßßßßßßßßß${goto 736}${color8}Ü\
${goto 388}${color0}Üßßßßßßßßßßßßßßßßßß${goto 496}${color8}Ü\
${goto 274}${color0}Üßßßßßßßßß${goto 328}${color8}Ü\
${goto 0}${color4}ßßÚ\
# Time
${goto 976}${color1}Õ ${time %H:%M}\
${goto 922}${color9} ${time %d %b}\
# Vol
${goto 868}${color}Ô ${execi 3 amixer get Master | grep Left | awk -F'[]%[]' '/%/ {if ($5 == "off") {print "×"} else {printf "%d%%", $2}}'}\
# ETH
${goto 748}\
${if_up eth0}${color}${else}${color0}${endif}Ð ${downspeed eth0}${color0} Ý \
${if_up eth0}${color}${else}${color0}${endif}Ñ ${upspeed eth0}\
# WLAN
${goto 628}\
${if_up wlan0}${color}${else}${color8}${endif}Ð ${downspeed wlan0}${color8} Ý \
${if_up wlan0}${color}${else}${color8}${endif}Ñ ${upspeed wlan0}\
# MAIL
${execi 300 ~/bin/gmail.sh -c}\
${if_match ${execi 60 cat ~/.gmail} != 0}\
${goto 562}${color7}Üßßßßßßßßß${goto 616}${color0}Ü\
${goto 574}${color1}Ó ${execi 60 cat ~/.gmail}\
${else}\
${goto 574}${color9}Ó ${execi 60 cat ~/.gmail}\
${endif}\
${goto 556}${color0}Ý\
# CHAT-IRC
${if_match ${lines /home/electro7/.weechat/highlight} != 0}\
${goto 496}${color6}Üßßßßßßßßß${goto 550}${color8}Ü\
${goto 508}${color1}Ò ${lines /home/electro7/.weechat/highlight}\
${else}\
${goto 508}${color9}Ò ${lines /home/electro7/.weechat/highlight}\
${endif}\
# DISK /
${goto 400}\
${if_match ${fs_used_perc /} >= 75}${color6}${else}${color}${endif}\
À ${fs_used_perc /}%${color8} Ý \
# DISK HOME
${if_match ${fs_used_perc /home} >= 75}${color6}${else}${color}${endif}\
Æ ${fs_used_perc /home}%\
# MEM
${goto 340}${color9}Þ ${mem}\
# CPU
${if_match ${cpu} >= 75}\
${goto 274}${color2}Üßßßßßßßßß${goto 328}${color8}Ü\
${goto 286}${color1}Ï ${cpu}%\
${else}\
${goto 286}${color}Ï ${cpu}%\
${endif}\
# FOCUS
${goto 2}${color1}Â ${color9}${font -misc-ohsnap-medium-r-normal--11-79-100-100-c-60-iso8859-1}${execi 3 ~/bin/getfocus.sh}${font}\

+ 15
- 0
i3/i3lock.sh View File

@@ -0,0 +1,15 @@
#!/bin/bash

tmpbg='/tmp/screen.png'

scrot "$tmpbg"

convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
composite -gravity center "$tmpbg" "$tmpbg"

#enable i3lock with colours & modified image
i3lock --textcolor=ffffff00 --insidecolor=ffffff00 --ringcolor=ffffff00 --linecolor=ffffff00 --keyhlcolor=FF000080 --ringvercolor=0000FF00 --insidevercolor=00000000 --ringwrongcolor=00000055 --insidewrongcolor=FF00001c -i "$tmpbg"

i3lock -i "$tmpbg"
#clean up
rm "$tmpbg"

+ 30
- 0
i3/i3status.conf View File

@@ -0,0 +1,30 @@
general {
colors = true
color_good = "#B5BD68"
color_bad = "#CC6666"
interval = 10
}

order += "disk /"
order += "disk /home"
order += "wireless wlan0"
order += "ethernet eth0"

wireless wlan0 {
format_up = "Ø %ip [%quality at %essid]"
format_down = "Ø [down]"
}

ethernet eth0 {
format_up = "Å %ip [%speed]"
format_down = "Å [down]"
}

disk "/" {
format = "À %free [%total]"
}

disk "/home" {
format = "Æ %free [%total]"
}


+ 0
- 1
tmux

@@ -1 +0,0 @@
Subproject commit 3ace6873d5b094f797a44337bc9a3de3a7586c04

+ 51
- 0
xinitrc View File

@@ -0,0 +1,51 @@
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi

exec i3 >> ~/.i3/.i3log 2>&1

+ 0
- 1
zsh

@@ -1 +0,0 @@
Subproject commit a4efc15bb64a602c546261358cbbab0096930438

Loading…
Cancel
Save