Skip to content

alexandrebobkov/dotfiles_e403sa

Repository files navigation

Asus Vivo Book e403sa dotfiles

Screenshot

i3wm

Create symbolic link to .config/i3/config file to keep it in sync with repository.

Note

REQUIRED:

feh, xfce4-terminal, terminal-awesome-fonts, galculator, nautilus, scrot, xfce4-screenshooter, fswebcam, synclient, rofi

Global Configurations & Default Launchers

set $mod Mod4
set $bar_mod Mod4
new_float normal
hide_edge_borders smart
font pango:monospace 10

## start a terminal
bindsym $mod+Return exec --no-startup-id xfce4-terminal --hide-scrollbar

## show htop in terminal
bindsym $mod+Shift+Return exec xfce4-terminal --hide-scrollbar -e htop

## start Midnight Commander
bindsym $mod+Ctrl+Return exec xfce4-terminal --hide-scrollbar --command mc

# kill focused window
bindsym $mod+q kill
bindsym $mod+Escape kill
bindsym button3 kill

# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id rofi -show drun -theme DarkBlue.rasi
bindsym $mod+Shift+d exec --no-startup-id rofi -show run -columns 5  -eh 1 -theme DarkBlue.rasi -fullscreen
bindsym $mod+z exec --no-startup-id rofi -show window -theme solarized -location 0 -window-format: w:10 t:10
bindsym $mod+Tab exec --no-startup-id rofi -show window -theme DarkBlue.rasi -location 0 -window-format: w:10 t:10
#bindsym $modl+tab exec --no-startup-id rofi -show window
bindsym $mod+shift+a exec --no-startup-id xfce4-appfinder

Controls


# 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
# move window to another output screen
bindsym $mod+Alt+Left move container to output HDMI2

# split in horizontal orientation
bindsym $mod+h split v;exec notify-send 'tile vertically'

# split in vertical orientation
bindsym $mod+v split h;exec notify-send 'tile horizontally'

# 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
#bindsym button1 floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# toggle sticky
bindsym $mod+Shift+s sticky toggle

Workspaces

## terminals

# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+b workspace back_and_forth

set $workspace1 "1:Terminals "

## Filebrowser fa-folder []
set $workspace2 "2:"

## Internet browser fa-chrome []
set $workspace3 "3: "
## Mail
set $workspace4 "4:"
## Excel
set $workspace5 "5:2 "

## Word
#set $workspace6 "6:"
set $workspace6 "6:"
#set $workspace6 "6:"
set $workspace7 "7:"

## E-mail fa-envelope-open []
#set $workspace8 "8:"
set $workspace8 "8:"

## Leisure fa-coffee []
set $workspace9 "9:"

## Media fa-music []
set $workspace10 "10:"

# switch to workspace (and switch wallpaper)

bindsym $mod+1 workspace $workspace1
##; $feh $HOME/Pictures/Wallpapers/wallpaper_101.png
bindsym $mod+2 workspace $workspace2
##; $feh $HOME/Pictures/Wallpapers/wallpaper_014.jpg
bindsym $mod+3 workspace $workspace3
##; $feh $HOME/Pictures/Wallpapers/wallpaper_010.jpg
bindsym $mod+4 workspace $workspace4
##; $feh $HOME/Pictures/Wallpapers/wallpaper_014.jpg
bindsym $mod+5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace10

# Cycle through the workspaces
#bindsym $mod+Left workspace next

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10
# move focused container to the screen
#bindsym $mod+] move container to output right

# 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'"
bindcode 125+Shift+18 exec "i3-nagbar -t warning -m 'Exit i3?' -b 'Yes' 'i3-msg exit'"

# Open specific applications in floating mode
for_window [class="Gnome-pomodoro"] floating enable border pixel 1
for_window [title="2048"] floating enable border pixel 1
for_window [class="Skype"] floating enable border normal
for_window [class="GParted"] floating enable border normal
for_window [title="Application Finder"] floating enable border pixel 1
for_window [title="Calculator"] floating enable border pixel 5
for_window [title="galculator"] floating enable border pixel 5
for_window [class="Firefox"] border pixel 0
for_window [class="Min"] border pixel 0
for_window [class="Chromium"] border pixel 3
for_window [class="Xfce4-terminal"] border pixel 15
new_window pixel 3

# 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"

# Dark Slate Gray	#183E46
# Steel Blue		#4484A0
# Light Steel Blue	#CED7E3
# Cadet Blue		#668D9F
# Light Steel Blue	#90B0C3

