Skip to content

Instantly share code, notes, and snippets.

@sandsu
Last active February 22, 2018 12:11
Show Gist options
  • Save sandsu/1c1baed5fc41e782027f7ea018c96c2e to your computer and use it in GitHub Desktop.
Save sandsu/1c1baed5fc41e782027f7ea018c96c2e to your computer and use it in GitHub Desktop.
Section "InputClass"
Identifier "touchpad"
Option "tapping" "on"
Option "VertScrollDelta" "-111"
Option "HorizScrollDelta" "-111"
Option "PalmDetect" "1"
Option "PalmMinWidth" "8"
Option "PalmMinZ" "100"
EndSection
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
# >>> Added by cnchi installer
EDITOR=/usr/bin/vim
function open () {
nohup xdg-open "$*" </dev/null >/dev/null 2>&1 &
}
# 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 https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod1
# 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
# TOKYO SKYLINE THEME
# set color variables
# optional theme colorscheme
set $grey #212121
set $valencia #e64a19
set $magenta #a673a6
set $blue #7182A8
set $cyan #6da3a1
set $black #000000
set $white #b7bbbd
set $yellow #27c282
set $red #aa0e50
set $green #1dcc9f
# theme colors
set $bg-color #212121
set $inactive-bg-color #212121
set $text-color #ffffff
set $inactive-text-color #212121
set $urgent-bg-color #e64a19
# set window colors
# class border background text indicator
client.focused $bg-color $bg-color $white $bg-color
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
client.urgent $urgent-bg-color $urgent-bg-color $text-color $bg-color
client.background $bg-color
for_window [class="^.*"] border pixel 5
exec --no-startup-id compton --config ~/.config/compton.conf -b
exec --no-startup-id feh --bg-fill ~/Pictures/background.jpg
# i3-gaps
# smart_borders on # borders only if more than one container in the workspace
# smart_gaps on # gaps only if more than one container in the workspace
gaps inner 10 # global gap size
# volume control (increment)
bindsym $mod+F8 exec amixer -q sset Master 3%+
bindsym $mod+F7 exec amixer -q sset Master 3%-
bindsym $mod+F6 exec amixer -q sset Master toggle
# ON STARTUP
# start apps automatically
exec --no-startup-id /usr/bin/nm-applet
# 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
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# 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+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+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
# 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
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
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 {
# start using custom config file (full path)
status_command i3status -c ~/.config/i3status/config
tray_padding 3
font pango:Roboto 9
colors {
# whole color settings
background $black
statusline $white
separator $grey
# type border backgr. font
focused_workspace $grey $white $black
active_workspace $grey $white $black
inactive_workspace $grey $black $white
urgent_workspace $valencia $valencia $black
}
# i3bar position
position top
# height of the bar in pixels
height 25
}
exec --no-startup-id xinput set-prop "SYN2602:00 06CB:2871 Touchpad" "libinput Tapping Enabled" 1
exec --no-startup-id xinput set-prop "SYN2602:00 06CB:2871 Touchpad" "libinput Natural Scrolling Enabled" 1
bindsym XF86MonBrightnessUp exec xbacklight +10
bindsym XF86MonBrightnessDown exec xbacklight -10
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q set Master 5%+ unmute && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q set Master 5%- && killall -SIGUSR1 i3status
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master mute && killall -SIGUSR1 i3statu
for_window [class="(?i)google-chrome"] border none
# i3status configuration file for i3bar
# Tokyo Skyline theme by @vickylaixy
# see "man i3status" for documentation
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
color_good = '#1dcc9f'
color_degraded = '#27c282'
color_bad = '#aa0e50'
interval = 5
}
order += "wireless _first_"
order += "ethernet _first_"
order += "battery 0"
order += "volume master"
order += "tztime local"
wireless _first_ {
format_up = " (%quality at %essid) %ip"
format_down = " down"
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = ""
}
battery 0 {
format = "%status %remaining (%consumption)"
status_chr = ""
status_bat = ""
status_full = ""
hide_seconds = "true"
integer_battery_capacity = "true"
low_threshold = "20"
threshold_type = "time"
}
volume master {
format = "VOL: %volume"
format_muted = ""
device = "default"
mixer = "Master"
mixer_idx = 0
}
tztime local {
format = " %a %b %d %H:%M"
}
sudo pacman -S xorg-server xorg-xinit xorg-font-util xorg-xinput xorg-xev xorg-xbacklight i3 i3status i3blocks vim lib32-mesa dmenu pacaur openssh rvxt-unicode dhclient network-manager-applet intel-ucode zsh wget curl alsa-utils pulseaudio ttf-font-awesome ttf-fira-mono ttf-roboto rofi feh gnome-keyring
sudo pacman -S evince xdg-utils
pacaur -S otf-fantasque-sans-mono ttf-mononoki compton-git dunst-git
echo "exec i3" >> ~/.xinitrc
urxvt -e zsh
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager
!! Appearance
URxvt.termName: rxvt-unicode
URxvt.scrollBar: false
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
!! Transparency settings
URxvt.transparent: true
URxvt.shading: 30
URxvt.depth: 32
!! URxvt.inheritPixmap: true
!! Fonts
URxvt.font: xft:fira mono:pixelsize=13:antialias=true,xft:monospace
URxvt.boldFont: xft:fira mono:pixelsize=13:weight=bold:antialias=true,xft:monospace
URxvt.letterSpace: -1
!! Larger history limit
URxvt.saveLines: 1000000
!! Colors:
URxvt.foreground: #aacccc
URxvt.background: #334455
!! black
URxvt.color0: #2e1f1f
URxvt.color8: #bb8899
!! red
URxvt.color1: #aa0e50
URxvt.color9: #bb8899
!! green
URxvt.color2: #1dcc9f
URxvt.color10: #1fd9a9
!! yellow
URxvt.color3: #27c282
URxvt.color11: #2cdb93
!! blue
URxvt.color4: #7182a8
URxvt.color12: #8194bf
!! magenta
URxvt.color5: #aa5566
URxvt.color13: #7f5aa1
!! cyan
URxvt.color6: #22ddcc
URxvt.color14: #669997
!! white
URxvt.color7: #b7bbbd
URxvt.color15: #d9d9d9
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec xscreensaver &
xcompmgr -c -f -r 28 D 10 &
xrdb -merge ~/.Xresources
exec i3
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment