Initial Nord version

This commit is contained in:
Patrick Wadström 2020-12-23 21:37:36 +01:00
parent a9b9647518
commit 38b3511091
6 changed files with 226 additions and 331 deletions

View File

@ -188,36 +188,60 @@ bindsym $mod+r mode "resize"
# --------------------------------------------------- # # --------------------------------------------------- #
set $base00 #151515 #set $base00 #151515
set $base01 #202020 #set $base01 #202020
set $base02 #303030 #set $base02 #303030
set $base03 #505050 #set $base03 #505050
set $base04 #b0b0b0 #set $base04 #b0b0b0
set $base05 #d0d0d0 #set $base05 #d0d0d0
set $base06 #e0e0e0 #set $base06 #e0e0e0
set $base07 #f5f5f5 #set $base07 #f5f5f5
set $base08 #fb9fb1 #set $base08 #fb9fb1
set $base09 #eda987 #set $base09 #eda987
set $base0A #ddb26f #set $base0A #ddb26f
set $base0B #acc267 #set $base0B #acc267
set $base0C #12cfc0 #set $base0C #12cfc0
set $base0D #6fc2ef #set $base0D #6fc2ef
set $base0E #e1a3ee #set $base0E #e1a3ee
set $base0F #deaf8f #set $base0F #deaf8f
# Property Name Border BG Text Indicator Child Border ## Property Name Border BG Text Indicator Child Border
client.focused $base05 $base0D $base00 $base0D $base0D #client.focused $base05 $base0D $base00 $base0D $base0D
client.focused_inactive $base01 $base01 $base05 $base03 $base01 #client.focused_inactive $base01 $base01 $base05 $base03 $base01
client.unfocused $base01 $base00 $base05 $base01 $base01 #client.unfocused $base01 $base00 $base05 $base01 $base01
client.urgent $base08 $base08 $base00 $base08 $base08 #client.urgent $base08 $base08 $base00 $base08 $base08
client.placeholder $base00 $base00 $base05 $base00 $base00 #client.placeholder $base00 $base00 $base05 $base00 $base00
client.background $base07 #client.background $base07
#
# gaps
#
gaps outer 5
gaps inner 5
smart_gaps on
#
# Titlebars
#
font pango:monospace 12px
default_border pixel 2
titlebar_border_thickness 2
hide_edge_borders smart
#
# Colors #93cee9
#
# class border backgr. text indicator child_border
client.focused #5e81ac #2e3440 #d8dee9 #5e81ac #5e81ac
client.focused_inactive #3b4252 #3b4252 #d8dee9 #4c566a #4c566a
client.unfocused #434c5e #434c5e #d8dee9 #4c566a #4c566a
client.urgent #bf616a #bf616a #d8dee9 #d08770 #d08770
# --------------------------------------------------- # # --------------------------------------------------- #
# Screensaver + Locking # Screensaver + Locking
# --------------------------------------------------- # # --------------------------------------------------- #
exec swayidle -w \ exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \ timeout 600 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' \ timeout 900 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'
set $lockman exec bash ~/.config/sway/lockman.sh set $lockman exec bash ~/.config/sway/lockman.sh
@ -231,6 +255,7 @@ include ~/.config/sway/config.d/*
# Autostart # Autostart
exec mako exec mako
exec albert exec albert
exec nm-applet --indicator
workspace 9 workspace 9
exec slack exec slack
@ -241,14 +266,31 @@ exec xrdb -load ~/.Xresources
workspace 1 workspace 1
set $gnome-schema org.gnome.desktop.interface #set $gnome-schema org.gnome.desktop.interface
#
#exec_always {
# gsettings set $gnome-schema gtk-theme 'Adwaita-dark'
# gsettings set $gnome-schema icon-theme 'Adwaita'
# gsettings set $gnome-schema cursor-theme 'Adwaita'
#}
### Gnome settings
set $gnome-schema org.gnome.desktop.interface
exec_always { exec_always {
gsettings set $gnome-schema gtk-theme 'Adwaita-dark' gsettings set $gnome-schema gtk-theme 'NordSur-dark'
gsettings set $gnome-schema icon-theme 'Adwaita' gsettings set $gnome-schema icon-theme 'Tela-circle-grey-dark'
gsettings set $gnome-schema cursor-theme 'Adwaita' gsettings set $gnome-schema font-name 'Roboto 10'
gsettings set $gnome-schema monospace-font-name 'Roboto Mono 10'
gsettings set $gnome-schema document-font-name 'Roboto 10'
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'Roboto Bold 10'
gsettings set org.gnome.desktop.wm.preferences button-layout ''
gsettings set org.gnome.desktop.default-applications.terminal exec $term
gsettings set org.gnome.desktop.default-applications.terminal exec-arg ''
} }
# #
# App Specific Styling # App Specific Styling
for_window [app_id="termite"] border pixel for_window [app_id="termite"] border pixel
for_window [app_id=pavucontrol] floating enable
for_window [app_id=".*"] border pixel 4

View File

@ -1,105 +1,37 @@
# Copyright (c) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (c) 2016-present Sven Greb <code@svengreb.de>
# Project: Nord Termite
# Repository: https://github.com/arcticicestudio/nord-termite
# License: MIT
[options] [options]
#allow_bold = true #font = Roboto Mono 10
#audible_bell = false
#bold_is_bright = true
#cell_height_scale = 1.0
#cell_width_scale = 1.0
#clickable_url = true
#dynamic_title = true
font = Hack 9
#fullscreen = true
#icon_name = terminal
#mouse_autohide = false
#scroll_on_output = false
#scroll_on_keystroke = true
# Length of the scrollback buffer, 0 disabled the scrollback buffer
# and setting it to a negative value means "infinite scrollback"
scrollback_lines = 10000 scrollback_lines = 10000
#search_wrap = true
#urgent_on_bell = true
#hyperlinks = false
# $BROWSER is used by default if set, with xdg-open as a fallback
#browser = xdg-open
# "system", "on" or "off"
#cursor_blink = system
# "block", "underline" or "ibeam"
#cursor_shape = block
# Hide links that are no longer valid in url select overlay mode
#filter_unmatched_urls = true
# Emit escape sequences for extra modified keys
#modify_other_keys = false
# set size hints for the window
#size_hints = false
# "off", "left" or "right"
#scrollbar = off
[colors] [colors]
[colors] cursor = #d8dee9
# Base16 Monokai cursor_foreground = #2e344
# Author: Wimer Hazenberg (http://www.monokai.nl)
foreground = #f8f8f2 foreground = #d8dee9
foreground_bold = #f5f4f1 foreground_bold = #d8dee9
cursor = #f5f4f1 background = #2e3440
cursor_foreground = #272822
background = #282828
# 16 color space highlight = #4c566a
# Black, Gray, Silver, White color0 = #3b4252
color0 = #272822 color1 = #bf616a
color8 = #75715e color2 = #a3be8c
color7 = #f8f8f2 color3 = #ebcb8b
color15 = #f9f8f5 color4 = #81a1c1
color5 = #b48ead
# Red color6 = #88c0d0
color1 = #f92672 color7 = #e5e9f0
color9 = #f92672 color8 = #4c566a
color9 = #bf616a
# Green color10 = #a3be8c
color2 = #a6e22e color11 = #ebcb8b
color10 = #a6e22e color12 = #81a1c1
color13 = #b48ead
# Yellow color14 = #8fbcbb
color3 = #f4bf75 color15 = #eceff4
color11 = #f4bf75
# Blue
color4 = #66d9ef
color12 = #66d9ef
# Purple
color5 = #ae81ff
color13 = #ae81ff
# Teal
color6 = #a1efe4
color14 = #a1efe4
# Extra colors
color16 = #fd971f
color17 = #cc6633
color18 = #383830
color19 = #49483e
color20 = #a59f85
color21 = #f5f4f1
[hints]
#font = Monospace 12
#foreground = #dcdccc
#background = #3f3f3f
#active_foreground = #e68080
#active_background = #3f3f3f
#padding = 2
#border = #3f3f3f
#border_width = 0.5
#roundness = 2.0
# vim: ft=dosini cms=#%s

View File

@ -1,56 +1,43 @@
{ {
// "layer": "top", // Waybar at top layer "layer": "bottom",
// "position": "bottom", // Waybar position (top|bottom|left|right) "position": "top",
"height": 26, // Waybar height (to be removed for auto height) "height": 30,
// "width": 1280, // Waybar width
// Choose the order of the modules "modules-left": [
"modules-left": ["sway/workspaces", "sway/mode"], "sway/workspaces",
"sway/mode"
],
"modules-center": ["sway/window"], "modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"], "modules-right": [
"idle_inhibitor",
"pulseaudio",
"custom/headset",
"network",
"cpu",
"memory",
"backlight",
"battery",
"clock",
"tray"
],
// Modules configuration // Modules configuration
// "sway/workspaces": { "sway/workspaces": {
// "disable-scroll": true, "disable-scroll": true,
// "all-outputs": true, "all-outputs": true,
// "format": "{name}: {icon}", "format": "{icon}",
// "format-icons": { "format-icons": {
// "1": "", "1": "",
// "2": "", "2": "",
// "3": "", "3": "",
// "4": "", "4": "",
// "5": "", "9": "",
// "urgent": "", "urgent": "",
// "focused": "", "focused": "",
// "default": "" "default": ""
// } }
// },
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
}, },
"mpd": { "sway/mode": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ", "format": "{}"
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
}, },
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
@ -60,20 +47,21 @@
} }
}, },
"tray": { "tray": {
// "icon-size": 21, "icon-size": 12,
"spacing": 10 "spacing": 10
}, },
"clock": { "clock": {
// "timezone": "America/New_York", // "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "{:%a %d %b %H:%M}",
"format-alt": "{:%Y-%m-%d}" "tooltip": true
}, },
"cpu": { "cpu": {
"format": "{usage}% ", "interval": 2,
"tooltip": false "format": " {usage:2}%",
}, },
"memory": { "memory": {
"format": "{}% " "interval": 5,
"format": " {}%"
}, },
"temperature": { "temperature": {
// "thermal-zone": 2, // "thermal-zone": 2,
@ -94,7 +82,7 @@
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{capacity}% {icon}", "format": "{icon} {capacity}%",
"format-charging": "{capacity}% ", "format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
@ -102,9 +90,6 @@
// "format-full": "", // "format-full": "",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"battery#bat2": {
"bat": "BAT2"
},
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ", "format-wifi": "{essid} ({signalStrength}%) ",
@ -143,5 +128,16 @@
"escape": true, "escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/headset": {
"format": "  {}",
"on-click": "$HOME/.config/waybar/connect_headset.sh",
"interval": 10,
"return-type": "json",
"exec": "$HOME/.config/waybar/check_headset.sh"
},
"custom/separator": {
"format": "",
"tooltip": false
} }
} }

View File

@ -1,65 +1,67 @@
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
font-size: 13px; font-family: monospace;
font-family: "DejaVu Sans"; font-size: 14px;
min-height: 0; min-height: 0;
} }
window#waybar { window#waybar {
background: transparent; background: #3b4252;
color: white; color: white;
} }
#window {
font-weight: bold;
font-family: "DejaVu Sans";
}
/*
#workspaces { #workspaces {
padding: 0 5px; background-color: #4c566a;
margin: 5px;
margin-left: 10px;
border-radius: 5px;
} }
*/
#workspaces button { #workspaces button {
padding: 0 5px; padding: 0 10px;
background: transparent; color: #eceff4;
color: white;
border-top: 2px solid transparent;
} }
#workspaces button.focused { #workspaces button.focused {
color: #c9545d; color: #2e3440;
border-top: 2px solid #ee6c4d; background-color: #88c0d0;
border-radius: 5px;
} }
#workspaces button.urgent { #workspaces button:hover {
border-top: 2px solid #9CEC5B; background-color: #5e81ac;
border-radius: 5px;
} }
#mode { #custom-headset, #cpu, #memory, #backlight, #clock, #battery, #pulseaudio, #network {
background: #64727D; background-color: #4c566a;
border-bottom: 3px solid white; padding: 0px 10px;
margin: 5px 0px;
} }
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode { #custom-date {
padding: 0 3px; color: #8fbcbb;
margin: 0 2px; }
#custom-power {
color: #2e3440;
background-color: #bf616a;
border-radius: 5px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
margin-left: 0px;
padding: 0px 10px;
} }
#clock { #clock {
font-weight: bold; color: #b48ead;
border-radius: 0px 5px 5px 0px;
margin-right: 10px;
} }
#battery { #battery {
} color: #a3be8c;
#battery icon {
color: #ee6c4d;
}
#battery.charging {
color: #9cec5b;
} }
@keyframes blink { @keyframes blink {
@ -69,8 +71,13 @@ window#waybar {
} }
} }
#battery.warning:not(.charging) { #battery.charging {
color: white; color: #a3be8c;
}
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: linear; animation-timing-function: linear;
@ -78,45 +85,22 @@ window#waybar {
animation-direction: alternate; animation-direction: alternate;
} }
#cpu {
}
#memory {
}
#network { #network {
} color: #d08770;
#network.disconnected {
background: #f53c3c;
} }
#pulseaudio { #pulseaudio {
color: #ebcb8b;
border-radius: 5px 0px 0px 5px;
} }
#pulseaudio.muted { #idle_inhibitor {
} background-color: #4c566a;
border-radius: 5px ;
#custom-spotify { margin: 5px;
color: rgb(102, 220, 105); padding: 0 10px;
} }
#tray { #tray {
margin-right: 10px;
}
#clock,
#battery,
#cpu,
#memory,
#temperature,
#backlight,
#network,
#pulseaudio,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#mpd {
padding: 0 10px;
margin: 0 4px;
} }

