Browse Source

Cleanup

master
jcmdln 3 years ago
parent
commit
55ba780638
2 changed files with 86 additions and 54 deletions
  1. 85
    53
      .config/i3/config
  2. 1
    1
      .emacs

+ 85
- 53
.config/i3/config View File

@@ -1,52 +1,95 @@
# ~/.config/i3/config

## Startup
### Startup ######################################

## rxvt settings
exec [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
exec urxvtd --quiet --opendisplay --fork

## Disable dpms
exec xset s off -dpms

font pango:monospace 8
bar {
position top
status_command i3status

### System #######################################

## State
set $Locker xset s 10 dpms 10 && i3lock -c 3f3f3f -n && xset s off -dpms
set $mode_system Lock (l), Logout (e), Reboot (r), Shutdown (s)
bindsym $mod+Home mode "$mode_system"
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym r exec --no-startup-id sudo reboot, mode "default"
bindsym s exec --no-startup-id sudo poweroff -i, mode "default"

bindsym Return mode "default"
bindsym Escape mode "default"
}

## Set default modifier key to <Win>
set $mod Mod4

## Start program launcher
bindsym $mod+d exec dmenu_run
### Display ######################################

## Start a terminal
bindsym $mod+Return exec lxterminal
## Brightness
bindsym XF86MonBrightnessUp exec xbacklight -inc 15
bindsym XF86MonBrightnessDown exec xbacklight -dec 15

## Reload i3
set $mode_reload Reload i3 config (r), Live restart of i3 (Shift+r)
bindsym $mod+Shift+r mode "$mode_reload"
mode "$mode_reload" {
bindsym r reload
bindsym Shift+r restart
## Resolution
set $mode_display Home (h), Laptop (l)
bindsym $mod+Shift+d mode "$mode_display"
mode "$mode_display" {
bindsym h exec xrandr --output LVDS-1 --primary --mode 1366x768 --pos 554x1080 --rotate normal --output DP-1 --off --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal --output VGA-1 --off, mode "default"
bindsym l exec xrandr --output LVDS-1 --primary --mode 1366x768 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output VGA-1 --off, mode "default"

bindsym Return mode "default"
bindsym Escape mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}

## System mode prompt
set $Locker xset s 10 dpms 10 && i3lock -c 3f3f3f -n && xset s off -dpms
set $mode_system Lock (l), Logout (Shift+l), Reboot (r), Shutdown (s)
bindsym $mod+Home mode "$mode_system"
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym Shift+l exec --no-startup-id i3-msg exit, mode "default"
bindsym r exec --no-startup-id sudo reboot, mode "default"
bindsym Shift+s exec --no-startup-id sudo poweroff -i, mode "default"

bindsym Return mode "default"
bindsym Escape mode "default"
### Appearance ###################################

## Font
font pango:Noto Mono 8

## Taskbar
bar {
position top
status_command i3status
}


### Movement #####################################
### Media ########################################

## Audio (Alsa)
#bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5+
#bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 5-
#bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle

## Audio (PulseAudio)
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioPlay exec --no-startup-id pactl play-pause
bindsym XF86AudioPause exec --no-startup-id pactl pause
bindsym XF86AudioNext exec --no-startup-id pactl next
bindsym XF86AudioPrev exec --no-startup-id pactl previous


### i3 ###########################################

set $mod Mod4
bindsym $mod+d exec dmenu_run
bindsym $mod+Return exec urxvtc

## Reload
set $mode_reload Reload i3 config (r), Live restart of i3 (Shift+r)
bindsym $mod+Shift+r mode "$mode_reload"
mode "$mode_reload" {
bindsym r reload
bindsym Shift+r restart

bindsym Return mode "default"
bindsym Escape mode "default"
}

## change focus
bindsym $mod+j focus left
@@ -119,29 +162,18 @@ floating_modifier $mod
## Resize window
bindsym $mod+r mode "resize"
mode "resize" {
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
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
bindsym Return mode "default"
bindsym Escape mode "default"
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
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

bindsym Return mode "default"
bindsym Escape mode "default"
}

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


### Media ########################################

## Volume control
bindsym XF86AudioRaiseVolume exec amixer set Master 5+
bindsym XF86AudioLowerVolume exec amixer set Master 5-
bindsym XF86AudioMute exec amixer set Master toggle

## Screen brightness control
bindsym XF86MonBrightnessUp exec xbacklight -inc 20
bindsym XF86MonBrightnessDown exec xbacklight -dec 20

+ 1
- 1
.emacs View File

@@ -26,7 +26,7 @@
(load-theme 'tango-dark)
(set-face-attribute
'default nil
:family "Mono" :weight 'normal
:family "Noto Mono" :weight 'normal
:height 96 :width 'normal)



Loading…
Cancel
Save