# Colors Palette
set $base0	#839496
set $base1	#93A1A1
set $base2	#EEE8D5
set $base3	#FDF6E3
set $base03	#002B36
set $base00	#657B83
set $base01	#586E75
set $base02	#073642

set $blue	#268BD2
set $black	#252936
set $cyan	#2AA198
set $green	#859900
set $green2	#073642
set $red	#DC322F
set $magenta	#D33682
set $orange	#CB4B16
set $violet	#6C71C4
set $yellow	#B589
set $white	#FFFFFF
set $white1	#EEE8D5
set $white2	#F1F2F6

set $color_window_focused	#002B36
##268bd2
set $color_window_nofocus	#252936
#			border			background		text		indicator
client.focused		$color_window_focused	$color_window_focused	$white2		$white2
client.unfocused	$color_window_nofocused	$color_window_nofocus	$base00		$base0F
client.urgent		$base02	$base08		$base00			$base0F

client.background #eee8d5
# Make title bold
for_window [class=".*"] title_format "<b><i>%title</i></b>"

## bar to show shortcuts
bar {
    id bar-4
    mode hide
    hidden_state hide
    modifier $bar_mod
    position top
    tray_output eDP1
    tray_padding 5
    workspace_buttons no
    font pango:FontAwesome 9
    colors {
        background  $white2
        statusline  $green2
    }
    status_command conky -c $HOME/.config/conky/shortcuts_top.conf
}

Custom Keystrokes


## Make the currently focused window a scratchpad
bindsym $mod+Shift+minus move scratchpad

## Show the first scratchpad window
bindsym $mod+minus scratchpad show
#bindsym $mod+button1 scratchpad show

# Use xmodmap -pke command to identify key opcodes
# or showkey --keycodes

