# 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 some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see https://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.
font pango: Noto Sans 8

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
# font pango:DejaVu Sans Mono 8

# Before i3 v4.8, we used to recommend this one as the default:
# 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, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec urxvt -g 80x35
bindsym $mod+Shift+Return exec urxvt -g 165x40
bindsym $mod+Shift+t exec xfce4-terminal

### Autostart
#exec --no-startup-id xsttingsd &
#exec --no-startup-id compton -b
#exec --no-startup-id nm-applet
exec --no-startup-id xset -b
exec --no-startup-id killall dunst ; dunst -config '/home/dragneel/.config/dunst/dunst-whiterc'
#exec --no-startup-id volumeicon
exec --no-startup-id pkill pulseaudio
exec --no-startup-id pulseaudio
#exec --no-startup-id mpd
#exec --no-startup-id xfsettingsd &
#exec --no-startup-id xfce4-power-manager
#bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
#exec --no-startup-id xrdb .config/i3/.Xresources
#exec --no-startup-id pkill i3bar
#exec --no-startup-id addy
exec --no-startup-id xrandr --output VGA-1 --mode 1024x768 --rate 60.00 --right-of LVDS-1 --output LVDS-1 --mode 1366x768 --rate 60.10
#exec --no-startup-id tint2 -c ~/.config/.tint2/statint_dark.tint2rc

##CONKY
#exec --no-startup-id conky -c Templates/conky/conky-theme-collections-master/cliff/cliff.conkyrc 
#exec --no-startup-id/ conky -c  ~/Templates/conky/conky-theme-collections-master/jadwal/jadwal.conkyrc

##WALLPAPER
#exec --no-startup-id hsetroot -solid '#FAF6F7' -extend ~/Pictures/Twitter08.jpg
#exec --no-startup-id hsetroot -fill Pictures/wallhaven-6108867-dark.jpg -blur 6 
#exec --no-startup-id hsetroot -fill Pictures/bridge-building-1.jpg -blur 1
#exec --no-startup-id hsetroot -solid '#8184ci' -fill ~/Pictures/lock/lockkucing.png
#exec --no-startup-id hsetroot -solid '#252839' -center ~/Pictures/omahku.png
exec --no-startup-id hsetroot -solid '#F1F2E2' -center ~/Pictures/WomCartoon/SuperSecret-2.png

# kill focused window
bindsym $mod+q kill
#bindsym $alt+F4 kill

# start dmenu/rofi (a program launcher)
#bindsym $mod+d exec dmenu_run
bindsym $mod+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'

# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# change focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Tab focus right

# change focus window
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+Shift+j move left  100 px 
bindsym $mod+Shift+k move down  100 px
bindsym $mod+Shift+l move up  100 px 
bindsym $mod+Shift+semicolon move right  100 px

# 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

# common apps keybinds
#bindsym Print exec "notify-send '   TAKING  SCREENSHOT ...'; scrot 'Cheese_%a-%d%b%y_%H.%M.%S.png' -e 'viewnior ~/$f'"
bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.%S.png' -e 'viewnior ~/$f'
bindsym Shift+Print exec scrot -bu 'Screenshot_%a-%d%b%y_%H.%M.%S.png' -e 'mv $f ~/Pictures/Screenshots && viewnior ~/Pictures/Screenshots/$f'
#bindsym $mod+l exec i3lock -c 999999 -i Pictures/lock/lockkucing.png   
bindsym $mod+Shift+w exec firefox
bindsym $mod+Shift+f exec thunar;focus ;
bindsym $mod+Shift+g exec chromium
bindsym $mod+Ctrl+f exec xfce4-terminal -e ranger;focus ;

#change volume
bindsym XF86AudioRaiseVolume exec amixer -c 0 set PCM 2dB+
bindsym XF86AudioLowerVolume exec amixer -c 0 set PCM 2dB-
bindsym XF86AudioMute exec amixer set Master toggle 
bindsym $mod+plus exec amixer -c 0 set PCM 2dB+
bindsym $mod+minus exec amixer -c 0 set PCM 2dB-

# music control
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioStop exec mpc stop
bindsym $mod+p exec pavucontrol
bindsym $mod+Shift+p exec mpc toggle
bindsym $mod+Ctrl+Right exec mpc next
bindsym $mod+Ctrl+Left exec mpc prev

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

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

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

# focus the child container
#bindsym $mod+d focus child

#ncmpcpp-albumart
bindsym $mod+Shift+n exec urxvt -g 75x12 -e ncmpcpp -c ~/.ncmpcpp/config-art
bindsym $mod+n exec urxvt -g 70x13 -e ncmpcpp
bindsym $mod+Ctrl+n exec urxvt -g 40x15 -e ncmpcpp -c ~/.ncmpcpp/albumonly

#slop
bindsym $mod+S exec slop1

