diff --git a/emacs/.emacs b/emacs/.emacs index 7d1306d..e317440 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -82,9 +82,21 @@ (ispell-hunspell-add-multi-dic "pt_BR,en_US-large")) (ispell-minor-mode 1) -;; Font for GTK +;; Position configs +(line-number-mode 1) +(column-number-mode 1) +(global-linum-mode 1) +(setq linum-format "%4d|") +;;(global-display-line-numbers-mode 1) +;;(setq display-line-numbers-type "%d|") + +;; Configs for GTK (set-frame-font "Monospace-11" nil t) (set-cursor-color "LightGoldenrod1") +(tool-bar-mode 0) +(scroll-bar-mode 0) +(menu-bar-mode 0) +(server-start) ;; Configure dumb-jump (dumb-jump-mode) diff --git a/fish/.config/fish/conf.d/utilities.fish b/fish/.config/fish/conf.d/utilities.fish index e150dd5..fcc438a 100644 --- a/fish/.config/fish/conf.d/utilities.fish +++ b/fish/.config/fish/conf.d/utilities.fish @@ -25,4 +25,3 @@ function starttmux emacs --daemon tmux end - diff --git a/script/.local/bin/i3_apps b/script/.local/bin/i3_apps new file mode 100755 index 0000000..58a1fe9 --- /dev/null +++ b/script/.local/bin/i3_apps @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# layouts +i3-msg "workspace 2; append_layout ~/.config/i3/tmux.json" +i3-msg "workspace 1; append_layout ~/.config/i3/editor.json" + +# editor workspace +i3-msg "exec --no-startup-id emacs --name editor" +i3-msg "exec --no-startup-id alacritty -t editortop" +i3-msg "exec --no-startup-id alacritty -t editorbot" + +# tmux workspace +i3-msg "exec --no-startup-id alacritty -t tmux -e tmuxi3" diff --git a/script/.local/bin/i3_init b/script/.local/bin/i3_init new file mode 100755 index 0000000..9c32259 --- /dev/null +++ b/script/.local/bin/i3_init @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +~/.fehbg +fish -c beepoff diff --git a/script/.local/bin/launch_browsers b/script/.local/bin/launch_browsers new file mode 100755 index 0000000..09380c8 --- /dev/null +++ b/script/.local/bin/launch_browsers @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +i3-msg "append_layout ~/.config/i3/browser.json" +i3-msg "exec --no-startup-id qutebrowser" +i3-msg "exec --no-startup-id kioclient5 exec .local/share/applications/firefox.desktop" diff --git a/script/.local/bin/tmuxi3 b/script/.local/bin/tmuxi3 new file mode 100755 index 0000000..c594d86 --- /dev/null +++ b/script/.local/bin/tmuxi3 @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +sleep 5 +tmux diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index ac018f6..faecfeb 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -13,7 +13,7 @@ split-window -v cmus select-pane -tstandard:multishell.0 split-window -v -select-pane -tstandard:text-editor.0 +select-pane -tstandard:multishell.0 unbind-key C-b set -g prefix "C-a" diff --git a/wm/.config/i3/browser.json b/wm/.config/i3/browser.json new file mode 100644 index 0000000..ea4f9d9 --- /dev/null +++ b/wm/.config/i3/browser.json @@ -0,0 +1,48 @@ +{ + "border": "normal", + "floating": "auto_off", + "layout": "tabbed", + "percent": null, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 600, + "width": 800, + "x": 50, + "y": 50 + }, + "name": "open multiple applications at startup on different workspaces : i3wm - qutebrowser", + "percent": 0.5, + "swallows": [ + { + "class": "^qutebrowser$" + } + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 709, + "width": 338, + "x": 0, + "y": 0 + }, + "name": "jceb/dex: DesktopEntry Execution - Mozilla Firefox", + "percent": 0.5, + "swallows": [ + { + "class": "^Firefox$" + } + ], + "type": "con" + } + ] +} + diff --git a/wm/.config/i3/config b/wm/.config/i3/config index 0f76959..346cd34 100644 --- a/wm/.config/i3/config +++ b/wm/.config/i3/config @@ -11,9 +11,6 @@ set $mod Mod4 -# execs -exec --no-startup-id ~/.fehbg - # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 @@ -29,6 +26,22 @@ font pango:monospace 8 # X core fonts rendering does not support right-to-left and this being a bitmap # font, it doesn’t scale on retina/hidpi displays. +# gaps conf +for_window [class=".*"] border pixel 0 +gaps outer 2 +gaps inner 4 +smart_gaps on + +# init environment +exec i3_init + +# layout +exec --no-startup-id i3_apps + +# quick launch +bindsym $mod+t exec --no-startup-id alacritty -e tmux +bindsym $mod+Shift+f exec --no-startup-id launch_browsers + # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -168,20 +181,18 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -bar { - status_command i3status +#bar { + #status_command i3status #status_command polybar example -} +#} -bindsym $mod+u border pixel 2 - -for_window [title="Desktop — Plasma"] kill; floating enable; border none +for_window [title="Desktop — Plasma"] kill; for_window [class="plasmashell"] floating enable; -for_window [class="Plasma"] floating enable; border none -for_window [title="plasma-desktop"] floating enable; border none -for_window [title="win7"] floating enable; border none -for_window [class="krunner"] floating enable; border none +for_window [class="Plasma"] floating enable; +for_window [title="plasma-desktop"] floating enable; +for_window [title="win7"] floating enable; +for_window [class="krunner"] floating enable; for_window [class="Kmix"] floating enable; border none -for_window [class="Klipper"] floating enable; border none +#for_window [class="Klipper"] floating enable; border none for_window [class="Plasmoidviewer"] floating enable; border none -for_window [class="(?i)*nextcloud*"] floating disable +#for_window [class="(?i)*nextcloud*"] floating disable diff --git a/wm/.config/i3/editor.json b/wm/.config/i3/editor.json new file mode 100644 index 0000000..528ddf7 --- /dev/null +++ b/wm/.config/i3/editor.json @@ -0,0 +1,71 @@ +{ + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 641, + "width": 672, + "x": 0, + "y": 0 + }, + "name": "emacs@ericonr-manjaro", + "percent": 0.6, + "swallows": [ + { + "class": "Emacs", + "instance": "editor" + } + ], + "type": "con" +} + +{ + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.4, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 832, + "width": 1109, + "x": 0, + "y": 0 + }, + "name": "fish /home/ericonr", + "percent": 0.5, + "swallows": [ + { + "instance": "^Alacritty$", + "title": "editortop" + } + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 832, + "width": 1109, + "x": 0, + "y": 0 + }, + "name": "fish /home/ericonr", + "percent": 0.5, + "swallows": [ + { + "instance": "^Alacritty$", + "title": "editorbot" + } + ], + "type": "con" + } + ] +} + diff --git a/wm/.config/i3/tmux.json b/wm/.config/i3/tmux.json new file mode 100644 index 0000000..a6dee22 --- /dev/null +++ b/wm/.config/i3/tmux.json @@ -0,0 +1,19 @@ +{ + "border": "pixel", + "current_border_width": 0, + "floating": "auto_off", + "geometry": { + "height": 832, + "width": 1109, + "x": 0, + "y": 0 + }, + "name": "i3-save-tree /home/ericonr", + "percent": 1, + "swallows": [ + { + "title": "tmux" + } + ], + "type": "con" +}