bindsym $mod+ctrl+w exec --no-startup-id feh --randomize --bg-scale $HOME/Pictures/Wallpapers/*

# Lock the screen
#bindsym $mod+shift+x exec xscreensaver gleidescope -root -duration 148
# wallpaper 101 - Arch logo onblack background
#bindsym $mod+shift+x exec i3lock -e -I 5 -i $HOME/Pictures/Wallpapers/wallpaper_094_msg.png / 121
bindsym $mod+shift+x exec i3lock -e -I 5 -i $HOME/Pictures/Wallpapers/wallpaper_121.png
#bindsym $mod+shift+x exec i3lock -e -I 5 -i $HOME/Pictures/Wallpapers/transfer-orange-3840x2160-4k.jpg
#; exec xbacklight -set 10

# Media keys
#bindsym XF86MonBrightnessUp exec "xbacklight -dec 5"
## Touchpad controls
# Volume up
bindcode 123 exec --no-startup-id amixer -q sset Master Playback Volume 2%+
# Volume down
bindcode 122 exec --no-startup-id amixer -q sset Master Playback Volume 2%-
# Volume Mute
bindcode 121 exec --no-startup-id amixer -q sset Master Playback Volume toggle;exec notify-send 'Toggle Mute'

# PLAY/PAUSE
#bindcode 164
# NEXT
#bindcode 163
# PREV
#bindcode 165
# STOP
#bindcode 166

# Z-z-z
#bindcode 240
# Plane mode
#bindcode 247
# Fn + F3
#bindcode 215
# Fn + F4
#bindcode 150
# Fn + F9 code 191 - Toggle mousepad
#bindcode 191 exec --no-startup-id synclient TouchpadOff=1
bindsym $mod+F9 exec --no-startup-id synclient TouchpadOff=1;exec notify-send 'Touchpad off'
bindsym $mod+Ctrl+F9 exec --no-startup-id synclient TouchpadOff=0;exec notify-send 'Touchpad on'

## Take Screenshot
#bindcode 107 exec "i3-nagbar -t warning -m 'Screenshot'"
bindcode 107 exec --no-startup-id scrot 'Screenshot_%Y-%h-%d_%H:%M:%S.png' -e 'mv $f ~/Pictures/screenshots/'
#bindcode 107 exec --no-startup-id xfce4-screenshooter -f
## Capture Camera
bindcode Shift+107 exec fswebcam -c ~/.config/fswebcam/fswebcam.conf

## Launch file browser
#bindsym $mod+ctrl+f exec thunar
bindsym $mod+ctrl+f exec nautilus
## Launch Chrome browser
bindsym $mod+shift+b exec chromium
bindsym $mod+ctrl+b exec firefox
## Launch Sublime text editor
#bindsym $mod+ctrl+t exec $HOME/Software/sublime-text/sublime-text.sh
bindsym $mod+ctrl+t exec --no-startup-id subl
## Launch chrome calculator
#bindsym $mod+ctrl+c exec --no-startup-id /usr/bin/chromium --profile-directory=Default --app-id=joodangkbfjnajiiifokapkpmhfnpleo
## Launch calculator
bindsym $mod+ctrl+c exec --no-startup-id galculator
## Show/Hide calendar
#bindsym $mod+ctrl+d exec --no-startup-id orage -t
bindsym $mod+ctrl+d exec --no-startup-id chromium --app=https://calendar.google.com/calendar/b/0/render\?tab\=mc\&t\=AKUaPmZ6TGE1i6-E7m8ykcxa8VxajckrciSNyBzLkF9KyvalkGbmxbrcRgSKTQEOkRwWC2gznRHYuoVp0gYu4zf2GHZ7wwDJgA%3D%3D\#main_7%7Cmonth
## Thunderbird
bindsym $mod+ctrl+m exec --no-startup-id thunderbird

Start Apps on Load


exec_always --no-startup-id feh --bg-scale $HOME/Pictures/Wallpapers/wallpaper_048.jpeg

##Set keyboard layout
exec_always --no-startup-id setxkbmap -layout en
exec_always --no-startup-id setxkbmap -model pc105 -layout us

## Launch calendar on start
#exec  --no-startup-id orage

## Dropbox
exec --no-startup-id dropbox
#exec conky -c $HOME/.config/conky/conky_cal

## Compton
exec_always --no-startup-id compton --config /home/e403sa/.config/compton/compton.conf

## Polybar
exec_always --no-startup-id ~/.config/polybar/polybar.sh &

# Network Manager
exec --no-startup-id nm-applet

## run conky showing date and time.
### exec_always --no-startup-id sh ~/.config/conky/get_weather_icon.sh
### exec --no-startup-id conky -c /home/e403sa/.config/conky/conky_date.conf
# exec --no-startup-id conky -c /home/e403sa/.config/conky/shortcuts.conf
#exec --no-startup-id conky -c /home/e403sa/.config/conky/shortcuts_top.conf
## Dual Monitor
#exec –no-startup-id xrandr --output HDMI2 --right-of eDP1 --auto

## Blank screen after 5 minutes
exec --no-startup-id xset s 400 600
exec --no-startup-id xfce4-power-manager
exec --no-startup-id blueman-applet
exec --no-startup-id clementine
# Launch Chrome calculator
#exec --no-startup-id /usr/bin/chromium --profile-directory=Default --app-id=joodangkbfjnajiiifokapkpmhfnpleo
# Set mousepad values
exec_always --no-startup-id synclient VertScrollDelta=-70
exec_always --no-startup-id synclient MaxSpeed=4
exec_always --no-startup-id synclient AccelFactor=0.08
exec --no-startup-id volumeicon
# enable click on tap
exec_always --no-startup-id synclient VertEdgeScroll=1 TapButton1=1 TapButton2=1 TapButton3=1

# Screen saver
# exec_always --no-startup-id xautolock -time 5 -locker 'i3lock -i ~/Pictures/Wallpapers/wallpaper_301.png'
# exec_always --no-startup-id xautolock -time 5 -locker 'i3lock -i  ~/Pictures/Wallpapers/wallpaper_050.png'
# exec_always --no-startup-id xautolock -time 5 -locker 'xlock -mode spiral -count 12 -erasedelay  400  -cycles 1000 -nolock'

#exec_always --no-startup-id nm-applet

# Complex key binds - press mod+o, then selection followed by Enter key.
set $mode_launcher Launch: Chrome | Thunderbird | Excel | Word | Music
mode "$mode_launcher" {
	bindsym c exec --no-startup-id chromium
	bindsym t exec --no-startup-id thunderbird
    bindsym e exec --no-startup-id et
    bindsym w exec --no-startup-id wps
    bindsym m exec --no-startup-id clementine
    bindsym q mode "default"
	bindsym Escape mode "default"
	bindsym Return mode "default"
}
bindsym $mod+o mode "$mode_launcher"
# pacman -Rns $(pacman -Qtdq)

#exec_always --no-startup-id xcompmgr -c f -n
#exec_always --no-startup-id compton -I 0.5 -O 0.5 -D 25 -i 0.8 -e 0.8
#exec_always --no-startup-id compton -cCGfF -D25

gaps outer 5
gaps inner 25
#smart_borders on