#file manager
bindsym $mod+m exec xfce4-taskmanager

# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "WAN  "
set $ws2 "TU  "
set $ws3 "TRI  "
set $ws4 "FOR  "
set $ws5 "VAIF  "
set $ws6 "SIX  "
set $ws7 "SEVEN  "
set $ws8 "EIGHT  "
set $ws9 "NAIN  "
set $ws10 "TEN  "

##POLYBAR
#set $ws1 ""
#set $ws2 ""
#set $ws3 ""
#set $ws4 ""
#set $ws5 ""
#set $ws6 ""
#set $ws7 ""
#set $ws8 ""
#set $ws9 ""
#set $ws10 ""

# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10

##########-----POWERMENU-----############
# 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 $ws3
# 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+q exec urxvt -g 50x10 -e sudo shutdown -h now
bindsym $mod+Shift+q exec ~/.config/polybar/scripts/powermenu-alt


# 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 50 px or 50 ppt
        bindsym k resize grow height 50 px or 50 ppt
        bindsym l resize shrink height 50 px or 50 ppt
        bindsym semicolon resize grow width 50 px or 50 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 or $mod+r
        bindsym Return mode "default"
        bindsym Escape mode "default"
        bindsym $mod+r mode "default"
}

bindsym $mod+r mode "resize"

##POLYBAR
#exec_always --no-startup-id $HOME/.config/polybar/launch.sh

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
	#font pango: Iosevka Nerd Font 7.5
	font pango: arimo Nerd Font 8
	#status_command ~/.config/i3/bumblebee-status/bumblebee-status -m date time pasink -p date.format="%d-%m-%Y" time.format="%I:%M %P"	  
	#status_command ~/.config/i3/conkybar-/statusbar.sh
	status_command ~/.config/i3/conkybar-/snowbar.sh
	#status_command ~/.config/i3/conkybar.sh 
colors {	
        background #2f343f
        statusline #2f343f
	    separator #4b5262

#colour of border, background, and text
        focused_workspace	#FFFFFF	#FFFFFF	#222222 
        active_workspace	#2f343f	#2f343f	#d8dee8
        inactive_workspace	#2f343f	#2f343f	#d8dee8
        urgent_workspace	#2f343f	#ebcb8b	#2f343f
    }
#exec --no-startup-id tint2 -c ~/.config/.tint2/statint_dark.tint2rc
#status_command i3status --config ~/.config/i3status/i3status.conf
#exec_always --no-startup-id $HOME/.config/polybar/yune/launch.sh       
}

# colour of border, background, text, indicator, and child_border
client.focused			    #FFFFFF #FFFFFF #2F343F #FFFFFF #FFFFFF
client.focused_inactive		#2f343f #2f343f #ffffff #2f343f #5D7AA0
client.unfocused		    #5D7AA0 #5D7AA0 #ffffff #5D7AA0 #5D7AA0
client.urgent			    #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder		    #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.unfocused_floating	#5D7AA0 #ffffff #ffffff #5D7AA0 #5D7AA0
client.background		    #FFFFFF

# use window title, but no border
bindsym $mod+t border normal 0
# use no window title and a thick border
bindsym $mod+y border pixel 3
# use neither window title nor border
bindsym $mod+u border none

default_border pixel 4

##Floating
for_window [class=URxvt|xfce-terminal] floating enable
for_window [class=Firefox] floating enable
for_window [class=Chromium] floating enable
for_window [class=Audacious] floating enable
for_window [class=Gpicview|viewnior|feh|] floating enable; border pixel 4 
for_window [class=Thunar] floating enable
for_window [class=xfce4-taskmanager] floating enable
for_window [class=Pavucontrol] floating enable
for_window [class=vlc] floating enable

## Workspace Focus
# Thunar
assign [class=Thunar] $ws4
for_window [class=Thunar] focus
# Vlc
assign [class=vlc] $ws5
for_window [class=vlc] focus
# Browser
assign [class=Firefox|Chromium] $ws3
for_window [class=Firefox|Chromium] focus
# Pavucontrol
assign [class=Pavucontrol] $ws2
for_window [class=Pavucontrol] focus
# Telegram
assign [class=Telegram|Line] $ws6
for_window [class=Telegram] focus
# MPV
assign [class=mpv] $ws5
for_window [class=mpv] focus
# Ranger
assign [class=ranger] $ws4
for_window [class=ranger] focus
# GIMP
assign [class=gimp-2.10] $ws7
for_window [class=gimp-2.10] focus 

# resize floating window
floating_minimum_size 75 x 50
floating_maximum_size 1266 x 720 
 
## window configuration
title_align center
# default_border normal
# default_floating_border normal
# hide_edge_borders smart
# focus_follows_mouse no
# popup_during_fullscreen smart
# force_focus_wrapping workspace
