Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Small changes to i3 (some come from @killajoe)
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Jun 3, 2018
1 parent f0f1d6a commit 3abac59
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 55 deletions.
69 changes: 34 additions & 35 deletions skel/.config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -122,33 +122,33 @@ bindsym $mod+Shift+c reload
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'"
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'"

# lock
bindsym $mod+Shift+x exec i3lock --color 475263

# 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 ntilde 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"
# 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 ntilde 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"
Expand All @@ -171,25 +171,24 @@ client.urgent $urgent-bg-color $urgent-bg-color $text-color
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
font pango:monospace 9
status_command i3status
font pango:monospace 9

colors {
background $bg-color
separator #757575
# border background text
focused_workspace $bg-color $bg-color $text-color
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
}
background $bg-color
separator #757575
# border background text
focused_workspace $bg-color $bg-color $text-color
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
urgent_workspace $urgent-bg-color $urgent-bg-color $text-color
}
}

# floating windows
for_window [class="Pavucontrol"] floating enable
for_window [class="Kalu"] floating enable


# Multimedia Keys
## Multimedia Keys

# volume
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks
Expand Down Expand Up @@ -219,7 +218,7 @@ bindsym $mod+F7 exec mocp --previous
bindsym $mod+F8 exec mocp --next

# App shortcuts
bindsym $mod+w exec "/usr/bin/firefox"
bindsym $mod+w exec "/usr/bin/chromium"
bindsym $mod+n exec "/usr/bin/thunar"

# Redirect sound to headphones
Expand All @@ -230,4 +229,4 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id "compton -cC"
exec --no-startup-id nm-applet
exec --no-startup-id "nitrogen --restore"
exec --no-startup-id "sleep 5s && kalu"
exec --no-startup-id "sleep 2s && kalu"
46 changes: 26 additions & 20 deletions skel/.config/i3status/config
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ general {

order += "volume master"
order += "disk /"
order += "disk /data"
#order += "disk /data"
#order += "disk /home"
#order += "run_watch DHCP"
#order += "ipv6"
#order += "run_watch VPN"
#order += "wireless wlp4s0"
order += "ethernet enp5s0"
#order += "ethernet enp5s0"
#order += "battery 0"
order += "cpu_temperature 0"
order += "cpu_usage 0"
Expand All @@ -36,11 +36,11 @@ order += "tztime local"
# format_down = ""
#}

ethernet enp5s0 {
#if you use %speed, i3status requires root privileges
format_up = "%ip (%speed)"
format_down = ""
}
#ethernet enp5s0 {
# # if you use %speed, i3status requires root privileges
# format_up = "%ip (%speed)"
# format_down = ""
#}

battery 0 {
format = "%status %percentage %remaining"
Expand All @@ -64,8 +64,9 @@ run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}

#%Y-%m-%d %H:%M:%S'
tztime local {
format = " %A %e de %B de %Y  %H:%M"
format = " %d/%m/%Y  %H:%M"
}

load {
Expand All @@ -77,23 +78,29 @@ cpu_usage {
}

cpu_temperature 0 {
format = " %degrees°C"
format = " %degrees°C"
}

disk "/" {
format = " %avail"
prefix_type = custom
low_threshold = 20
threshold_type = percentage_avail
format = " %avail"
prefix_type = custom
low_threshold = 20
threshold_type = percentage_avail
}

disk "/data" {
format = " %avail"
prefix_type = custom
low_threshold = 20
threshold_type = percentage_avail
}
#disk "/data" {
# format = " %avail"
# prefix_type = custom
# low_threshold = 20
# threshold_type = percentage_avail
#}

#disk "/data" {
# format = " %avail"
# prefix_type = custom
# low_threshold = 20
# threshold_type = percentage_avail
#}

volume master {
format = "%volume  "
Expand All @@ -102,4 +109,3 @@ volume master {
mixer = "Master"
mixer_idx = 0
}

3 comments on commit 3abac59

@killajoe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to have this under default installable DE'S, as i3 is very popular and easy to maintain also (we have some smart users and mods and dev using it)

@karasu
Copy link
Member Author

@karasu karasu commented on 3abac59 Jun 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Let me do a test install and if everything is ok I will enable it.

@karasu
Copy link
Member Author

@karasu karasu commented on 3abac59 Jun 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.