From 157d5007cee45d4193aa9ebb0fb2f52597c78413 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Tue, 8 Jun 2021 14:14:18 +0200 Subject: [PATCH] updates --- dunst/dunstrc | 152 +++++++++++++++++++++ fish/config.fish | 3 +- fish/functions/fish_user_key_bindings.fish | 3 - gtk-3.0/settings.ini | 16 +++ hjalmar-mothership/i3/config | 1 + manjaro.md | 2 +- nvim/init.vim | 10 +- 7 files changed, 175 insertions(+), 12 deletions(-) create mode 100644 dunst/dunstrc create mode 100644 gtk-3.0/settings.ini diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100644 index 0000000..abf5586 --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,152 @@ +[global] + monitor = 0 + follow = keyboard + geometry = "350x5-0+24" + indicate_hidden = yes + shrink = yes + transparency = 20 + notification_height = 0 + separator_height = 2 + padding = 0 + horizontal_padding = 8 + frame_width = 3 + frame_color = "#282828" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + idle_threshold = 120 + font = Monospace 14 + line_height = 0 + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + alignment = left + show_age_threshold = 60 + word_wrap = yes + ellipsize = middle + ignore_newline = no + stack_duplicates = true + hide_duplicate_count = true + show_indicators = yes + icon_position = left + max_icon_size = 40 + #icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/ + sticky_history = yes + history_length = 20 + dmenu = /usr/bin/dmenu -p dunst: + browser = /usr/bin/firefox -new-tab + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + title = Dunst + class = Dunst + startup_notification = false + force_xinerama = false +[experimental] + per_monitor_dpi = false + +[shortcuts] + close = ctrl+space + close_all = ctrl+shift+space + history = ctrl+grave + context = ctrl+shift+period + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#282828" + foreground = "#928374" + timeout = 5 + # Icon for notifications with low urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_normal] + background = "#458588" + foreground = "#ebdbb2" + timeout = 5 + +[urgency_critical] + background = "#cc2421" + foreground = "#ebdbb2" + frame_color = "#fabd2f" + timeout = 0 + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# Messages can be matched by "appname", "summary", "body", "icon", "category", +# "msg_urgency" and you can override the "timeout", "urgency", "foreground", +# "background", "new_icon" and "format". +# Shell-like globbing will get expanded. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: if you don't want a notification to be displayed, set the format +# to "". +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# format = "" + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +# vim: ft=cfg diff --git a/fish/config.fish b/fish/config.fish index 47e5f04..65ae568 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,11 +1,10 @@ set -x QT_QPA_PLATFORMTHEME "qt5ct" set -x GTK2_RC_FILES "$HOME/.gtkrc-2.0" -set -x JAVA_HOME "/usr/lib/jvm/default/" set -x PYTHONBREAKPOINT ipdb.set_trace # cuda stuff set -x CUDA_HOME /opt/cuda -set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH:$CUDA_HOME/lib64 +set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH $CUDA_HOME/lib64 set -Ua fish_user_paths /home/hjalmarlucius/.local/bin/ # Base16 Shell diff --git a/fish/functions/fish_user_key_bindings.fish b/fish/functions/fish_user_key_bindings.fish index 2dfece6..ea11cfc 100644 --- a/fish/functions/fish_user_key_bindings.fish +++ b/fish/functions/fish_user_key_bindings.fish @@ -2,15 +2,12 @@ function fish_user_key_bindings for mode in insert default visual bind -M $mode \cf forward-char end - bind --preset _ beginning-of-line bind -M insert \ew __fzf_reverse_isearch bind -M insert \eo '__fzf_cd --hidden' bind -M insert \eF __fzf_find_file bind -M insert \ef __fzf_open end -fzf_key_bindings - function ll --description 'List contents of directory using long format' ls -lha $argv end diff --git a/gtk-3.0/settings.ini b/gtk-3.0/settings.ini new file mode 100644 index 0000000..371c307 --- /dev/null +++ b/gtk-3.0/settings.ini @@ -0,0 +1,16 @@ +[Settings] +gtk-theme-name=Arc-Gruvbox +gtk-icon-theme-name=Adwaita +gtk-font-name=Sans 10 +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_TEXT +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=0 +gtk-menu-images=1 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintfull +gtk-xft-rgba=rgb +gtk-cursor-theme-name=Adwaita diff --git a/hjalmar-mothership/i3/config b/hjalmar-mothership/i3/config index 84456aa..b4f3b70 100644 --- a/hjalmar-mothership/i3/config +++ b/hjalmar-mothership/i3/config @@ -166,6 +166,7 @@ bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9; workspace $ws9 # Open specific applications in floating mode +for_window [class=".*"] border pixel 3 for_window [class="GParted"] floating enable border normal for_window [class="Lightdm-settings"] floating enable for_window [class="Lxappearance"] floating enable sticky enable border normal diff --git a/manjaro.md b/manjaro.md index deaaafc..3bb7e9a 100644 --- a/manjaro.md +++ b/manjaro.md @@ -9,7 +9,7 @@ * `curl -L https://get.oh-my.fish | fish` * `omf install https://github.com/edc/bass` * `omf install https://github.com/jethrokuan/fzf` -* div applications `yay -S thunar ranger drawio-desktop steam-manjaro` +* div applications `yay -S thunar ranger drawio-desktop steam-manjaro vtop nvtop` * div utils `yay -S trash-cli rofi redshift flameshot asus-fan-control` * sysrq lock shutdown https://forum.manjaro.org/t/howto-reboot-turn-off-your-frozen-computer-reisub-reisuo/3855 + `echo kernel.sysrq=1 | sudo tee --append /etc/sysctl.d/99-sysctl.conf` diff --git a/nvim/init.vim b/nvim/init.vim index 2a6c68b..2674f90 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -69,11 +69,13 @@ endif if !exists('g:colors_name') " let g:seoul256_background=233 " silent! colorscheme seoul256 - silent! colorscheme base16-monokai + silent! colorscheme seoul256-light + " silent! colorscheme base16-monokai " silent! colorscheme base16-tomorrow-night " seoul256 theme config: dark 233-239, light 252-256 endif -highlight Normal guibg=NONE ctermbg=NONE +set colorcolumn=88 +highlight ColorColumn ctermbg=0 highlight LineNr guibg=NONE ctermbg=NONE highlight clear SignColumn @@ -117,10 +119,6 @@ set undofile " Persistent undo set undolevels=500 " Maximum number of changes that can be undone set undoreload=5000 " Maximum number lines to save for undo on a buffer reload -" line width ruler -set colorcolumn=88 -highlight ColorColumn ctermbg=0 guibg='#3a3a3a' - " search set ignorecase " Case insensitive search set smartcase " ... but case sensitive when uc present