From 10a15a75f7f029aa6db2d24698bba7a73751fbbe Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Fri, 17 Dec 2021 15:58:40 +0100 Subject: [PATCH] Update Dots --- README.md | 18 +--- files/.config/dunst/dunstrc | 81 +++++++++++++++++ files/.config/i3/config | 159 ++++++++++++++++++++++++++++++++++ files/.config/i3/i3 | 1 + files/.config/i3status/config | 44 ++++++++++ files/.config/rofi/config | 2 + files/.config/rofi/light.rasi | 102 ++++++++++++++++++++++ files/.profile | 3 + files/.vimrc | 1 - files/.zshrc | 2 + files/init.el | 12 ++- org/notes.org | 1 + 12 files changed, 405 insertions(+), 21 deletions(-) create mode 100644 files/.config/dunst/dunstrc create mode 100644 files/.config/i3/config create mode 120000 files/.config/i3/i3 create mode 100644 files/.config/i3status/config create mode 100644 files/.config/rofi/config create mode 100644 files/.config/rofi/light.rasi diff --git a/README.md b/README.md index b07d014..e2fca81 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,3 @@ # Marco's Dotfiles -## System - -+ DE: Gnome -+ Shell: zsh -+ Terminal: alacritty -+ Theme: Orchis Green + Tela Icons - -## Programs - -+ Editor: emacs -+ Mouse-Settings: piper -+ Screenshots: flameshot -+ pdf: Okular - -## Other Dependencies -+ fzf: fuzzy file finder -+ hunspell{-de, en}: spellchecking for emacs +my dots diff --git a/files/.config/dunst/dunstrc b/files/.config/dunst/dunstrc new file mode 100644 index 0000000..579fac4 --- /dev/null +++ b/files/.config/dunst/dunstrc @@ -0,0 +1,81 @@ +[global] + +# Window + + monitor = 0 + follow = mouse + geometry = "320x6-30+60" + indicate_hidden = yes + shrink = no + notification_height = 15 + separator_height = 1 + transparency = 0 + padding = 10 + horizontal_padding = 10 + frame_width = 0 + frame_color = "#ffffff" + separator_color = frame + sort = yes + idle_threshold = 120 + +# Text + + font = JuliaMono 12 + line_height = 04 + markup = full + format = "%s %p\n%b" + alignment = left + show_age_threshold = 60 + word_wrap = yes + ellipsize = middle + ignore_newline = no + stack_duplicates = true + hide_duplicate_count = false + show_indicators = yes + +# Icons + + icon_position = left + min_icon_size = 48 + max_icon_size = 96 + icon_path = /usr/share/icons/Qogir/status/48/:/usr/share/icons/Qogir/devices/48/:/usr/share/icons/Qogir/48x48/apps/ + +# History + + sticky_history = yes + history_length = 20 + +# Misc + + always_run_script = true + startup_notification = true + verbosity = mesg + corner_radius = 2 + force_xinerama = false + mouse_left_click = do_action + mouse_middle_click = close_all + mouse_right_click = close_current + + +[shortcuts] + close = ctrl+space + history = ctrl+shift+space + context = ctrl+shift+period + + +[urgency_low] + background="#ffffff" + foreground="#050505" + timeout = 7 + + +[urgency_normal] + background="#ffffff" + foreground="#050505" + timeout = 10 + + +[urgency_critical] + background="#ffffff" + foreground="#050505" + timeout = 0 diff --git a/files/.config/i3/config b/files/.config/i3/config new file mode 100644 index 0000000..9837d8d --- /dev/null +++ b/files/.config/i3/config @@ -0,0 +1,159 @@ +set $mod Mod4 +font pango:JuliaMono 12 +floating_modifier $mod + +# applications +bindsym $mod+Return exec --no-startup-id alacritty +bindsym $mod+d exec --no-startup-id rofi -show drun + +bindsym XF86AudioMute exec amixer -q set Master toggle +bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 3%- +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 3%+ +bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness +bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness + +# kill focused window +bindsym $mod+Shift+BackSpace kill + +# lock +bindsym $mod+Control+BackSpace exec --no-startup-id xlock -mode maze + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l 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+v split h + +# split in vertical orientation +bindsym $mod+s split v + +# enable stacked +bindsym $mod+a layout stacking + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# workspace layout +workspace_layout stacked + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# workspaces +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# 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 + +# 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 + +# titlebar +title_align center +new_window 1pixel + +# colors +set $white "#ffffff" +set $black "#5c6773" +set $dblack "#000000" +set $green "#a6cc70" +set $red "#ff3333" +set $blue "#55b4d4" +set $yellow "#e7c547" + +# class border backgr. text indicator child_border +client.focused $green $green $black $green $green +client.focused_inactive $yellow $yellow $black $yellow $yellow +client.unfocused $yellow $yellow $black $yellow $yellow +client.urgent $red $red $white $red $red + +# i3 bar +bar { + position top + status_command i3status + tray_output primary + separator_symbol " | " + tray_padding 5 + colors { + background $white + statusline $black + + focused_workspace $green $green $black + active_workspace $white $white $black + inactive_workspace $white $white $black + urgent_workspace $red $red $black + binding_mode $red $red $black + } +} + +# flaoting on start +for_window [class="Nautilus"] floating enable +for_window [class="Pavucontrol"] floating enable + +# border +hide_edge_borders smart +for_window [class="^.*"] border pixel 0 + +# gaps +gaps inner 10 + +# wallpaper and screen +exec --no-startup-id /home/marc/.local/bin/screen.sh + +# startup +exec --no-startup-id nm-applet +exec --no-startup-id keepassxc +exec --no-startup-id seafile-applet +exec --no-startup-id fcitx5 +exec --no-startup-id volumeicon +exec --no-startup-id picom diff --git a/files/.config/i3/i3 b/files/.config/i3/i3 new file mode 120000 index 0000000..f1712b3 --- /dev/null +++ b/files/.config/i3/i3 @@ -0,0 +1 @@ +/home/marc/dots/files/.config/i3 \ No newline at end of file diff --git a/files/.config/i3status/config b/files/.config/i3status/config new file mode 100644 index 0000000..ac9768c --- /dev/null +++ b/files/.config/i3status/config @@ -0,0 +1,44 @@ +general { + output_format = "i3bar" + colors = false + markup = pango + interval = 5 + color_good = '#2f343f' + color_degraded = '#ebcb8b' + color_bad = '#ba5e57' +} + +order += "wireless _first_" +order += "battery all" +order += "volume master" +order += "tztime local" + +wireless _first_ { + format_up = "%essid" + format_down = "Disconnected" +} + +volume master { + format = "%volume" + format_muted = "Muted" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + +battery all { + last_full_capacity = true + format = "%status %percentage" + format_down = "No Battery" + status_chr = "Charging" + status_bat = "Battery" + status_unk = "Unknown" + status_full = "Full" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 +} + +tztime local { + format = "%time" + format_time = "%a %-d %b %H:%M" +} diff --git a/files/.config/rofi/config b/files/.config/rofi/config new file mode 100644 index 0000000..7b4697e --- /dev/null +++ b/files/.config/rofi/config @@ -0,0 +1,2 @@ +rofi.modi: drun +rofi.theme: ~/.config/rofi/light.rasi diff --git a/files/.config/rofi/light.rasi b/files/.config/rofi/light.rasi new file mode 100644 index 0000000..476b2a2 --- /dev/null +++ b/files/.config/rofi/light.rasi @@ -0,0 +1,102 @@ +configuration { + show-icons: true; + display-drun: "🔎"; + location: 0; + fake-transparency: false; + hide-scrollbar: true; + bw: 0; + terminal: "alacritty"; + sidebar-mode: false; + font: "JuliaMono 12"; + +} + +// blur version +* { + bg: #ffffff; + ac: #0087af; +} + +* { + background-color: rgba(0, 0, 0, 0); + font: "JuliaMono 10"; +} + + + +window { + background-color: @bg; + border: 0; + border-radius: 4px; + padding: 30; + width: 30%; + height: 50%; + transparency: "real"; +} + +mainbox { + children: [ inputbar, listview]; + border-radius: 12; + border-color: #ffffff0A; +} + +listview { + columns: 3; + lines: 3; + padding: 8; + spacing: 0; + cycle: false; + dynamic: true; + layout: vertical; +} + +element { + border: 1; + orientation: vertical; + padding: 15 15 15 15; + border-radius: 6; +} + +element selected { + background-color: @ac; + border-color: #ffffff0A; + text-color: #000000; + transition: 20; +} + +element-icon { + size: 60; + horizontal-align: 0.5; + vertical-align: 0.5; +} + +element-icon { + size: 40; + horizontal-align: 0.5; + vertical-align: 0.5; +} + +element-text { + horizontal-align: 0.5; + vertical-align: 0.5; + text-color: inherit; +} + +inputbar { + children: [ prompt, entry ]; + padding: 4 8 4 8; + background-color: #ffffff00; +} + +prompt { + enabled: true; + padding: 0.5% 1% 0% 1%; + font: "JuliaMono 12"; +} + +entry { + text-color: @txt; + padding: 8 12 8 12; + font: "JuliaMono 12"; + margin: 0% 0% 0% 0%; +} diff --git a/files/.profile b/files/.profile index 6b2fe8f..12e2ced 100755 --- a/files/.profile +++ b/files/.profile @@ -20,3 +20,6 @@ export QT_IM_MODULE='ibus' export SDL_IM_MODULE='ibus' export XMODIFIERS='@im=ibus' export WINIT_UNIX_BACKEND=x11 + +eval $(systemctl --user show-environment | grep SSH_AUTH_SOCK) +export SSH_AUTH_SOCK diff --git a/files/.vimrc b/files/.vimrc index 3f726af..8f4092a 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -23,7 +23,6 @@ Plug 'tpope/vim-sleuth' " heuristic file indendation Plug 'jiangmiao/auto-pairs' " pair completion call plug#end() - " ============================== Colors syntax on let ayucolor="light" diff --git a/files/.zshrc b/files/.zshrc index d6ca0da..d152737 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -54,6 +54,8 @@ alias rm='rm -i' # Ask before removal alias cp='cp -i' # Ask before removal alias mv='mv -i' # Ask before removal +alias nssh='SSH_AUTH_SOCK= ssh' + if [ -f ~/.zshrc_local ]; then source ~/.zshrc_local fi diff --git a/files/init.el b/files/init.el index 1079a47..96337f3 100644 --- a/files/init.el +++ b/files/init.el @@ -145,6 +145,12 @@ :config (evil-collection-init)) +(use-package evil-matchit + :straight t + :after evil + :config + (global-evil-matchit-mode 1)) + ;;; ;;; Appearance @@ -358,8 +364,8 @@ ;; fancy checkboxes (org-mode . prettify-symbols-mode) (org-mode . (lambda () - (push '("[ ]" . "☐") prettify-symbols-alist) - (push '("[X]" . "☑" ) prettify-symbols-alist) + ;; (push '("[ ]" . "☐") prettify-symbols-alist) + ;; (push '("[X]" . "☑" ) prettify-symbols-alist) (push '("[-]" . "❍" ) prettify-symbols-alist))) ;(push '("#+begin_src" . "↦" ) prettify-symbols-alist) ;(push '("#+end_src" . "⇤" ) prettify-symbols-alist))) @@ -373,7 +379,7 @@ org-directory "~/org" org-agenda-files (quote ("~/org")) org-ellipsis " ⮷" - org-hide-emphasis-markers t ; hide bold and underline markers + ;; org-hide-emphasis-markers t ; hide bold and underline markers org-todo-keywords '((sequence "TODO" "PROGRESS" "REVIEW" "|" "DONE")) org-todo-keyword-faces '(("TODO" . "#cc241d") ("PROGRESS" . "#a6cc70") ("REVIEW" . "#b16286") ("DONE" . "#abb0b6")) org-edit-src-content-indentation 0 diff --git a/org/notes.org b/org/notes.org index 05d4cc4..f78ed36 100644 --- a/org/notes.org +++ b/org/notes.org @@ -8,6 +8,7 @@ #+LATEX_HEADER: \usepackage{amsthm} #+LATEX_HEADER: \usepackage{amssymb} #+LATEX_HEADER: \usepackage{amsmath} +#+LATEX_HEADER: \usepackage{amsfonts} #+LATEX_HEADER: \usepackage[utf8]{inputenc} #+LATEX_HEADER: \usepackage[T1]{fontenc} #+LATEX_HEADER: \usepackage[ngerman]{babel}