1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-23 08:02:19 +00:00

New config

This commit is contained in:
J. Fernando Sánchez
2015-09-18 02:14:17 +02:00
parent 8e833119db
commit fc8c11d360
117 changed files with 1533 additions and 1083 deletions

View File

@@ -20,45 +20,45 @@ font xft:Deja Vu Sans 8
floating_modifier $mod
#/exec
# start a terminal
#bindsym $mod+Return exec i3-one-tmux
bindsym $mod+Return [instance="tmux"] scratchpad show
bindsym Control+Mod1+t exec urxvt
#bindsym $mod+Return exec --no-startup-id i3-one-tmux
bindsym $mod+Return [title="^tmux$"] scratchpad show
bindsym Control+Mod1+t exec --no-startup-id urxvt
# start lock
bindsym Control+Mod1+l exec i3-exit.sh lock
bindsym Control+Mod1+l exec --no-startup-id i3-exit.sh lock
bindsym Control+Mod1+w exec i3-one-instance firefox
bindsym Control+Mod1+g exec i3-one-instance gvim
bindsym Control+Mod1+e exec myemacs
bindsym $mod+o exec i3-winmenu.py
bindsym Control+Mod1+f exec pcmanfm
bindsym Control+Mod1+w exec --no-startup-id i3-one-instance firefox
bindsym Control+Mod1+g exec --no-startup-id i3-one-instance gvim
bindsym Control+Mod1+e exec --no-startup-id myemacs -c
bindsym $mod+o exec --no-startup-id i3-winmenu.py
bindsym $mod+p [instance="pcmanfm"] scratchpad show
# Spotify
bindsym XF86AudioPlay exec spotify-remote.py -a playPause
bindsym XF86AudioNext exec spotify-remote.py -a next
bindsym XF86AudioPrev exec spotify-remote.py -a previous
bindsym XF86AudioPlay exec --no-startup-id spotify-remote.py -a playPause
bindsym XF86AudioNext exec --no-startup-id spotify-remote.py -a next
bindsym XF86AudioPrev exec --no-startup-id spotify-remote.py -a previous
# Volume
bindsym XF86AudioRaiseVolume exec volume-up.sh
bindsym XF86AudioLowerVolume exec volume-down.sh
bindsym XF86AudioMute exec volume-toggle-mute.sh
bindsym XF86AudioRaiseVolume exec --no-startup-id volume-up.sh
bindsym XF86AudioLowerVolume exec --no-startup-id volume-down.sh
bindsym XF86AudioMute exec --no-startup-id volume-toggle-mute.sh
# Brightness
#bindsym XF86MonBrightnessUp exec xbacklight +5
#bindsym XF86MonBrightnessDown exec xbacklight -5
#bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +5
#bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -5
# kill focused window
bindsym $mod+q kill
# start dmenu (a program launcher)
#bindsym Mod1+F2 exec dmenu_run
bindsym Mod1+F2 exec dmenu_run -fn "-*-cure-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#5f5f5f" -sb "#191919" -sf "#b72f62" -b
#bindsym $mod+Space exec --no-startup-id dmenu_run
bindsym $mod+space exec --no-startup-id dmenu_run -fn "-*-cure-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#5f5f5f" -sb "#191919" -sf "#b72f62" -b
# Arandr magic
bindsym Mod1+F5 exec monitors single
bindsym Mod1+F6 exec monitors dual
bindsym Mod1+F7 exec monitors dual home
bindsym Mod1+F8 exec i3-secondary-to-primary
bindsym Mod1+F5 exec --no-startup-id monitors single
bindsym Mod1+F6 exec --no-startup-id monitors dual
bindsym Mod1+F7 exec --no-startup-id monitors dual home
bindsym Mod1+F8 exec --no-startup-id i3-secondary-to-primary
# Move to displays
bindsym $mod+Mod1+j move workspace to output down
@@ -66,6 +66,12 @@ bindsym $mod+Mod1+k move workspace to output up
bindsym $mod+Mod1+l move workspace to output right
bindsym $mod+Mod1+h move workspace to output left
# Move windows in tiled mode
bindsym $mod+Shift+H move left 100px
bindsym $mod+Shift+J move down 100px
bindsym $mod+Shift+K move up 100px
bindsym $mod+Shift+L move right 100px
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
@@ -79,11 +85,7 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+H move left
bindsym $mod+Shift+J move down
bindsym $mod+Shift+K move up
bindsym $mod+Shift+L move right
bindsym $mod+m mode "move"
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@@ -110,7 +112,7 @@ bindsym $mod+v layout splitv
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
bindsym $mod+i focus mode_toggle
# Make the currently focused window a scratchpad
bindsym $mod+Shift+minus move scratchpad
@@ -155,11 +157,26 @@ 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-exit.sh logout
bindsym $mod+Mod1+s exec i3-exit.sh suspend
bindsym $mod+Shift+E exec --no-startup-id i3-exit.sh logout
bindsym $mod+Mod1+s exec --no-startup-id i3-exit.sh suspend
bindsym $mod+Shift+p exec passmenu
# move with finer grain
mode "move" {
bindsym H move left 100px
bindsym J move down 100px
bindsym K move up 100px
bindsym L move right 100px
bindsym Shift+H move left 10 px
bindsym Shift+J move down 10px
bindsym Shift+K move up 10 px
bindsym Shift+L move right 10 px
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
@@ -168,16 +185,15 @@ mode "resize" {
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym H resize shrink width 100 px or 100 ppt
bindsym J resize grow height 100 px or 100 ppt
bindsym K resize shrink height 100 px or 100 ppt
bindsym L resize grow width 100 px or 100 ppt
# same bindings, but for the arrow keys
bindsym 113 resize shrink width 10 px or 10 ppt
bindsym 116 resize grow height 10 px or 10 ppt
bindsym 111 resize shrink height 10 px or 10 ppt
bindsym 114 resize grow width 10 px or 10 ppt
bindsym Shift+H resize shrink width 10 px or 10 ppt
bindsym Shift+J resize grow height 10 px or 10 ppt
bindsym Shift+K resize shrink height 10 px or 10 ppt
bindsym Shift+L resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
@@ -198,8 +214,9 @@ bindsym $mod+n exec i3-input -F 'rename workspace to %s' -P 'New name: '
bar {
mode dock
position top
font pango:DejaVu Sans 10
workspace_buttons yes
status_command ~/.i3/conky.sh
status_command ~/.config/i3/status.sh
colors {
background #101010
statusline #101010
@@ -215,13 +232,16 @@ client.focused_inactive #4c7899 #101010 #93a1a1 #484e50
client.unfocused #333333 #101010 #93a1a1 #292d2e
client.urgent #2f343a #101010 #93a1a1 #900000
new_window 1pixel
for_window [class="^Google-chrome$"] border none
assign [class="Google-chrome" window_role="browser"] 2: Web
for_window [class="^Firefox$"] border none
assign [class="Firefox" window_role="browser"] 2: Web
for_window [class="Xfce4-notifyd"] floating enable; border none; focus mode_toggle
for_window [class="^Xfce4-notifyd$"] floating enable; border none; focus mode_toggle
for_window [class="^URxvt$"] border 1px
for_window [title="^tmux$"] move to scratchpad;
for_window [title="^pcmanfm$"] move to scratchpad;
#KDE
for_window [class="Plasma-desktop"] border none
for_window [class="krunner"] border none
@@ -247,13 +267,16 @@ workspace "9: Misc Small" output eDP1
exec --no-startup-id nm-applet
exec --no-startup-id dropbox start
exec --no-startup-id xfce4-power-manager
exec --no-startup-id volti
exec --no-startup-id clipit
exec --no-startup-id syndaemon -i 0.5 -d
exec --no-startup-id synapse -s
exec xautolock -time 10 -corners "----" -locker 'i3lock -t -c 000000 -i ~/Pictures/Wallpapers/Game\ Over\ Hacker.png' &
exec --no-startup-id xautolock -time 10 -corners "----" -locker 'dm-tool lock'
#exec xautolock -time 10 -corners "----" -locker 'i3lock -t -c 000000 -i ~/Pictures/Wallpapers/Game\ Over\ Hacker.png' &
#exec --no-startup-id xautolock -corners '----' -time 10 -locker 'dm-tool lock' # lightdm
exec urxvt -name tmux -e tmux attach
exec --no-startup-id pcmanfm
exec --no-startup-id urxvt -name tmux -e tmux attach
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
@@ -269,7 +292,10 @@ mode "$mode_system" {
bindsym Escape mode "default"
}
bindsym $mod+Delete mode "$mode_system"
exec --no-startup-id nitrogen --restore &
bindsym $mod+Escape exec xfce4-session-logout
exec --no-startup-id dunst -conf ~/.config/dunst/dunst.conf
exec --no-startup-id xfce4-power-manager
#exec --no-startup-id compton -b --config ~/.compton.conf
#
exec --no-startup-id pasystray
exec --no-startup-id dropbox start
exec --no-startup-id nitrogen --restore
exec --no-startup-id compton -b --config ~/.compton.conf

View File

@@ -1,4 +1,4 @@
#!/bin/sh
echo "{\"version\":1}"
echo "[[] ,"
conky -c ~/.i3/conkyrc
conky -c ~/.config/i3/conkyrc

View File

@@ -1,18 +1,20 @@
out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
# Update interval in seconds
update_interval 2.0
total_run_times 0
override_utf8_locale yes
conky.config = {
out_to_x=no,
own_window=no,
out_to_console=yes,
background=no,
max_text_width=0,
--Update interval in seconds
update_interval=2.0,
total_run_times=0,
override_utf8_locale=yes
}
TEXT
# [{ "full_text" : "MPD" , "color" : "\#b58900" } ,
# { "full_text" : "${if_mpd_playing}${mpd_smart 50} ${mpd_elapsed}/${mpd_length}${else}${mpd_status}${endif}" , "color" :"\#93a1a1" } ,
[
conky.text = [[
{ "full_text" : "Phys" , "color" : "\#b58900" } ,
{ "full_text" : "${execi 10 sensors | grep 'Phys' | cut -d" " -f 5}", "color" :"\#93a1a1" } ,
{ "full_text" : "ACPI" , "color" : "\#b58900" } ,
{ "full_text" : "${execi 10 sensors | grep 'temp1' | cut -d" " -f 9}", "color" :"\#93a1a1" } ,
{ "full_text" : "HD" , "color" : "\#b58900" } ,
{ "full_text" : "home: ${fs_free /home}/${fs_size /home} root: ${fs_free /}/${fs_size /}" , "color" :"\#93a1a1" } ,
{ "full_text" : "Ram" , "color" : "\#b58900" } ,
@@ -23,4 +25,5 @@ TEXT
{ "full_text" : "${battery BAT0}" , "color" :
${if_match ${battery_percent BAT0}<20}"\#b95670"${else}"\#5f5f5f"${endif} } ,
{ "full_text" : "Date" , "color" : "\#b58900" } ,
{ "full_text" : "${time %b %d %Y %I:%M%P}", "color" :"\#93a1a1" }] ,
{ "full_text" : "${time %b %d %Y %I:%M%P}", "color" :"\#93a1a1" }
]]

160
i3/.config/i3/i3blocks.conf Normal file
View File

@@ -0,0 +1,160 @@
# 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=$SCRIPT_DIR/$BLOCK_NAME
separator_block_width=15
markup=none
color=#FFFFFF
# 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 1 pulse]
##label=VOL
#label=♪
#instance=Main
##instance=PCM
#interval=once
#signal=10
# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[temperature temp1]
label=TEMP
interval=10
# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label=Mem
separator=true
interval=30
instance=MemFree:
#[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 1]
label=/home
#instance=/mnt/data
interval=30
separator=false
[disk]
label=/
instance=/
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
interval=10
separator=false
[wifi]
instance=wlp1s0
interval=10
separator=false
[bandwidth]
#instance=eth0
interval=5
# 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: 100.00%
#separator=false
#[load_average]
#interval=10
# Battery indicator
#
# The battery instance defaults to 0.
[battery]
#label=BAT
label=⚡
instance=0
interval=30
# Date Time
#
[time]
command=date '+%Y-%m-%d %H:%M:%S'
interval=5
# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
#[mediaplayer]
#instance=spotify
#interval=5
#signal=10
# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20
# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11
#[keyindicator]
#instance=NUM
#interval=once
#signal=11

2
i3/.config/i3/status.sh Executable file
View File

@@ -0,0 +1,2 @@
#1/bin/sh
SCRIPT_DIR=/usr/lib/i3blocks i3blocks -c $HOME/.config/i3/i3blocks.conf

3
i3/.dmenurc Normal file
View File

@@ -0,0 +1,3 @@
DMENU_FONT='-*-*-medium-r-*-*-18-*-*-*-*-*-*-*'
DMENU="dmenu -i -fn $DMENU_FONT -nb #1E2320 -nf #DBDBDB -sb #3f3f3f -sf #ffffff"