View File

@ -75,79 +75,10 @@ setw -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
bind -n WheelDownPane select-pane -t= \; send-keys -M bind -n WheelDownPane select-pane -t= \; send-keys -M
# Force support for 24bit coloring # List of plugins
set -ga terminal-overrides ",xterm-256color:Tc" set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin "arcticicestudio/nord-tmux"
###################### # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
#### DESIGN CHANGES ### run '~/.tmux/plugins/tpm/tpm'
#######################
# panes
set -g pane-border-style fg=black
set -g pane-active-border-style fg=brightred
## Status bar design
# status line
set -g status-justify left
set -g status-style bg=default,fg=colour21
set -g status-interval 2
# messaging
set -g message-style fg=black,bg=yellow
set -g message-command-style fg=blue,bg=black
#window mode
setw -g mode-style bg=colour6,fg=colour0
# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
setw -g window-status-current-style bg=colour0,fg=colour11,dim
setw -g window-status-style bg=green,fg=black,reverse
# Info on left (I don't have a session display for now)
set -g status-left ''
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# The modes {
setw -g clock-mode-colour colour135
setw -g mode-style fg=colour196,bg=colour238,bold
# }
# The panes {
set -g pane-border-style bg=colour235,fg=colour238
set -g pane-active-border-style bg=colour236,fg=colour51
# }
# The statusbar {
set -g status-position bottom
set -g status-style bg=colour234,fg=colour137,dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style fg=colour81,bg=colour238,bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style fg=colour138,bg=colour235,none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style fg=colour255,bg=colour1,bold
# }
# The messages {
set -g message-style fg=colour232,bg=colour166,bold
# }

