Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set $mod Mod4
- #i3-gaps
- #gaps inner 12
- font pango:monospace 12
- # 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 lxterminal
- bindsym $mod+t exec lxterminal
- # kill focused window
- bindsym $mod+Shift+Q kill
- bindsym mod1+x kill
- bindsym button3 kill
- # start rofi (a program launcher)
- bindsym $mod+x exec "rofi -show combi "
- bindsym mod1+s exec "xdg-open $(locate home /run/media | rofi -dmenu -i -p locate )"
- # change focus
- #bindsym $mod+j focus left
- #bindsym $mod+k focus down
- #bindsym $mod+l focus up
- #bindsym $mod+m 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+M 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
- # 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+z 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+q focus parent
- # focus the child container
- #bindsym $mod+d focus child
- # 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 "1: root"
- set $ws2 "2: net"
- set $ws3 "3: Media"
- set $ws4 "4: Files"
- set $ws5 "5: Work"
- set $ws6 "6: Docs"
- set $ws7 "7"
- set $ws8 "8"
- set $ws9 "9"
- set $ws10 "10"
- # switch to workspace
- bindsym $mod+ampersand workspace $ws1
- bindsym $mod+eacute workspace $ws2
- bindsym $mod+quotedbl workspace $ws3
- bindsym $mod+apostrophe workspace $ws4
- bindsym $mod+parenleft workspace $ws5
- bindsym $mod+minus workspace $ws6
- bindsym $mod+egrave workspace $ws7
- bindsym $mod+underscore workspace $ws8
- bindsym $mod+ccedilla workspace $ws9
- bindsym $mod+agrave workspace $ws10
- # move focused container to workspace
- bindsym $mod+Shift+ampersand move container to workspace $ws1
- bindsym $mod+Shift+eacute move container to workspace $ws2
- bindsym $mod+Shift+quotedbl move container to workspace $ws3
- bindsym $mod+Shift+apostrophe move container to workspace $ws4
- bindsym $mod+Shift+parenleft move container to workspace $ws5
- bindsym $mod+Shift+minus move container to workspace $ws6
- bindsym $mod+Shift+egrave move container to workspace $ws7
- bindsym $mod+Shift+underscore move container to workspace $ws8
- bindsym $mod+Shift+ccedilla move container to workspace $ws9
- bindsym $mod+Shift+agrave move container to workspace $ws10
- # dual monitor settings
- #exec_always --no-startup-id xrandr --output HDMI-1 --right-of eDP-1
- set $firstmonitor eDP-1
- set $secondmonitor HDMI-1
- workspace $ws1 output $firstmonitor
- workspace $ws2 output $firstmonitor
- workspace $ws4 output $firstmonitor
- workspace $ws3 output $secondmonitor
- assign [class="Transmission-gtk"] $ws1
- assign [class="Firefox"] $ws2
- assign [class="Clementine|mpv|vlc"] $ws3
- assign [class="Pantheon-files"] $ws4
- assign [class="Evince|Transmission-gtk"] $ws6
- assign [class="Tor Browser"] $ws7
- #
- #
- #some window parameters
- for_window [class="mpv|Tor Browser|Transmission-gtk|vlc|Pavucontrol"] floating enable border normal
- for_window [class="Gnome-system-monitor|smplayer|Gnome-calculator"] floating enable border normal
- for_window [class="Pidgin"] floating enable border normal
- # 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'"
- # 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 m 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 shrink height 10 px or 10 ppt
- bindsym Up resize grow 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"
- # Start i3bar to display a workspace bar (plus the system information i3status
- # finds out, if available)
- bar {
- status_command i3blocks -c ~/.i3/i3blocks.conf
- position top
- #bindsym --release button3 exec scrot '%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/Pictures/' && mplayer ~/.i3/Nikon.ogg
- #mode hide
- #hidden_state hide
- #modifier Mod4
- }
- # Pulse Audio controls
- bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+
- bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%-
- bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
- # Screen brightness controls
- #bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
- #bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
- bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
- bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
- # Touchpad controls
- #bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
- #bindsym XF86TouchpadToggle exec vlc
- # Media player controls
- bindsym XF86AudioPlay exec playerctl play-pause
- bindsym XF86AudioPause exec playerctl play-pause
- bindsym XF86AudioNext exec playerctl next
- bindsym XF86AudioPrev exec playerctl previous
- #screenshots
- bindsym Print exec scrot '%Y-%m-%d-%s_$wx$h.png' -e 'mv $f ~/Pictures/' && mplayer ~/.i3/Nikon.ogg
- #other keyboard shortcuts
- bindsym $mod+l exec betterlockscreen --lock
- bindsym mod1+space exec ~/gDrive/gDrive/linux/scripts0/media-controls.sh pp
- bindsym mod1+n exec ~/gDrive/gDrive/linux/scripts0/media-controls.sh n
- bindsym mod1+b exec ~/gDrive/gDrive/linux/scripts0/media-controls.sh p
- bindsym mod1+v exec ~/gDrive/gDrive/linux/scripts0/media-controls.sh v
- bindsym mod1+c exec ~/gDrive/gDrive/linux/scripts0/media-controls.sh vv
- bindsym mod1+w exec ~/gDrive/gDrive/linux/scripts0/play.sh
- bindsym mod1+h exec ~/.i3/wchanger.sh dir
- bindsym mod1+j exec ~/.i3/wchanger.sh sdir
- bindsym mod1+g exec bash ~/.bash_functions eglllr
- bindsym mod1+d exec bash ~/.i3/wchanger.sh
- bindsym mod1+p exec ~/gDrive/gDrive/linux/scripts2/playFromClipboard.sh
- bindsym mod1+control+p exec "shutter -s=1,1,1920,1080 -d=2"
- bindsym control+less exec ~/gDrive/gDrive/linux/scripts2/ws.sh ++
- bindsym control+shift+less exec ~/gDrive/gDrive/linux/scripts2/ws.sh --
- #startup
- exec --no-startup-id compton
- #exec --no-startup-id google-drive-ocamlfuse ~/gDrive
- exec --no-startup-id firefox
- #exec --no-startup-id pidgin
- exec --no-startup-id mpd
- #exec --no-startup-id pantheon-files
- exec --no-startup-id ~/.i3/start-conky.sh
- exec --no-startup-id ~/.i3/cronscript.sh
- exec --no-startup-id ~/.i3/wchanger-engine.sh
- exec --no-startup-id redshift
- exec_always --no-startup-id numlockx on
- #exec_always --no-startup-id compton --config ~/.i3/compton.conf
- set $mode_display Ext Screen (v) VGA ON, (h) HDMI ON, (x) VGA OFF, (y) HDMI OFF
- mode "$mode_display" {
- bindsym v exec --no-startup-id xrandr --output VGA1 --auto --right-of LVDS1, mode "default"
- bindsym h exec --no-startup-id xrandr --output HDMI1 --auto --right-of LVDS1, mode "default"
- bindsym x exec --no-startup-id xrandr --output VGA1 --auto --off, mode "default"
- bindsym y exec --no-startup-id xrandr --output HDMI1 --auto --off, mode "default"
- # back to normal: Enter or Escape
- bindsym Return mode "default"
- bindsym Escape mode "default"
- }
- #
- #bindsym $mod+x mode "$mode_display"
- bindsym $mod+d exec ~/.i3/display.sh
- bindsym XF86Display exec ~/.i3/display.sh
- # multitouch gestures
- bindsym --whole-window $mod+button10 workspace prev_on_output
- bindsym --whole-window $mod+button11 workspace next_on_output
- #keyboard layout
- exec_always "setxkbmap -model pc104 -layout fr,ar -variant ,, -option grp:alt_shift_toggle"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement