aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-04-22 20:58:35 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2016-04-22 20:58:35 +0200
commit00a7e52f822666d5b72537fc42c3fbab84a046bf (patch)
tree8c44717d12efc44c6c32c9ac27f6fa3e0826dc52
parent7299643a6a5e00d93bf89b8bb663af381f558412 (diff)
downloaddotfiles-00a7e52f822666d5b72537fc42c3fbab84a046bf.tar.gz
dotfiles-00a7e52f822666d5b72537fc42c3fbab84a046bf.zip
Uploading files from i3, X...
I've been successfully running i3 and I'm quite happy with it. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--Images/25334-drops.jpgbin0 -> 725456 bytes
-rw-r--r--Xresources2
-rw-r--r--config/dunst/dunstrc217
-rw-r--r--fonts/ClickerScript-Regular.ttfbin0 -> 64012 bytes
-rw-r--r--fonts/DroidSansMono-Powerline.ttfbin0 -> 118464 bytes
-rw-r--r--fonts/DroidSansMonoDotted-Powerline.ttfbin0 -> 118712 bytes
-rw-r--r--fonts/DroidSansMonoSlashed-Powerline.ttfbin0 -> 118760 bytes
-rw-r--r--fonts/Inconsolata-dz-Powerline.otfbin0 -> 54612 bytes
-rw-r--r--fonts/Inconsolata-dz.otfbin0 -> 52264 bytes
-rw-r--r--fonts/Menlo-Powerline.otfbin0 -> 487212 bytes
-rw-r--r--fonts/fonts.dir1
-rw-r--r--fonts/mensch-Powerline.otfbin0 -> 488268 bytes
-rw-r--r--i3/config218
-rw-r--r--i3status.conf53
-rw-r--r--inputrc8
-rwxr-xr-xinstall.sh14
16 files changed, 513 insertions, 0 deletions
diff --git a/Images/25334-drops.jpg b/Images/25334-drops.jpg
new file mode 100644
index 0000000..5e991f5
--- /dev/null
+++ b/Images/25334-drops.jpg
Binary files differ
diff --git a/Xresources b/Xresources
new file mode 100644
index 0000000..d40e97f
--- /dev/null
+++ b/Xresources
@@ -0,0 +1,2 @@
+Xcursor.theme: breeze_cursors
+Xcursor.size: 16
diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc
new file mode 100644
index 0000000..df23c16
--- /dev/null
+++ b/config/dunst/dunstrc
@@ -0,0 +1,217 @@
+[global]
+ font = Monospace 8
+
+ # allow a small subset of html markup:
+ # <b>bold</b>
+ # <i>italic</i>
+ # <s>strikethrough<s/>
+ # <u>underline</u>
+ #
+ # for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
+ # If markup is not allowed, those tags will be stripped out of the message.
+ allow_markup = yes
+
+ # The format of the message. Possible variables are:
+ # %a appname
+ # %s summary
+ # %b body
+ # %i iconname (including its path)
+ # %I iconname (without its path)
+ # %p progress value if set ([ 0%] to [100%]) or nothing
+ # Markup is allowed
+ format = "<b>%s</b>\n%b"
+
+ # Sort messages by urgency
+ sort = yes
+
+ # Show how many messages are currently hidden (because of geometry)
+ indicate_hidden = yes
+
+ # alignment of message text.
+ # Possible values are "left", "center" and "right"
+ alignment = left
+
+ # The frequency with wich text that is longer than the notification
+ # window allows bounces back and forth.
+ # This option conflicts with 'word_wrap'.
+ # Set to 0 to disable
+ bounce_freq = 0
+
+ # show age of message if message is older than show_age_threshold seconds.
+ # set to -1 to disable
+ show_age_threshold = 60
+
+ # split notifications into multiple lines if they don't fit into geometry
+ word_wrap = yes
+
+ # ignore newlines '\n' in notifications
+ ignore_newline = no
+
+
+ # the geometry of the window
+ # geometry [{width}]x{height}][+/-{x}+/-{y}]
+ # The geometry of the message window.
+ # The height is measured in number of notifications everything else in pixels. If the width
+ # is omitted but the height is given ("-geometry x2"), the message window
+ # expands over the whole screen (dmenu-like). If width is 0,
+ # the window expands to the longest message displayed.
+ # A positive x is measured from the left, a negative from the
+ # right side of the screen. Y is measured from the top and down respectevly.
+ # The width can be negative. In this case the actual width is the
+ # screen width minus the width defined in within the geometry option.
+ geometry = "300x5-30+20"
+
+ # The transparency of the window. range: [0; 100]
+ # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
+ transparency = 0
+
+ # Don't remove messages, if the user is idle (no mouse or keyboard input)
+ # for longer than idle_threshold seconds.
+ # Set to 0 to disable.
+ idle_threshold = 120
+
+ # Which monitor should the notifications be displayed on.
+ monitor = 0
+
+ # Display notification on focused monitor. Possible modes are:
+ # mouse: follow mouse pointer
+ # keyboard: follow window with keyboard focus
+ # none: don't follow anything
+ #
+ # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
+ # This should be the case for almost all modern windowmanagers.
+ #
+ # If this option is set to mouse or keyboard, the monitor option will be
+ # ignored.
+ follow = mouse
+
+ # should a notification popped up from history be sticky or
+ # timeout as if it would normally do.
+ sticky_history = yes
+
+ # The height of a single line. If the height is smaller than the font height,
+ # it will get raised to the font height.
+ # This adds empty space above and under the text.
+ line_height = 0
+
+ # Draw a line of 'separatpr_height' pixel height between two notifications.
+ # Set to 0 to disable
+ separator_height = 2
+
+ # padding between text and separator
+ padding = 8
+
+ # horizontal padding
+ horizontal_padding = 8
+
+ # Define a color for the separator.
+ # possible values are:
+ # * auto: dunst tries to find a color fitting to the background
+ # * foreground: use the same color as the foreground
+ # * frame: use the same color as the frame.
+ # * anything else will be interpreted as a X color
+ separator_color = frame
+
+ # print a notification on startup
+ # This is mainly for error detection, since dbus (re-)starts dunst
+ # automatically after a crash.
+ startup_notification = false
+
+ # dmenu path
+ dmenu = /usr/bin/dmenu -p dunst:
+
+ # browser for opening urls in context menu
+ browser = /usr/bin/firefox -new-tab
+
+[frame]
+ width = 3
+ color = "#aaaaaa"
+
+[shortcuts]
+ # shortcuts are specified as [modifier+][modifier+]...key
+ # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
+ # and 'mod4' (windows-key)
+ # xev might be helpful to find names for keys
+
+ # close notification
+ close = ctrl+space
+
+ # close all notifications
+ close_all = ctrl+shift+space
+
+ # redisplay last message(s)
+ # On the US keyboard layout 'grave' is normally above TAB and left of '1'.
+ history = ctrl+grave
+
+ # context menu
+ context = ctrl+shift+period
+
+[urgency_low]
+ # IMPORTANT: colors have to be defined in quotation marks.
+ # Otherwise the '#' and following would be interpreted as a comment.
+ background = "#222222"
+ foreground = "#888888"
+ timeout = 10
+
+[urgency_normal]
+ background = "#285577"
+ foreground = "#ffffff"
+ timeout = 10
+
+[urgency_critical]
+ background = "#900000"
+ foreground = "#ffffff"
+ timeout = 0
+
+
+# Every section that isn't one of the above is interpreted as a rules
+# to override settings for certain messages.
+# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
+# and you can override the 'timeout', 'urgency', 'foreground', 'background'
+# and 'format'.
+# Shell-like globbing will get expanded.
+#
+# SCRIPTING
+# you can specify a script that gets run when the rule matches by setting
+# the 'script' option.
+# The script will be called as follows:
+# script appname summary body icon urgency
+# where urgency can be "LOW", "NORMAL" or "CRITICAL".
+#
+# NOTE: if you don't want a notification to be displayed, set the format to ""
+# NOTE: It might be helpful to run dunst -print in a terminal in order to find
+# fitting options for rules.
+
+#[espeak]
+# summary = "*"
+# script = dunst_espeak.sh
+
+#[script-test]
+# summary = "*script*"
+# script = dunst_test.sh
+
+#[ignore]
+## This notification will not be displayed
+# summary = "foobar"
+# format = ""
+
+#[signed_on]
+# appname = Pidgin
+# summary = "*signed on*"
+# urgency = low
+#
+#[signed_off]
+# appname = Pidgin
+# summary = *signed off*
+# urgency = low
+#
+#[says]
+# appname = Pidgin
+# summary = *says*
+# urgency = critical
+#
+#[twitter]
+# appname = Pidgin
+# summary = *twitter.com*
+# urgency = normal
+#
diff --git a/fonts/ClickerScript-Regular.ttf b/fonts/ClickerScript-Regular.ttf
new file mode 100644
index 0000000..dd1be83
--- /dev/null
+++ b/fonts/ClickerScript-Regular.ttf
Binary files differ
diff --git a/fonts/DroidSansMono-Powerline.ttf b/fonts/DroidSansMono-Powerline.ttf
new file mode 100644
index 0000000..fafb790
--- /dev/null
+++ b/fonts/DroidSansMono-Powerline.ttf
Binary files differ
diff --git a/fonts/DroidSansMonoDotted-Powerline.ttf b/fonts/DroidSansMonoDotted-Powerline.ttf
new file mode 100644
index 0000000..3f941e9
--- /dev/null
+++ b/fonts/DroidSansMonoDotted-Powerline.ttf
Binary files differ
diff --git a/fonts/DroidSansMonoSlashed-Powerline.ttf b/fonts/DroidSansMonoSlashed-Powerline.ttf
new file mode 100644
index 0000000..af42b83
--- /dev/null
+++ b/fonts/DroidSansMonoSlashed-Powerline.ttf
Binary files differ
diff --git a/fonts/Inconsolata-dz-Powerline.otf b/fonts/Inconsolata-dz-Powerline.otf
new file mode 100644
index 0000000..51bdd74
--- /dev/null
+++ b/fonts/Inconsolata-dz-Powerline.otf
Binary files differ
diff --git a/fonts/Inconsolata-dz.otf b/fonts/Inconsolata-dz.otf
new file mode 100644
index 0000000..8ff3104
--- /dev/null
+++ b/fonts/Inconsolata-dz.otf
Binary files differ
diff --git a/fonts/Menlo-Powerline.otf b/fonts/Menlo-Powerline.otf
new file mode 100644
index 0000000..417a3fa
--- /dev/null
+++ b/fonts/Menlo-Powerline.otf
Binary files differ
diff --git a/fonts/fonts.dir b/fonts/fonts.dir
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/fonts/fonts.dir
@@ -0,0 +1 @@
+0
diff --git a/fonts/mensch-Powerline.otf b/fonts/mensch-Powerline.otf
new file mode 100644
index 0000000..2eb2232
--- /dev/null
+++ b/fonts/mensch-Powerline.otf
Binary files differ
diff --git a/i3/config b/i3/config
new file mode 100644
index 0000000..90ca016
--- /dev/null
+++ b/i3/config
@@ -0,0 +1,218 @@
+# 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 somewhen, 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. ISO 10646 = Unicode
+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, if you need a lot of unicode glyphs or
+# right-to-left text rendering, you should instead use pango for rendering and
+# chose a FreeType font, such as:
+font pango:DejaVu Sans Mono 10
+
+#class border backgr. text indicator
+client.focused #888888 #dddddd #222222 #2e9ef4
+client.focused_inactive #333333 #555555 #bbbbbb #484e50
+client.unfocused #333333 #333333 #888888 #292d2e
+client.urgent #2f343a #900000 #ffffff #900000
+
+
+# Use Mouse+$mod to drag floating windows to their wanted position
+floating_modifier $mod
+
+# start a terminal
+bindsym $mod+Return exec konsole
+
+# kill focused window
+bindsym $mod+Shift+q kill
+
+# Start dmenu (a program launcher)
+bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
+
+# Change focus
+bindsym $mod+Up focus up
+bindsym $mod+Down focus down
+bindsym $mod+Left focus left
+bindsym $mod+Right focus right
+bindsym $mod+j focus left
+bindsym $mod+k focus right
+
+# Move focused window
+bindsym $mod+Shift+Up move up
+bindsym $mod+Shift+Down move down
+bindsym $mod+Shift+Left move left
+bindsym $mod+Shift+Right move right
+bindsym $mod+Shift+j move left
+bindsym $mod+Shift+k 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
+
+# Cool lock. Thanks franky!
+bindsym $mod+l exec xlock -mode eyes
+
+# 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
+
+# Go 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"
+
+# Get volume keys working
+bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+ unmute
+bindsym XF86AudioLowerVolume exec amixer -q set Master 5%- unmute
+bindsym XF86AudioMute exec amixer -q set Master toggle
+
+# Back & Forth support + $mod+z shortcut.
+workspace_auto_back_and_forth yes
+bindsym $mod+z workspace back_and_forth
+bindsym $mod+Shift+z move container to workspace back_and_forth; workspace back_and_forth
+
+# Disallow the mouse from changing the focus. I prefer to be explicit with the
+# mouse and click to get focus if I'm using it.
+focus_follows_mouse no
+
+# Bindings for specific applications.
+bindsym $mod+Shift+f [class="Firefox"] focus
+bindsym $mod+Shift+t [class="Tor"] focus
+
+# Scrot
+bindsym Print exec scrot -u
+
+# Start i3bar to display a workspace bar (plus the system information i3status
+# finds out, if available). This setup has DP-1 as the monitor on the right,
+# and DVI-I-1 as the monitor on the left. The tray will only be shown to the
+# right.
+bar {
+ output DP-1
+ position top
+ status_command i3status
+ workspace_buttons yes
+ tray_output DP-1
+
+ colors {
+ separator #666666
+ background #333333
+ statusline #bbbbbb
+ focused_workspace #888888 #dddddd #222222
+ active_workspace #333333 #555555 #bbbbbb
+ inactive_workspace #333333 #555555 #bbbbbb
+ urgent_workspace #2f343a #900000 #ffffff
+ }
+}
+
+bar {
+ output DVI-I-1
+ position top
+ status_command i3status
+ workspace_buttons yes
+ tray_output DP-1
+
+ colors {
+ separator #666666
+ background #333333
+ statusline #bbbbbb
+ focused_workspace #888888 #dddddd #222222
+ active_workspace #333333 #555555 #bbbbbb
+ inactive_workspace #333333 #555555 #bbbbbb
+ urgent_workspace #2f343a #900000 #ffffff
+ }
+}
+
+# Start dunst notification manager at boot
+exec --no-startup-id dunst
+
+# Proper configuration of multi monitor
+exec --no-startup-id xrandr --output DP-1 --right-of DVI-I-1
+
+# Disable system bell
+exec --no-startup-id xset b off
+
+# Disable screensaver and power saving feature: they may crash on Tumbleweed.
+exec --no-startup-id xset -dpms
+exec --no-startup-id xset s off
+
+# Wallpaper
+exec --no-startup-id nitrogen --restore
diff --git a/i3status.conf b/i3status.conf
new file mode 100644
index 0000000..8086fda
--- /dev/null
+++ b/i3status.conf
@@ -0,0 +1,53 @@
+# i3status configuration file.
+# 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 = "#859900"
+ color_degraded = "#b58900"
+ color_bad = "#dc322f"
+ interval = 5
+}
+
+order += "disk /"
+order += "disk /home"
+order += "ethernet br0"
+order += "load"
+order += "volume master"
+order += "tztime local"
+
+# Yes, I'm weird :P Use whatever ethernet interface you have here.
+ethernet br0 {
+ format_up = "E: %ip"
+ format_down = "E: down"
+}
+
+# TODO: have the same above but for wifi.
+
+tztime local {
+ format = "%Y-%m-%d %H:%M"
+}
+
+load {
+ format = "%1min"
+}
+
+disk "/" {
+ format = "/ %free"
+}
+
+disk "/home" {
+ format = "/home %free"
+}
+
+volume master {
+ format = "♪: %volume"
+ device = "default"
+ mixer = "Master"
+ mixer_idx = 0
+}
diff --git a/inputrc b/inputrc
new file mode 100644
index 0000000..67b1389
--- /dev/null
+++ b/inputrc
@@ -0,0 +1,8 @@
+ "\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[7~": beginning-of-line
+"\e[8~": end-of-line
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+"\e[H": beginning-of-line
+"\e[F": end-of-line
diff --git a/install.sh b/install.sh
index e6e7d8a..f544091 100755
--- a/install.sh
+++ b/install.sh
@@ -28,6 +28,20 @@ cp rvmrc $HOME/.rvmrc
cp gnupg/gpg.conf $HOME/.gnupg/gpg.conf
chmod +x $HOME/.rake_completion
+# i3 and X stuff. An incomplete list of openSUSE packages that I need in order
+# to have a good i3 environment is: i3 xlockmore dunst i3status nitrogen scrot
+# breeze-icons konsole.
+mkdir -p $HOME/.config/dunst $HOME/.i3
+cp i3/config $HOME/.i3/config
+cp i3status.conf $HOME/.i3status.conf
+cp inputrc $HOME/.inputrc
+cp Xresources $HOME/.Xresources
+cp -r fonts $HOME/.fonts
+cp config/dunst/dunstrc $HOME/config/dunst/dunstrc
+
+# Make Caps Lock an extra control.
+sudo localectl set-x11-keymap es "" cat, 'ctrl:nocaps'
+
# Wipe out the current vim config and replace it with this one.
rm -rf $HOME/.vim
rm -rf $HOME/.vimrc