14
.vimrc
View File

@ -14,18 +14,21 @@ Plug 'junegunn/fzf.vim'
Plug 'udalov/kotlin-vim' Plug 'udalov/kotlin-vim'
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
Plug 'zivyangll/git-blame.vim' Plug 'zivyangll/git-blame.vim'
Plug 'mfukar/robotframework-vim'
Plug 'dense-analysis/ale'
Plug 'arcticicestudio/nord-vim'
" Initialize plugin system " Initialize plugin system
call plug#end() call plug#end()
" Coloring " Coloring
syntax enable syntax enable
colorscheme monokai colorscheme nord
" Airline " Airline
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let g:airline_theme='badwolf' let g:airline_theme='nord'
" -- Buffer/Window Workflow " -- Buffer/Window Workflow
" Allow hidden buffers " Allow hidden buffers
@ -147,3 +150,10 @@ let g:jsx_ext_required = 0
if filereadable(expand("~/.vimrc.local")) if filereadable(expand("~/.vimrc.local"))
source ~/.vimrc.local source ~/.vimrc.local
endif endif
" CTags
set tags+=.tags " We like hidden files
let g:fzf_tags_command = 'ctags -R -f .tags --exclude=@.ctagsignore'
" ALE
highlight ALEWarning ctermbg=DarkGrey