mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
moved every installation to packages role
This commit is contained in:
parent
fc0d64bb2c
commit
782e7d8b09
23
install.yml
23
install.yml
@ -17,10 +17,11 @@
|
|||||||
- hosts: desktop:laptop
|
- hosts: desktop:laptop
|
||||||
tags: limit
|
tags: limit
|
||||||
tasks:
|
tasks:
|
||||||
- name: Limit to Archlinux
|
- name: Limit to Archlinux and NixOS
|
||||||
fail:
|
fail:
|
||||||
msg: "{{ ansible_distribution }} is not supported with this tag."
|
msg: "{{ ansible_distribution }} is not supported with this tag."
|
||||||
when: ansible_distribution != "Archlinux"
|
when: (ansible_distribution != "Archlinux") and
|
||||||
|
(ansible_distribution != "NixOS")
|
||||||
|
|
||||||
- name: Limit to user accounts
|
- name: Limit to user accounts
|
||||||
fail:
|
fail:
|
||||||
@ -36,7 +37,11 @@
|
|||||||
|
|
||||||
- hosts: server:desktop:laptop
|
- hosts: server:desktop:laptop
|
||||||
roles:
|
roles:
|
||||||
- { role: packages-common, tags: packages-common }
|
- role: packages
|
||||||
|
tags: packages
|
||||||
|
vars:
|
||||||
|
meta: 'common'
|
||||||
|
when: ansible_distribution == "Archlinux"
|
||||||
- { role: fish, tags: fish }
|
- { role: fish, tags: fish }
|
||||||
- { role: neovim, tags: neovim }
|
- { role: neovim, tags: neovim }
|
||||||
- { role: terminfo, tags: terminfo }
|
- { role: terminfo, tags: terminfo }
|
||||||
@ -44,7 +49,11 @@
|
|||||||
|
|
||||||
- hosts: desktop:laptop
|
- hosts: desktop:laptop
|
||||||
roles:
|
roles:
|
||||||
- { role: packages-desktop, tags: packages-desktop }
|
- role: packages
|
||||||
|
tags: packages
|
||||||
|
vars:
|
||||||
|
meta: 'desktop'
|
||||||
|
when: ansible_distribution == "Archlinux"
|
||||||
- { role: gtk, tags: gtk }
|
- { role: gtk, tags: gtk }
|
||||||
- { role: sway, tags: sway }
|
- { role: sway, tags: sway }
|
||||||
- { role: variety, tags: variety }
|
- { role: variety, tags: variety }
|
||||||
@ -61,5 +70,9 @@
|
|||||||
|
|
||||||
- hosts: laptop
|
- hosts: laptop
|
||||||
roles:
|
roles:
|
||||||
- { role: packages-laptop, tags: packages-laptop }
|
- role: packages
|
||||||
|
tags: packages
|
||||||
|
vars:
|
||||||
|
meta: 'laptop'
|
||||||
|
when: ansible_distribution == "Archlinux"
|
||||||
- { role: xbindkeys, tags: xbindkeys }
|
- { role: xbindkeys, tags: xbindkeys }
|
||||||
|
@ -1,16 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Upgrade git
|
|
||||||
package:
|
|
||||||
name: git
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install fish
|
|
||||||
package:
|
|
||||||
name: fish
|
|
||||||
state: present
|
|
||||||
ignore_errors: True
|
|
||||||
become: yes
|
|
||||||
|
|
||||||
- name: Get oh-my-fish installer
|
- name: Get oh-my-fish installer
|
||||||
get_url:
|
get_url:
|
||||||
url: https://get.oh-my.fish
|
url: https://get.oh-my.fish
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install Themes and Icons
|
|
||||||
aur:
|
|
||||||
name:
|
|
||||||
- equilux-theme
|
|
||||||
- paper-icon-theme
|
|
||||||
skip_installed: yes
|
|
||||||
|
|
||||||
- name: Create gtk conf dir
|
- name: Create gtk conf dir
|
||||||
file:
|
file:
|
||||||
path: ~/.config/gtk-3.0/
|
path: ~/.config/gtk-3.0/
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
# Managed files
|
|
||||||
- \~/.i3/config
|
|
||||||
- \~/.xinitrc
|
|
||||||
|
|
||||||
# By hostname specific configuration in config file
|
|
||||||
Add a dir named as hostname in by_host dir to include specific host configuration in config file
|
|
||||||
```
|
|
||||||
mkdir templates/by_host/$(hostname)
|
|
||||||
echo "#To include in config file" > templates/by_host/$(hostname)/config.j2
|
|
||||||
```
|
|
||||||
|
|
||||||
# By OS specific configuration for config file
|
|
||||||
Add a dir named as OS in by_os to include specific host configuration in config file
|
|
||||||
```
|
|
||||||
mkdir templates/by_os/<archlinux|centos|debian>
|
|
||||||
echo "#To include in config file" > templates/by_os/<archlinux|centos|debian>/config.j2
|
|
||||||
```
|
|
@ -1,38 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
|
||||||
usermodmap=$HOME/.Xmodmap
|
|
||||||
sysresources=/etc/X11/xinit/.Xresources
|
|
||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
||||||
|
|
||||||
# merge in defaults and keymaps
|
|
||||||
|
|
||||||
if [ -f $sysresources ]; then
|
|
||||||
xrdb -merge $sysresources
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f $sysmodmap ]; then
|
|
||||||
xmodmap $sysmodmap
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$userresources" ]; then
|
|
||||||
xrdb -merge "$userresources"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "$usermodmap" ]; then
|
|
||||||
xmodmap "$usermodmap"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# start some nice programs
|
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
||||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
||||||
[ -x "$f" ] && . "$f"
|
|
||||||
done
|
|
||||||
unset f
|
|
||||||
fi
|
|
||||||
|
|
||||||
# source .xprofile
|
|
||||||
[ -f ~/.xprofile ] && source ~/.xprofile
|
|
||||||
|
|
||||||
exec i3
|
|
||||||
#exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1
|
|
@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install i3-wm
|
|
||||||
aur:
|
|
||||||
name:
|
|
||||||
- i3-gaps
|
|
||||||
- i3lock
|
|
||||||
skip_installed: yes
|
|
||||||
|
|
||||||
- name: Clone i3lock-fancy-multimonitor
|
|
||||||
git:
|
|
||||||
repo: https://github.com/guimeira/i3lock-fancy-multimonitor
|
|
||||||
dest: ~/.i3/i3lock-fancy-multimonitor
|
|
||||||
update: no
|
|
||||||
|
|
||||||
- name: Configure i3lock blur
|
|
||||||
lineinfile:
|
|
||||||
path: ~/.i3/i3lock-fancy-multimonitor/lock
|
|
||||||
regexp: '^BLURTYPE="2x8"'
|
|
||||||
line: '#BLURTYPE="2x8"'
|
|
||||||
|
|
||||||
- name: Configure i3lock blur bis
|
|
||||||
lineinfile:
|
|
||||||
path: ~/.i3/i3lock-fancy-multimonitor/lock
|
|
||||||
regexp: '^#BLURTYPE="5x3"'
|
|
||||||
line: 'BLURTYPE="5x3"'
|
|
||||||
|
|
||||||
- name: Configure xinitrc
|
|
||||||
copy:
|
|
||||||
src: xinitrc
|
|
||||||
dest: ~/.xinitrc
|
|
||||||
backup: yes
|
|
||||||
|
|
||||||
- name: Template config file
|
|
||||||
template:
|
|
||||||
src: config.j2
|
|
||||||
dest: ~/.i3/config
|
|
||||||
backup: yes
|
|
@ -1,19 +0,0 @@
|
|||||||
#INCLUDE####################################################
|
|
||||||
#assign workspace to screens
|
|
||||||
workspace $tag1 output DP-1-1
|
|
||||||
workspace $tag2 output eDP-1
|
|
||||||
workspace $tag3 output eDP-1
|
|
||||||
workspace $tag4 output eDP-1
|
|
||||||
workspace $tag5 output eDP-1
|
|
||||||
workspace $tag6 output eDP-1
|
|
||||||
workspace $tag7 output eDP-1
|
|
||||||
workspace $tag8 output eDP-1
|
|
||||||
workspace $tag9 output eDP-1
|
|
||||||
workspace $tag10 output eDP-1
|
|
||||||
|
|
||||||
# exec startup apps
|
|
||||||
exec --no-startup-id i3-msg 'exec google-chrome-stable'
|
|
||||||
exec --no-startup-id i3-msg 'exec google-chrome-stable --app="https://gmail.com"'
|
|
||||||
exec --no-startup-id i3-msg 'workspace $tag4; exec termite -e "screen -rd weechat &"'
|
|
||||||
exec --no-startup-id i3-msg 'workspace $tag2; exec termite'
|
|
||||||
#INCLUDE####################################################
|
|
@ -1,15 +0,0 @@
|
|||||||
#INCLUDE####################################################
|
|
||||||
#assign workspace to screens
|
|
||||||
workspace $tag1 output HDMI2 HDMI3
|
|
||||||
workspace $tag2 output HDMI3
|
|
||||||
workspace $tag3 output HDMI1
|
|
||||||
workspace $tag4 output HDMI1
|
|
||||||
workspace $tag5 output HDMI3
|
|
||||||
|
|
||||||
# exec startup apps
|
|
||||||
exec --no-startup-id i3-msg 'exec google-chrome-stable --app=http://mail.umontpellier.fr &'
|
|
||||||
exec --no-startup-id i3-msg 'exec google-chrome-stable --app=https://gmail.com &'
|
|
||||||
exec --no-startup-id i3-msg 'exec google-chrome-stable &'
|
|
||||||
exec --no-startup-id i3-msg 'workspace $tag4; exec termite -e "screen -rd weechat &"'
|
|
||||||
exec --no-startup-id i3-msg 'workspace $tag2; exec termite'
|
|
||||||
#INCLUDE####################################################
|
|
@ -1,199 +0,0 @@
|
|||||||
# i3 config file (v4)
|
|
||||||
#
|
|
||||||
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
|
||||||
|
|
||||||
# mod key
|
|
||||||
set $mod Mod4
|
|
||||||
|
|
||||||
# fonts
|
|
||||||
font pango: hack, Awesome5 10
|
|
||||||
|
|
||||||
# resolv i3 transparancy bug
|
|
||||||
new_window pixel
|
|
||||||
|
|
||||||
# start a terminal
|
|
||||||
bindsym $mod+Return exec termite
|
|
||||||
|
|
||||||
# start drofi dmenu
|
|
||||||
bindsym $mod+Tab exec --no-startup-id rofi -show window
|
|
||||||
bindsym $mod+Shift+d exec --no-startup-id rofi -show run
|
|
||||||
bindsym $mod+d exec --no-startup-id rofi -modi drun -show drun
|
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
||||||
floating_modifier $mod
|
|
||||||
|
|
||||||
# kill focused window
|
|
||||||
bindsym $mod+Shift+a kill
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
#scratchpad
|
|
||||||
bindsym $mod+twosuperior scratchpad show
|
|
||||||
bindsym $mod+Shift+twosuperior move scratchpad
|
|
||||||
|
|
||||||
#Swith with same key to precedent workspace
|
|
||||||
workspace_auto_back_and_forth yes
|
|
||||||
|
|
||||||
# set workspace names
|
|
||||||
set $tag1 "1:"
|
|
||||||
set $tag2 "2:"
|
|
||||||
set $tag3 "3:"
|
|
||||||
set $tag4 "4:"
|
|
||||||
set $tag5 "5:"
|
|
||||||
set $tag6 "6:"
|
|
||||||
set $tag7 "7:"
|
|
||||||
set $tag8 "8:"
|
|
||||||
set $tag9 "9:"
|
|
||||||
set $tag10 "10:"
|
|
||||||
|
|
||||||
#colors
|
|
||||||
# class border backgr. text indicator child_border
|
|
||||||
client.focused #222222 #5A5A5A #E1E1E1 #000000 #000000
|
|
||||||
client.focused_inactive #222222 #5A5A5A #E1E1E1 #484e50 #000000
|
|
||||||
client.unfocused #222222 #323232 #888888 #292d2e #222222
|
|
||||||
client.urgent #2f343a #900000 #ffffff #900000 #900000
|
|
||||||
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
|
||||||
|
|
||||||
#i3-gaps
|
|
||||||
for_window [class="^.*"] border pixel 0
|
|
||||||
gaps inner 4
|
|
||||||
gaps outer -4
|
|
||||||
smart_gaps on
|
|
||||||
smart_borders on
|
|
||||||
|
|
||||||
#rofi_power menu
|
|
||||||
bindsym $mod+Shift+q exec ~/.config/rofi/powermenu.sh
|
|
||||||
|
|
||||||
# apps
|
|
||||||
bindsym $mod+Control+t exec thunar
|
|
||||||
bindsym $mod+Control+n exec connman-gtk
|
|
||||||
bindsym $mod+Control+p exec pavucontrol
|
|
||||||
|
|
||||||
#toggle workspace's display screen
|
|
||||||
bindsym $mod+less move workspace to output right
|
|
||||||
bindsym $mod+Shift+less move workspace to output up
|
|
||||||
|
|
||||||
# switch to workspace
|
|
||||||
bindsym $mod+ampersand workspace $tag1
|
|
||||||
bindsym $mod+eacute workspace $tag2
|
|
||||||
bindsym $mod+quotedbl workspace $tag3
|
|
||||||
bindsym $mod+apostrophe workspace $tag4
|
|
||||||
bindsym $mod+parenleft workspace $tag5
|
|
||||||
bindsym $mod+minus workspace $tag6
|
|
||||||
bindsym $mod+egrave workspace $tag7
|
|
||||||
bindsym $mod+underscore workspace $tag8
|
|
||||||
bindsym $mod+ccedilla workspace $tag9
|
|
||||||
bindsym $mod+agrave workspace $tag10
|
|
||||||
|
|
||||||
# move focused container to workspace
|
|
||||||
bindsym $mod+Shift+ampersand move container to workspace $tag1
|
|
||||||
bindsym $mod+Shift+eacute move container to workspace $tag2
|
|
||||||
bindsym $mod+Shift+quotedbl move container to workspace $tag3
|
|
||||||
bindsym $mod+Shift+apostrophe move container to workspace $tag4
|
|
||||||
bindsym $mod+Shift+5 move container to workspace $tag5
|
|
||||||
bindsym $mod+Shift+minus move container to workspace $tag6
|
|
||||||
bindsym $mod+Shift+egrave move container to workspace $tag7
|
|
||||||
bindsym $mod+Shift+underscore move container to workspace $tag8
|
|
||||||
bindsym $mod+Shift+ccedilla move container to workspace $tag9
|
|
||||||
bindsym $mod+Shift+agrave move container to workspace $tag10
|
|
||||||
|
|
||||||
# floatings
|
|
||||||
for_window [class="XTerm"] floating enable, border normal
|
|
||||||
for_window [class="feh"] floating enable, border normal
|
|
||||||
for_window [class="Gpick"] floating enable, border pixel 1
|
|
||||||
for_window [title="Images de Variety"] floating enable, border pixel 1, move left 647px
|
|
||||||
|
|
||||||
# assigns focus
|
|
||||||
assign [class="Connman-gtk"] $tag10
|
|
||||||
for_window [class="Connman-gtk"] focus
|
|
||||||
assign [class="Transmission-gtk"] $tag9
|
|
||||||
assign [title=".*mail.*"] $tag3
|
|
||||||
assign [class="Google-chrome"] $tag1
|
|
||||||
assign [class="spotify"] $tag5
|
|
||||||
for_window [class="spotify"] focus
|
|
||||||
assign [class="Code"] $tag6
|
|
||||||
for_window [class="Code"] focus
|
|
||||||
|
|
||||||
#bindsym spotify
|
|
||||||
bindsym $mod+Control+Left exec ~/dev/git/mpris-ctrl/mpris-ctrl.sh spotify prev
|
|
||||||
bindsym $mod+Control+Down exec ~/dev/git/mpris-ctrl/mpris-ctrl.sh spotify play-pause
|
|
||||||
bindsym $mod+Control+Right exec ~/dev/git/mpris-ctrl/mpris-ctrl.sh spotify next
|
|
||||||
|
|
||||||
{% include 'by_host/' + ansible_hostname + '/config.j2' ignore missing %}
|
|
||||||
|
|
||||||
{% include 'by_os/' + ansible_distribution|lower + '/config.j2' ignore missing %}
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
|
||||||
mode "resize" {
|
|
||||||
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
|
|
||||||
|
|
||||||
bindsym Left resize shrink width 10 px or 10 ppt
|
|
||||||
bindsym Down resize grow height 10 px or 10 ppt
|
|
||||||
bindsym Up resize shrink height 10 px or 10 ppt
|
|
||||||
bindsym Right resize grow width 10 px or 10 ppt
|
|
||||||
|
|
||||||
# back to normal: Enter or Escape
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
|
||||||
|
|
||||||
# polybar exec
|
|
||||||
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
|
Binary file not shown.
Before Width: | Height: | Size: 334 KiB |
@ -1,732 +0,0 @@
|
|||||||
# Neofetch config file
|
|
||||||
# https://github.com/dylanaraps/neofetch
|
|
||||||
|
|
||||||
|
|
||||||
# See this wiki page for more info:
|
|
||||||
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
|
|
||||||
print_info() {
|
|
||||||
info title
|
|
||||||
info underline
|
|
||||||
|
|
||||||
info "OS" distro
|
|
||||||
info "Host" model
|
|
||||||
info "Kernel" kernel
|
|
||||||
info "Uptime" uptime
|
|
||||||
info "Packages" packages
|
|
||||||
info "Shell" shell
|
|
||||||
info "Resolution" resolution
|
|
||||||
info "DE" de
|
|
||||||
info "WM" wm
|
|
||||||
info "WM Theme" wm_theme
|
|
||||||
info "Theme" theme
|
|
||||||
info "Icons" icons
|
|
||||||
info "Terminal" term
|
|
||||||
info "Terminal Font" term_font
|
|
||||||
info "CPU" cpu
|
|
||||||
info "GPU" gpu
|
|
||||||
info "Memory" memory
|
|
||||||
|
|
||||||
# info "GPU Driver" gpu_driver # Linux only
|
|
||||||
# info "CPU Usage" cpu_usage
|
|
||||||
# info "Disk" disk
|
|
||||||
# info "Battery" battery
|
|
||||||
# info "Font" font
|
|
||||||
# info "Song" song
|
|
||||||
# info "Local IP" local_ip
|
|
||||||
# info "Public IP" public_ip
|
|
||||||
# info "Users" users
|
|
||||||
# info "Install Date" install_date
|
|
||||||
# info "Locale" locale # This only works on glibc systems.
|
|
||||||
|
|
||||||
info line_break
|
|
||||||
info cols
|
|
||||||
info line_break
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Kernel
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the kernel function.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --kernel_shorthand
|
|
||||||
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '4.8.9-1-ARCH'
|
|
||||||
# off: 'Linux 4.8.9-1-ARCH'
|
|
||||||
kernel_shorthand="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Distro
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the distro function
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off', 'tiny'
|
|
||||||
# Flag: --distro_shorthand
|
|
||||||
# Supports: Everything except Windows and Haiku
|
|
||||||
distro_shorthand="off"
|
|
||||||
|
|
||||||
# Show/Hide OS Architecture.
|
|
||||||
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --os_arch
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Arch Linux x86_64'
|
|
||||||
# off: 'Arch Linux'
|
|
||||||
os_arch="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Uptime
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the uptime function
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off', 'tiny'
|
|
||||||
# Flag: --uptime_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '2 days, 10 hours, 3 mins'
|
|
||||||
# off: '2 days, 10 hours, 3 minutes'
|
|
||||||
# tiny: '2d 10h 3m'
|
|
||||||
uptime_shorthand="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Shell
|
|
||||||
|
|
||||||
|
|
||||||
# Show the path to $SHELL
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --shell_path
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '/bin/bash'
|
|
||||||
# off: 'bash'
|
|
||||||
shell_path="off"
|
|
||||||
|
|
||||||
# Show $SHELL version
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --shell_version
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'bash 4.4.5'
|
|
||||||
# off: 'bash'
|
|
||||||
shell_version="on"
|
|
||||||
|
|
||||||
|
|
||||||
# CPU
|
|
||||||
|
|
||||||
|
|
||||||
# CPU speed type
|
|
||||||
#
|
|
||||||
# Default: 'bios_limit'
|
|
||||||
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
|
|
||||||
# Flag: --speed_type
|
|
||||||
# Supports: Linux with 'cpufreq'
|
|
||||||
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
|
|
||||||
speed_type="bios_limit"
|
|
||||||
|
|
||||||
# CPU speed shorthand
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'.
|
|
||||||
# Flag: --speed_shorthand.
|
|
||||||
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'i7-6500U (4) @ 3.1GHz'
|
|
||||||
# off: 'i7-6500U (4) @ 3.100GHz'
|
|
||||||
speed_shorthand="off"
|
|
||||||
|
|
||||||
# Enable/Disable CPU brand in output.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --cpu_brand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Intel i7-6500U'
|
|
||||||
# off: 'i7-6500U (4)'
|
|
||||||
cpu_brand="on"
|
|
||||||
|
|
||||||
# CPU Speed
|
|
||||||
# Hide/Show CPU speed.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --cpu_speed
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Intel i7-6500U (4) @ 3.1GHz'
|
|
||||||
# off: 'Intel i7-6500U (4)'
|
|
||||||
cpu_speed="on"
|
|
||||||
|
|
||||||
# CPU Cores
|
|
||||||
# Display CPU cores in output
|
|
||||||
#
|
|
||||||
# Default: 'logical'
|
|
||||||
# Values: 'logical', 'physical', 'off'
|
|
||||||
# Flag: --cpu_cores
|
|
||||||
# Support: 'physical' doesn't work on BSD.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
|
|
||||||
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
|
|
||||||
# off: 'Intel i7-6500U @ 3.1GHz'
|
|
||||||
cpu_cores="logical"
|
|
||||||
|
|
||||||
# CPU Temperature
|
|
||||||
# Hide/Show CPU temperature.
|
|
||||||
# Note the temperature is added to the regular CPU function.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'C', 'F', 'off'
|
|
||||||
# Flag: --cpu_temp
|
|
||||||
# Supports: Linux, BSD
|
|
||||||
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
|
|
||||||
# coretemp kernel module. This only supports newer Intel processors.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
|
||||||
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
|
||||||
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
|
||||||
cpu_temp="off"
|
|
||||||
|
|
||||||
|
|
||||||
# GPU
|
|
||||||
|
|
||||||
|
|
||||||
# Enable/Disable GPU Brand
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gpu_brand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'AMD HD 7950'
|
|
||||||
# off: 'HD 7950'
|
|
||||||
gpu_brand="on"
|
|
||||||
|
|
||||||
# Which GPU to display
|
|
||||||
#
|
|
||||||
# Default: 'all'
|
|
||||||
# Values: 'all', 'dedicated', 'integrated'
|
|
||||||
# Flag: --gpu_type
|
|
||||||
# Supports: Linux
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# all:
|
|
||||||
# GPU1: AMD HD 7950
|
|
||||||
# GPU2: Intel Integrated Graphics
|
|
||||||
#
|
|
||||||
# dedicated:
|
|
||||||
# GPU1: AMD HD 7950
|
|
||||||
#
|
|
||||||
# integrated:
|
|
||||||
# GPU1: Intel Integrated Graphics
|
|
||||||
gpu_type="all"
|
|
||||||
|
|
||||||
|
|
||||||
# Resolution
|
|
||||||
|
|
||||||
|
|
||||||
# Display refresh rate next to each monitor
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --refresh_rate
|
|
||||||
# Supports: Doesn't work on Windows.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '1920x1080 @ 60Hz'
|
|
||||||
# off: '1920x1080'
|
|
||||||
refresh_rate="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Gtk Theme / Icons / Font
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten output of GTK Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix, Adwaita'
|
|
||||||
# off: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
gtk_shorthand="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Enable/Disable gtk2 Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk2
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
# off: 'Adwaita [GTK3]'
|
|
||||||
gtk2="on"
|
|
||||||
|
|
||||||
# Enable/Disable gtk3 Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk3
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
# off: 'Numix [GTK2]'
|
|
||||||
gtk3="on"
|
|
||||||
|
|
||||||
|
|
||||||
# IP Address
|
|
||||||
|
|
||||||
|
|
||||||
# Website to ping for the public IP
|
|
||||||
#
|
|
||||||
# Default: 'http://ident.me'
|
|
||||||
# Values: 'url'
|
|
||||||
# Flag: --ip_host
|
|
||||||
public_ip_host="http://ident.me"
|
|
||||||
|
|
||||||
|
|
||||||
# Disk
|
|
||||||
|
|
||||||
|
|
||||||
# Which disks to display.
|
|
||||||
# The values can be any /dev/sdXX, mount point or directory.
|
|
||||||
# NOTE: By default we only show the disk info for '/'.
|
|
||||||
#
|
|
||||||
# Default: '/'
|
|
||||||
# Values: '/', '/dev/sdXX', '/path/to/drive'.
|
|
||||||
# Flag: --disk_show
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# disk_show=('/' '/dev/sdb1'):
|
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
|
|
||||||
#
|
|
||||||
# disk_show=('/'):
|
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
disk_show=('/')
|
|
||||||
|
|
||||||
# Disk subtitle.
|
|
||||||
# What to append to the Disk subtitle.
|
|
||||||
#
|
|
||||||
# Default: 'mount'
|
|
||||||
# Values: 'mount', 'name', 'dir'
|
|
||||||
# Flag: --disk_subtitle
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# mount: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# dir: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (Local Disk): 74G / 118G (66%)'
|
|
||||||
# 'Disk (Videos): 74G / 118G (66%)'
|
|
||||||
disk_subtitle="mount"
|
|
||||||
|
|
||||||
|
|
||||||
# Song
|
|
||||||
|
|
||||||
|
|
||||||
# Print the Artist and Title on separate lines
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --song_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Artist: The Fratellis'
|
|
||||||
# 'Song: Chelsea Dagger'
|
|
||||||
#
|
|
||||||
# off: 'Song: The Fratellis - Chelsea Dagger'
|
|
||||||
song_shorthand="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Install Date
|
|
||||||
|
|
||||||
|
|
||||||
# Whether to show the time in the output
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --install_time
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Thu 14 Apr 2016 11:50 PM'
|
|
||||||
# off: 'Thu 14 Apr 2016'
|
|
||||||
install_time="on"
|
|
||||||
|
|
||||||
# Set time format in the output
|
|
||||||
#
|
|
||||||
# Default: '24h'
|
|
||||||
# Values: '12h', '24h'
|
|
||||||
# Flag: --install_time_format
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# 12h: 'Thu 14 Apr 2016 11:50 PM'
|
|
||||||
# 24h: 'Thu 14 Apr 2016 23:50'
|
|
||||||
install_time_format="12h"
|
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
|
||||||
#
|
|
||||||
# Default: 'distro'
|
|
||||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
|
||||||
# Flag: --colors
|
|
||||||
#
|
|
||||||
# Each number represents a different part of the text in
|
|
||||||
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# colors=(distro) - Text is colored based on Distro colors.
|
|
||||||
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
|
|
||||||
colors=(0 7 7 7 7 7)
|
|
||||||
|
|
||||||
|
|
||||||
# Text Options
|
|
||||||
|
|
||||||
|
|
||||||
# Toggle bold text
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --bold
|
|
||||||
bold="on"
|
|
||||||
|
|
||||||
# Enable/Disable Underline
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --underline
|
|
||||||
underline_enabled="on"
|
|
||||||
|
|
||||||
# Underline character
|
|
||||||
#
|
|
||||||
# Default: '-'
|
|
||||||
# Values: 'string'
|
|
||||||
# Flag: --underline_char
|
|
||||||
underline_char="-"
|
|
||||||
|
|
||||||
|
|
||||||
# Color Blocks
|
|
||||||
|
|
||||||
|
|
||||||
# Color block range
|
|
||||||
# The range of colors to print.
|
|
||||||
#
|
|
||||||
# Default: '0', '7'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_range
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
#
|
|
||||||
# Display colors 0-7 in the blocks. (8 colors)
|
|
||||||
# neofetch --block_range 0 7
|
|
||||||
#
|
|
||||||
# Display colors 0-15 in the blocks. (16 colors)
|
|
||||||
# neofetch --block_range 0 15
|
|
||||||
block_range=(0 7)
|
|
||||||
|
|
||||||
# Toggle color blocks
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --color_blocks
|
|
||||||
color_blocks="on"
|
|
||||||
|
|
||||||
# Color block width in spaces
|
|
||||||
#
|
|
||||||
# Default: '3'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_width
|
|
||||||
block_width=3
|
|
||||||
|
|
||||||
# Color block height in lines
|
|
||||||
#
|
|
||||||
# Default: '1'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_height
|
|
||||||
block_height=1
|
|
||||||
|
|
||||||
|
|
||||||
# Progress Bars
|
|
||||||
|
|
||||||
|
|
||||||
# Bar characters
|
|
||||||
#
|
|
||||||
# Default: '-', '='
|
|
||||||
# Values: 'string', 'string'
|
|
||||||
# Flag: --bar_char
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# neofetch --bar_char 'elapsed' 'total'
|
|
||||||
# neofetch --bar_char '-' '='
|
|
||||||
bar_char_elapsed="-"
|
|
||||||
bar_char_total="="
|
|
||||||
|
|
||||||
# Toggle Bar border
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --bar_border
|
|
||||||
bar_border="on"
|
|
||||||
|
|
||||||
# Progress bar length in spaces
|
|
||||||
# Number of chars long to make the progress bars.
|
|
||||||
#
|
|
||||||
# Default: '15'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --bar_length
|
|
||||||
bar_length=15
|
|
||||||
|
|
||||||
# Progress bar colors
|
|
||||||
# When set to distro, uses your distro's logo colors.
|
|
||||||
#
|
|
||||||
# Default: 'distro', 'distro'
|
|
||||||
# Values: 'distro', 'num'
|
|
||||||
# Flag: --bar_colors
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# neofetch --bar_colors 3 4
|
|
||||||
# neofetch --bar_colors distro 5
|
|
||||||
bar_color_elapsed="distro"
|
|
||||||
bar_color_total="distro"
|
|
||||||
|
|
||||||
|
|
||||||
# Info display
|
|
||||||
# Display a bar with the info.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'bar', 'infobar', 'barinfo', 'off'
|
|
||||||
# Flags: --cpu_display
|
|
||||||
# --memory_display
|
|
||||||
# --battery_display
|
|
||||||
# --disk_display
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# bar: '[---=======]'
|
|
||||||
# infobar: 'info [---=======]'
|
|
||||||
# barinfo: '[---=======] info'
|
|
||||||
# off: 'info'
|
|
||||||
cpu_display="off"
|
|
||||||
memory_display="off"
|
|
||||||
battery_display="off"
|
|
||||||
disk_display="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Backend Settings
|
|
||||||
|
|
||||||
|
|
||||||
# Image backend.
|
|
||||||
#
|
|
||||||
# Default: 'ascii'
|
|
||||||
# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m'
|
|
||||||
# Flag: --backend
|
|
||||||
image_backend="w3m"
|
|
||||||
|
|
||||||
# Image Source
|
|
||||||
#
|
|
||||||
# Which image or ascii file to display.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
|
|
||||||
# Flag: --source
|
|
||||||
#
|
|
||||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
|
||||||
# In ascii mode, distro ascii art will be used and in an image mode, your
|
|
||||||
# wallpaper will be used.
|
|
||||||
image_source=".config/neofetch/archlinux.png"
|
|
||||||
|
|
||||||
|
|
||||||
# Ascii Options
|
|
||||||
|
|
||||||
|
|
||||||
# Ascii distro
|
|
||||||
# Which distro's ascii art to display.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'distro_name'
|
|
||||||
# Flag: --ascii_distro
|
|
||||||
#
|
|
||||||
# NOTE: Arch and Ubuntu have 'old' logo variants.
|
|
||||||
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
|
|
||||||
# NOTE: Ubuntu has flavor variants.
|
|
||||||
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
|
|
||||||
# NOTE: Arch, Crux and Gentoo have a smaller logo variant.
|
|
||||||
# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
|
|
||||||
ascii_distro="auto"
|
|
||||||
|
|
||||||
# Ascii Colors
|
|
||||||
#
|
|
||||||
# Default: 'distro'
|
|
||||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
|
||||||
# Flag: --ascii_colors
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
|
|
||||||
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
|
|
||||||
ascii_colors=(distro)
|
|
||||||
|
|
||||||
# Bold ascii logo
|
|
||||||
# Whether or not to bold the ascii logo.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --ascii_bold
|
|
||||||
ascii_bold="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Image Options
|
|
||||||
|
|
||||||
|
|
||||||
# Image loop
|
|
||||||
# Setting this to on will make neofetch redraw the image constantly until
|
|
||||||
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --loop
|
|
||||||
image_loop="off"
|
|
||||||
|
|
||||||
# Thumbnail directory
|
|
||||||
#
|
|
||||||
# Default: '~/.cache/thumbnails/neofetch'
|
|
||||||
# Values: 'dir'
|
|
||||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
|
||||||
|
|
||||||
# Crop mode
|
|
||||||
#
|
|
||||||
# Default: 'normal'
|
|
||||||
# Values: 'normal', 'fit', 'fill'
|
|
||||||
# Flag: --crop_mode
|
|
||||||
#
|
|
||||||
# See this wiki page to learn about the fit and fill options.
|
|
||||||
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
|
|
||||||
crop_mode="fit"
|
|
||||||
|
|
||||||
# Crop offset
|
|
||||||
# Note: Only affects 'normal' crop mode.
|
|
||||||
#
|
|
||||||
# Default: 'center'
|
|
||||||
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
|
|
||||||
# 'east', 'southwest', 'south', 'southeast'
|
|
||||||
# Flag: --crop_offset
|
|
||||||
crop_offset="center"
|
|
||||||
|
|
||||||
# Image size
|
|
||||||
# The image is half the terminal width by default.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', '00px', '00%', 'none'
|
|
||||||
# Flags: --image_size
|
|
||||||
# --size
|
|
||||||
image_size="43%"
|
|
||||||
|
|
||||||
# Ggap between image and text
|
|
||||||
#
|
|
||||||
# Default: '3'
|
|
||||||
# Values: 'num', '-num'
|
|
||||||
# Flag: --gap
|
|
||||||
gap=3
|
|
||||||
|
|
||||||
# Image offsets
|
|
||||||
# Only works with the w3m backend.
|
|
||||||
#
|
|
||||||
# Default: '0'
|
|
||||||
# Values: 'px'
|
|
||||||
# Flags: --xoffset
|
|
||||||
# --yoffset
|
|
||||||
yoffset=0
|
|
||||||
xoffset=0
|
|
||||||
|
|
||||||
# Image background color
|
|
||||||
# Only works with the w3m backend.
|
|
||||||
#
|
|
||||||
# Default: ''
|
|
||||||
# Values: 'color', 'blue'
|
|
||||||
# Flag: --bg_color
|
|
||||||
background_color=
|
|
||||||
|
|
||||||
|
|
||||||
# Scrot Options
|
|
||||||
|
|
||||||
|
|
||||||
# Whether or not to always take a screenshot
|
|
||||||
# You can manually take a screenshot with "--scrot" or "-s"
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flags: --scrot
|
|
||||||
# -s
|
|
||||||
scrot="off"
|
|
||||||
|
|
||||||
# Screenshot Program
|
|
||||||
# Neofetch will automatically use whatever screenshot tool
|
|
||||||
# is installed on your system.
|
|
||||||
#
|
|
||||||
# If 'neofetch -v' says that it couldn't find a screenshot
|
|
||||||
# tool or you're using a custom tool then you can change
|
|
||||||
# the option below to a custom command.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto' 'cmd -flags'
|
|
||||||
# Flag: --scrot_cmd
|
|
||||||
scrot_cmd="auto"
|
|
||||||
|
|
||||||
# Screenshot Filename
|
|
||||||
# What to name the screenshots
|
|
||||||
#
|
|
||||||
# Default: 'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png'
|
|
||||||
# Values: 'string'
|
|
||||||
# Flag: --scrot_name
|
|
||||||
scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png"
|
|
||||||
|
|
||||||
# Image upload host
|
|
||||||
# Where to upload the image.
|
|
||||||
#
|
|
||||||
# Default: 'teknik'
|
|
||||||
# Values: 'imgur', 'teknik'
|
|
||||||
# Flag: --image_host
|
|
||||||
#
|
|
||||||
# NOTE: If you'd like another image host to be added to Neofetch.
|
|
||||||
# Open an issue on github.
|
|
||||||
image_host="teknik"
|
|
||||||
|
|
||||||
|
|
||||||
# Misc Options
|
|
||||||
|
|
||||||
# Stdout mode
|
|
||||||
# Turn off all colors and disables image backend (ASCII/Image).
|
|
||||||
# Useful for piping into another command.
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
stdout="off"
|
|
||||||
|
|
||||||
# Config version.
|
|
||||||
#
|
|
||||||
# NOTE: Don't change this value, neofetch reads this to determine
|
|
||||||
# how to handle backwards compatibility.
|
|
||||||
config_version="3.3.0"
|
|
@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install neofetch
|
|
||||||
aur:
|
|
||||||
name:
|
|
||||||
- w3m
|
|
||||||
- neofetch
|
|
||||||
skip_installed: yes
|
|
||||||
|
|
||||||
- name: creates neofetch conf dir
|
|
||||||
file:
|
|
||||||
path: ~/.config/neofetch
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Configure neofetch
|
|
||||||
copy:
|
|
||||||
src: config.conf
|
|
||||||
dest: ~/.config/neofetch/
|
|
||||||
|
|
||||||
- name: Copy neofetch archlinux img
|
|
||||||
copy:
|
|
||||||
src: archlinux.png
|
|
||||||
dest: ~/.config/neofetch/
|
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install neovim
|
|
||||||
package:
|
|
||||||
name: neovim
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Copy neovim conf file
|
- name: Copy neovim conf file
|
||||||
copy:
|
copy:
|
||||||
src: init.vim
|
src: init.vim
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: AUR packages install [Archlinux]
|
|
||||||
aur:
|
|
||||||
name: kernel-modules-hook
|
|
||||||
skip_installed: yes
|
|
@ -1,28 +0,0 @@
|
|||||||
# Specific OS packages
|
|
||||||
Add a tasks file named with hostname of target
|
|
||||||
```
|
|
||||||
echo <<\EOF > tasks/by_os/<archlinux|debian|centos|freebsd>/main.yml
|
|
||||||
---
|
|
||||||
- name: Install <archlinux|debian|centos|freebsd> packages
|
|
||||||
pacman:
|
|
||||||
state: present
|
|
||||||
name:
|
|
||||||
- vim
|
|
||||||
become: True
|
|
||||||
EOF
|
|
||||||
```
|
|
||||||
|
|
||||||
# Specific hosts packages
|
|
||||||
Add a tasks file named with hostname of target
|
|
||||||
```
|
|
||||||
mkdir tasks/by_host/$(hostname)
|
|
||||||
echo <<\EOF > tasks/by_host/$(hostname)/main.yml
|
|
||||||
---
|
|
||||||
- name: Install $(hostname) packages
|
|
||||||
pacman:
|
|
||||||
state: present
|
|
||||||
name:
|
|
||||||
- vim
|
|
||||||
become: True
|
|
||||||
EOF
|
|
||||||
```
|
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install Desktop aur packages [Archlinux]
|
|
||||||
aur:
|
|
||||||
name:
|
|
||||||
- trizen
|
|
||||||
- google-chrome
|
|
||||||
- connman-gtk
|
|
||||||
- gnome-ssh-askpass2
|
|
||||||
- otf-font-awesome
|
|
||||||
- spotify
|
|
||||||
skip_installed: yes
|
|
@ -1,33 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install Desktop packages
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- xorg-server
|
|
||||||
- xorg-xinit
|
|
||||||
- lxappearance
|
|
||||||
- feh
|
|
||||||
- xclip
|
|
||||||
- xorg-xrdb
|
|
||||||
- xorg-xfd
|
|
||||||
- connman
|
|
||||||
- ttf-hack
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Test host packages file
|
|
||||||
stat:
|
|
||||||
path: "{{ role_path }}/tasks/by_host/{{ ansible_hostname }}/main.yml"
|
|
||||||
register: host_file
|
|
||||||
|
|
||||||
- name: Include distribution packages
|
|
||||||
include_tasks: "{{ role_path }}/tasks/by_host/{{ ansible_hostname }}/main.yml"
|
|
||||||
when: host_file.stat.exists
|
|
||||||
|
|
||||||
- name: Test distribution packages file
|
|
||||||
stat:
|
|
||||||
path: "{{ role_path }}/tasks/by_os/{{ ansible_distribution|lower }}/main.yml"
|
|
||||||
register: distribution_file
|
|
||||||
|
|
||||||
- name: Include distribution packages
|
|
||||||
include_tasks: "{{ role_path }}/tasks/by_os/{{ ansible_distribution|lower }}/main.yml"
|
|
||||||
when: distribution_file.stat.exists
|
|
@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install backlight controller package
|
|
||||||
aur:
|
|
||||||
name: light-git
|
|
||||||
skip_installed: yes
|
|
||||||
when: ansible_os_family == "Archlinux"
|
|
56
roles/packages/tasks/by_os/archlinux/main.yml
Normal file
56
roles/packages/tasks/by_os/archlinux/main.yml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
---
|
||||||
|
- name: Install Desktop packages [Archlinux]
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- wayland
|
||||||
|
- xorg-server-xwayland
|
||||||
|
- sway
|
||||||
|
- waybar
|
||||||
|
- grim # screenshots
|
||||||
|
- slurp # select region
|
||||||
|
- wl-clipboard # clipboard
|
||||||
|
- playerctl # spotify
|
||||||
|
- lxappearance
|
||||||
|
- connman
|
||||||
|
- ttf-hack
|
||||||
|
- termite
|
||||||
|
- variety
|
||||||
|
- weechat
|
||||||
|
- xbindkeys #laptop only ?
|
||||||
|
state: present
|
||||||
|
become: True
|
||||||
|
when: meta == "desktop"
|
||||||
|
|
||||||
|
- name: Install Laptop packages [Archlinux]
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- xbindkeys
|
||||||
|
state: present
|
||||||
|
become: True
|
||||||
|
when: meta == "laptop"
|
||||||
|
|
||||||
|
- name: AUR Desktop packages [Archlinux]
|
||||||
|
aur:
|
||||||
|
name:
|
||||||
|
- kernel-modules-hook
|
||||||
|
- trizen
|
||||||
|
- google-chrome
|
||||||
|
- connman-gtk
|
||||||
|
- gnome-ssh-askpass2
|
||||||
|
- otf-font-awesome
|
||||||
|
- spotify
|
||||||
|
- light-git #laptop only ?
|
||||||
|
- equilux-theme
|
||||||
|
- paper-icon-theme
|
||||||
|
- rofi
|
||||||
|
- swaylock-fancy-git
|
||||||
|
- gtk-theme-minwaita #https://github.com/Alexays/Waybar/issues/515
|
||||||
|
skip_installed: yes
|
||||||
|
when: meta == "desktop"
|
||||||
|
|
||||||
|
- name: AUR Laptop packages [Archlinux]
|
||||||
|
aur:
|
||||||
|
name:
|
||||||
|
- light-git #laptop only ?
|
||||||
|
skip_installed: yes
|
||||||
|
when: meta == "laptop"
|
@ -8,9 +8,14 @@
|
|||||||
- most
|
- most
|
||||||
- fzf
|
- fzf
|
||||||
- rsync
|
- rsync
|
||||||
|
- git
|
||||||
|
- fish
|
||||||
|
- neovim
|
||||||
|
- screen
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: meta == "common"
|
||||||
|
|
||||||
- name: Test host packages file
|
- name: Test host packages file
|
||||||
stat:
|
stat:
|
@ -1,19 +0,0 @@
|
|||||||
# Managed files
|
|
||||||
- \~/.config/polybar/config
|
|
||||||
- \~/.config/polybar/launch.sh
|
|
||||||
- \~/.config/polybar/pkg.sh
|
|
||||||
|
|
||||||
# Managed dirs
|
|
||||||
- \~/.config/polybar/modules
|
|
||||||
- \~/.config/polybar/bars
|
|
||||||
|
|
||||||
# Dualscreen configuration by host
|
|
||||||
Add a dir named as hostname to include specific host configuration for multiple screen launch
|
|
||||||
```
|
|
||||||
mkdir templates/$(hostname)
|
|
||||||
echo <<\EOF > templates/$(hostname)/launch.j2
|
|
||||||
MONITOR=HDMI1 polybar top &
|
|
||||||
MONITOR=HDMI2 polybar top &
|
|
||||||
MONITOR=HDMI2 polybar bottom &
|
|
||||||
EOF
|
|
||||||
```
|
|
@ -1,38 +0,0 @@
|
|||||||
[bar/bottom]
|
|
||||||
monitor = ${env:MONITOR}
|
|
||||||
monitor-strict = true
|
|
||||||
dpi = 72
|
|
||||||
bottom = true
|
|
||||||
width = 100%
|
|
||||||
height = 20
|
|
||||||
offset-x = 0
|
|
||||||
offset-y = 0
|
|
||||||
|
|
||||||
;background = ${xrdb:color9}
|
|
||||||
background = ${colors.background}
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
overline-size = 0
|
|
||||||
overline-color = #f00
|
|
||||||
underline-size = 0
|
|
||||||
underline-color = #00f
|
|
||||||
|
|
||||||
border-bottom-size = 0
|
|
||||||
border-bottom-color = ${colors.background}
|
|
||||||
|
|
||||||
spacing = 1
|
|
||||||
padding-left = 0
|
|
||||||
padding-right = 2
|
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
|
||||||
|
|
||||||
font-0 = hack:pixelsize=12;2
|
|
||||||
font-1 = unifont:size=10;2
|
|
||||||
font-2 = siji:pixelsize=10;3
|
|
||||||
font-3 = FontAwesome:pixelsize=14;2
|
|
||||||
|
|
||||||
modules-left = jgmenu
|
|
||||||
modules-center = networkspeedup networkspeeddown
|
|
||||||
modules-right = temperature filesystem-slash filesystem-home cpu memory
|
|
||||||
tray-position = right
|
|
||||||
tray-padding = 2
|
|
@ -1,51 +0,0 @@
|
|||||||
[bar/top]
|
|
||||||
monitor = ${env:MONITOR}
|
|
||||||
monitor-strict = true
|
|
||||||
dpi = 72
|
|
||||||
bottom = false
|
|
||||||
width = 100%
|
|
||||||
height = 20
|
|
||||||
offset-x = 0
|
|
||||||
offset-y = 0
|
|
||||||
|
|
||||||
;background = ${xrdb:color9}
|
|
||||||
background = ${colors.background}
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
overline-size = 0
|
|
||||||
overline-color = #f00
|
|
||||||
underline-size = 2
|
|
||||||
underline-color = #00f
|
|
||||||
|
|
||||||
border-bottom-size = 0
|
|
||||||
border-bottom-color = ${colors.background}
|
|
||||||
|
|
||||||
spacing = 1
|
|
||||||
padding-left = 0
|
|
||||||
padding-right = 2
|
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
|
||||||
|
|
||||||
font-0 = hack:pixelsize=12;2
|
|
||||||
font-1 = unifont:size=10;2
|
|
||||||
font-2 = siji:pixelsize=10;3
|
|
||||||
font-3 = FontAwesome:pixelsize=14;2
|
|
||||||
|
|
||||||
modules-left = i3 xwindow
|
|
||||||
modules-center =
|
|
||||||
modules-right = backlight volume redshift wlan eth vpncheck pkg battery date
|
|
||||||
tray-position = right
|
|
||||||
tray-padding = 4
|
|
||||||
;tray-transparent = true
|
|
||||||
;tray-background = #0063ff
|
|
||||||
|
|
||||||
;wm-restack = bspwm
|
|
||||||
;wm-restack = i3
|
|
||||||
|
|
||||||
;override-redirect = true
|
|
||||||
|
|
||||||
;scroll-up = bspwm-desknext
|
|
||||||
;scroll-down = bspwm-deskprev
|
|
||||||
|
|
||||||
;scroll-up = i3wm-wsnext
|
|
||||||
;scroll-down = i3wm-wsprev
|
|
@ -1,51 +0,0 @@
|
|||||||
[bar/top_light]
|
|
||||||
monitor = ${env:MONITOR}
|
|
||||||
monitor-strict = true
|
|
||||||
dpi = 72
|
|
||||||
bottom = false
|
|
||||||
width = 100%
|
|
||||||
height = 20
|
|
||||||
offset-x = 0
|
|
||||||
offset-y = 0
|
|
||||||
|
|
||||||
;background = ${xrdb:color9}
|
|
||||||
background = ${colors.background}
|
|
||||||
foreground = ${colors.foreground}
|
|
||||||
|
|
||||||
overline-size = 0
|
|
||||||
overline-color = #f00
|
|
||||||
underline-size = 2
|
|
||||||
underline-color = #00f
|
|
||||||
|
|
||||||
border-bottom-size = 0
|
|
||||||
border-bottom-color = ${colors.background}
|
|
||||||
|
|
||||||
spacing = 1
|
|
||||||
padding-left = 0
|
|
||||||
padding-right = 2
|
|
||||||
module-margin-left = 1
|
|
||||||
module-margin-right = 2
|
|
||||||
|
|
||||||
font-0 = hack:pixelsize=12;2
|
|
||||||
font-1 = unifont:size=10;2
|
|
||||||
font-2 = siji:pixelsize=10;3
|
|
||||||
font-3 = FontAwesome:pixelsize=14;2
|
|
||||||
|
|
||||||
modules-left = i3 xwindow
|
|
||||||
modules-center =
|
|
||||||
modules-right = date
|
|
||||||
tray-position = right
|
|
||||||
tray-padding = 4
|
|
||||||
;tray-transparent = true
|
|
||||||
;tray-background = #0063ff
|
|
||||||
|
|
||||||
;wm-restack = bspwm
|
|
||||||
;wm-restack = i3
|
|
||||||
|
|
||||||
;override-redirect = true
|
|
||||||
|
|
||||||
;scroll-up = bspwm-desknext
|
|
||||||
;scroll-down = bspwm-deskprev
|
|
||||||
|
|
||||||
;scroll-up = i3wm-wsnext
|
|
||||||
;scroll-down = i3wm-wsprev
|
|
@ -1,58 +0,0 @@
|
|||||||
[colors]
|
|
||||||
background = #222
|
|
||||||
background-alt = #444
|
|
||||||
foreground = #dfdfdf
|
|
||||||
foreground-alt = #55
|
|
||||||
primary = #ffb52a
|
|
||||||
secondary = #e60053
|
|
||||||
alert = #bd2c40
|
|
||||||
|
|
||||||
[global/wm]
|
|
||||||
margin-top = 5
|
|
||||||
margin-bottom = 5
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
; The throttle settings lets the eventloop swallow up til X events
|
|
||||||
; if they happen within Y millisecond after first event was received.
|
|
||||||
; This is done to prevent flood of update event.
|
|
||||||
;
|
|
||||||
; For example if 5 modules emit an update event at the same time, we really
|
|
||||||
; just care about the last one. But if we wait too long for events to swallow
|
|
||||||
; the bar would appear sluggish so we continue if timeout
|
|
||||||
; expires or limit is reached.
|
|
||||||
throttle-output = 5
|
|
||||||
throttle-output-for = 10
|
|
||||||
|
|
||||||
; Time in milliseconds that the input handler will wait between processing events
|
|
||||||
throttle-input-for = 30
|
|
||||||
|
|
||||||
; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
|
|
||||||
screenchange-reload = true
|
|
||||||
|
|
||||||
; bars includes
|
|
||||||
include-file = ~/.config/polybar/bars/top_light
|
|
||||||
include-file = ~/.config/polybar/bars/top
|
|
||||||
include-file = ~/.config/polybar/bars/bottom
|
|
||||||
|
|
||||||
; modules includes
|
|
||||||
include-file = ~/.config/polybar/modules/xwindow
|
|
||||||
include-file = ~/.config/polybar/modules/xkeyboard
|
|
||||||
include-file = ~/.config/polybar/modules/jgmenu
|
|
||||||
include-file = ~/.config/polybar/modules/filesystem-home
|
|
||||||
include-file = ~/.config/polybar/modules/filesystem-slash
|
|
||||||
include-file = ~/.config/polybar/modules/i3
|
|
||||||
include-file = ~/.config/polybar/modules/backlight
|
|
||||||
include-file = ~/.config/polybar/modules/cpu
|
|
||||||
include-file = ~/.config/polybar/modules/memory
|
|
||||||
include-file = ~/.config/polybar/modules/wlan
|
|
||||||
include-file = ~/.config/polybar/modules/eth
|
|
||||||
include-file = ~/.config/polybar/modules/networkspeedup
|
|
||||||
include-file = ~/.config/polybar/modules/networkspeeddown
|
|
||||||
include-file = ~/.config/polybar/modules/date
|
|
||||||
include-file = ~/.config/polybar/modules/volume
|
|
||||||
include-file = ~/.config/polybar/modules/battery
|
|
||||||
include-file = ~/.config/polybar/modules/temperature
|
|
||||||
include-file = ~/.config/polybar/modules/pkg
|
|
||||||
include-file = ~/.config/polybar/modules/redshift
|
|
||||||
include-file = ~/.config/polybar/modules/vpncheck
|
|
||||||
include-file = ~/.config/polybar/modules/powermenu
|
|
@ -1,18 +0,0 @@
|
|||||||
[module/backlight]
|
|
||||||
type = internal/backlight
|
|
||||||
card = intel_backlight
|
|
||||||
click-left = connman-gtk
|
|
||||||
|
|
||||||
format = <label> <bar>
|
|
||||||
label = ""
|
|
||||||
|
|
||||||
bar-width = 10
|
|
||||||
bar-indicator = |
|
|
||||||
bar-indicator-foreground = #ff
|
|
||||||
bar-indicator-font = 2
|
|
||||||
bar-fill = ─
|
|
||||||
bar-fill-font = 2
|
|
||||||
bar-fill-foreground = #9f78e1
|
|
||||||
bar-empty = ─
|
|
||||||
bar-empty-font = 2
|
|
||||||
bar-empty-foreground = ${colors.foreground-alt}
|
|
@ -1,33 +0,0 @@
|
|||||||
[module/battery]
|
|
||||||
type = internal/battery
|
|
||||||
battery = BAT0
|
|
||||||
adapter = AC
|
|
||||||
full-at = 98
|
|
||||||
time-format = "%H%{F#92}%M%{F-}"
|
|
||||||
|
|
||||||
label-discharging = %percentage% %time%
|
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
|
||||||
format-charging-underline = #f3f99d
|
|
||||||
|
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
|
||||||
format-discharging-underline = ${self.format-charging-underline}
|
|
||||||
|
|
||||||
format-full-prefix = " "
|
|
||||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
format-full-underline = ${self.format-charging-underline}
|
|
||||||
|
|
||||||
ramp-capacity-0 =
|
|
||||||
ramp-capacity-1 =
|
|
||||||
ramp-capacity-2 =
|
|
||||||
ramp-capacity-3 =
|
|
||||||
ramp-capacity-4 =
|
|
||||||
ramp-capacity-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
animation-charging-0 =
|
|
||||||
animation-charging-1 =
|
|
||||||
animation-charging-2 =
|
|
||||||
animation-charging-3 =
|
|
||||||
animation-charging-4 =
|
|
||||||
animation-charging-foreground = ${colors.foreground-alt}
|
|
||||||
animation-charging-framerate = 750
|
|
@ -1,16 +0,0 @@
|
|||||||
[module/cpu]
|
|
||||||
type = internal/cpu
|
|
||||||
interval = 2
|
|
||||||
format = <ramp-coreload>
|
|
||||||
format-prefix =
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
;format-underline = #f90000
|
|
||||||
label = %percentage%
|
|
||||||
ramp-coreload-0 = %{F#5b}▁%{F-}
|
|
||||||
ramp-coreload-1 = %{F#5b}▂%{F-}
|
|
||||||
ramp-coreload-2 = %{F#5b}▃%{F-}
|
|
||||||
ramp-coreload-3 = %{F#ff5c57}▄%{F-}
|
|
||||||
ramp-coreload-4 = %{F#ff5c57}▅%{F-}
|
|
||||||
ramp-coreload-5 = %{F#ff5c57}▆%{F-}
|
|
||||||
ramp-coreload-6 = %{F#ff5c57}▇%{F-}
|
|
||||||
ramp-coreload-7 = %{F#ff5c57}█%{F-}
|
|
@ -1,15 +0,0 @@
|
|||||||
[module/date]
|
|
||||||
type = internal/date
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
date = "%d%{F#92}%m%{F-}%{F#49}%y%{F-}"
|
|
||||||
date-alt = " %d"
|
|
||||||
|
|
||||||
time = "%H%{F#92}%M%{F-}%{F#49}%S%{F-}"
|
|
||||||
time-alt = %H:%M
|
|
||||||
|
|
||||||
;format-prefix =
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
format-underline = #0a6cf5
|
|
||||||
|
|
||||||
label = %date% %time%
|
|
@ -1,13 +0,0 @@
|
|||||||
[module/eth]
|
|
||||||
type = internal/network
|
|
||||||
interface = eno1
|
|
||||||
interval = 3.0
|
|
||||||
|
|
||||||
format-connected-underline = #9f78e1
|
|
||||||
format-connected-prefix = " "
|
|
||||||
format-connected-prefix-foreground = #5b
|
|
||||||
label-connected = %ifname%
|
|
||||||
|
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
;label-disconnected = %ifname%
|
|
||||||
label-disconnected-foreground = ${colors.foreground-alt}
|
|
@ -1,5 +0,0 @@
|
|||||||
[module/filesystem-home]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 25
|
|
||||||
mount-0 = /home
|
|
||||||
label-mounted = "%{F#5b5b5b}%{F-} %percentage_used%%"
|
|
@ -1,7 +0,0 @@
|
|||||||
[module/filesystem-slash]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 25
|
|
||||||
mount-0 = /
|
|
||||||
label-mounted = "%{F#5b5b5b}%{F-} %percentage_used%%"
|
|
||||||
;label-unmounted = %mountpoint%: not mounted
|
|
||||||
;label-unmounted-foreground = ${colors.foreground-alt}
|
|
@ -1,39 +0,0 @@
|
|||||||
[module/i3]
|
|
||||||
type = internal/i3
|
|
||||||
format = <label-state> <label-mode>
|
|
||||||
index-sort = true
|
|
||||||
wrapping-scroll = false
|
|
||||||
strip-wsnumbers = true
|
|
||||||
pin-workspaces = true
|
|
||||||
|
|
||||||
label-mode-padding = 2
|
|
||||||
label-mode-foreground = #000
|
|
||||||
label-mode-background = ${colors.primary}
|
|
||||||
|
|
||||||
label-focused = %name%
|
|
||||||
label-focused-background = ${colors.background-alt}
|
|
||||||
label-focused-underline = #f3f99d
|
|
||||||
label-focused-padding = 2
|
|
||||||
|
|
||||||
label-unfocused = %name%
|
|
||||||
label-unfocused-padding = 2
|
|
||||||
|
|
||||||
label-urgent = %name%!
|
|
||||||
label-urgent-background = ${colors.alert}
|
|
||||||
label-urgent-padding = 2
|
|
||||||
|
|
||||||
label-visible = %name%
|
|
||||||
label-visible-background = ${self.label-focused-background}
|
|
||||||
label-visible-underline = ${self.label-focused-underline}
|
|
||||||
label-visible-padding = ${self.label-focused-padding}
|
|
||||||
|
|
||||||
ws-icon-0 = 1;
|
|
||||||
ws-icon-1 = 2;
|
|
||||||
ws-icon-2 = 3;
|
|
||||||
ws-icon-3 = 4;
|
|
||||||
ws-icon-4 = 5;
|
|
||||||
ws-icon-5 = 6;
|
|
||||||
ws-icon-6 = 7;
|
|
||||||
ws-icon-7 = 8;
|
|
||||||
ws-icon-8 = 9;
|
|
||||||
ws-icon-9 = 10;
|
|
@ -1,5 +0,0 @@
|
|||||||
[module/jgmenu]
|
|
||||||
type = custom/text
|
|
||||||
content-padding = 2
|
|
||||||
content = menu
|
|
||||||
click-left = "jgmenu_run >/dev/null 2>&1 &"
|
|
@ -1,18 +0,0 @@
|
|||||||
[module/memory]
|
|
||||||
type = internal/memory
|
|
||||||
interval = 2
|
|
||||||
format = <label> <bar-used>
|
|
||||||
format-prefix =
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
;format-underline = #4bffdc
|
|
||||||
label =
|
|
||||||
bar-used-width = 30
|
|
||||||
bar-used-foreground-0 = #5af78e
|
|
||||||
bar-used-foreground-1 = #5af78e
|
|
||||||
bar-used-foreground-2 = #f3f99d
|
|
||||||
bar-used-foreground-3 = #ff5c57
|
|
||||||
;bar-used-fill = ▐
|
|
||||||
bar-used-fill =
|
|
||||||
bar-used-empty =
|
|
||||||
bar-used-empty-foreground = #444444
|
|
||||||
bar-used-indicator =
|
|
@ -1,7 +0,0 @@
|
|||||||
[module/networkspeeddown]
|
|
||||||
type = internal/network
|
|
||||||
interface = eno1
|
|
||||||
label-connected = "%downspeed:7%"
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-connected-prefix = " "
|
|
||||||
format-connected-prefix-foreground = #5b
|
|
@ -1,7 +0,0 @@
|
|||||||
[module/networkspeedup]
|
|
||||||
type = internal/network
|
|
||||||
interface = eno1
|
|
||||||
label-connected = "%upspeed:7%"
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-connected-prefix = " "
|
|
||||||
format-connected-prefix-foreground = #5b
|
|
@ -1,9 +0,0 @@
|
|||||||
[module/pkg]
|
|
||||||
type = custom/script
|
|
||||||
;tail = true
|
|
||||||
interval = 1200
|
|
||||||
format = <label>
|
|
||||||
format-underline = #ff5c57
|
|
||||||
label = "%output:0:50%"
|
|
||||||
exec = ~/.config/polybar/pkg.sh
|
|
||||||
exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
|
|
@ -1,33 +0,0 @@
|
|||||||
[module/powermenu]
|
|
||||||
type = custom/menu
|
|
||||||
|
|
||||||
label-open =
|
|
||||||
label-open-foreground = #ff5c56
|
|
||||||
label-close = cancel
|
|
||||||
label-close-foreground = ${colors.secondary}
|
|
||||||
label-separator = |
|
|
||||||
label-separator-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
menu-0-0 = reboot
|
|
||||||
menu-0-0-exec = menu-open-1
|
|
||||||
menu-0-1 = power off
|
|
||||||
menu-0-1-exec = menu-open-2
|
|
||||||
menu-0-2 = log out
|
|
||||||
menu-0-2-exec = menu-open-3
|
|
||||||
menu-0-3 =
|
|
||||||
menu-0-3-exec = "~/.i3/i3lock-fancy-multimonitor/lock &"
|
|
||||||
|
|
||||||
menu-1-0 = cancel
|
|
||||||
menu-1-0-exec = menu-open-0
|
|
||||||
menu-1-1 = reboot
|
|
||||||
menu-1-1-exec = sudo reboot
|
|
||||||
|
|
||||||
menu-2-0 = power off
|
|
||||||
menu-2-0-exec = shutdown now
|
|
||||||
menu-2-1 = cancel
|
|
||||||
menu-2-1-exec = menu-open-0
|
|
||||||
|
|
||||||
menu-3-0 = log out
|
|
||||||
menu-3-0-exec = i3-msg exit
|
|
||||||
menu-3-1 = cancel
|
|
||||||
menu-3-1-exec = menu-open-0
|
|
@ -1,9 +0,0 @@
|
|||||||
[module/redshift]
|
|
||||||
type = custom/script
|
|
||||||
click-left = bash -x ~/.config/polybar/modules/redshift.sh toggle
|
|
||||||
exec = cat ~/.config/polybar/.redshift
|
|
||||||
label = "%output:0:10%"
|
|
||||||
interval = 1
|
|
||||||
format-prefix = " "
|
|
||||||
format-underline = #268bd2
|
|
||||||
format-prefix-foreground = #5b
|
|
@ -1,55 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
### VARS ###
|
|
||||||
warm_color="5000K"
|
|
||||||
normal_color="6500K"
|
|
||||||
|
|
||||||
### USAGE ###
|
|
||||||
if [[ -z "$1" ]]
|
|
||||||
then
|
|
||||||
echo "Usage: redshift.sh [on|off|toggle]"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
### CONF ###
|
|
||||||
conf_file="$(dirname $(readlink -f "$0"))/.redshift"
|
|
||||||
if [[ ! -f "$conf_file" ]]
|
|
||||||
then
|
|
||||||
echo "$normal_color" > "$conf_file"
|
|
||||||
fi
|
|
||||||
current_color=$(tail -n1 "$conf_file")
|
|
||||||
|
|
||||||
### FUNCTIONS ###
|
|
||||||
trigger () {
|
|
||||||
if [[ "$1" == "on" ]]
|
|
||||||
then
|
|
||||||
/usr/bin/redshift -PO "$warm_color" 2>&1 > /dev/null
|
|
||||||
echo "$warm_color" | tee "$conf_file"
|
|
||||||
elif [[ "$1" == "off" ]]
|
|
||||||
then
|
|
||||||
/usr/bin/redshift -PO "$normal_color" 2>&1 > /dev/null
|
|
||||||
echo "$normal_color" | tee "$conf_file"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
### ARGS EXEC ###
|
|
||||||
if [[ "$1" == "on" ]]
|
|
||||||
then trigger $1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$1" == "off" ]]
|
|
||||||
then trigger $1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$1" == "toggle" ]]
|
|
||||||
then
|
|
||||||
if [[ "$current_color" == "$warm_color" ]]
|
|
||||||
then
|
|
||||||
trigger off
|
|
||||||
elif [[ "$current_color" == "$normal_color" ]]
|
|
||||||
then
|
|
||||||
trigger on
|
|
||||||
else
|
|
||||||
trigger off
|
|
||||||
fi
|
|
||||||
fi
|
|
@ -1,18 +0,0 @@
|
|||||||
[module/temperature]
|
|
||||||
type = internal/temperature
|
|
||||||
thermal-zone = 1
|
|
||||||
warn-temperature = 60
|
|
||||||
|
|
||||||
format = <ramp> <label>
|
|
||||||
format-underline = #f50a4d
|
|
||||||
format-warn = <ramp> <label-warn>
|
|
||||||
format-warn-underline = ${self.format-underline}
|
|
||||||
|
|
||||||
label = %temperature%
|
|
||||||
label-warn = %temperature%
|
|
||||||
label-warn-foreground = ${colors.secondary}
|
|
||||||
|
|
||||||
ramp-0 =
|
|
||||||
ramp-1 =
|
|
||||||
ramp-2 =
|
|
||||||
ramp-foreground = ${colors.foreground-alt}
|
|
@ -1,28 +0,0 @@
|
|||||||
[module/volume]
|
|
||||||
type = internal/alsa
|
|
||||||
|
|
||||||
format-volume = <label-volume> <bar-volume>
|
|
||||||
label-volume = ""
|
|
||||||
label-volume-foreground = ${root.foreground}
|
|
||||||
|
|
||||||
format-muted-prefix = " "
|
|
||||||
format-muted-foreground = ${colors.foreground-alt}
|
|
||||||
label-muted = muted
|
|
||||||
|
|
||||||
bar-volume-width = 10
|
|
||||||
bar-volume-foreground-0 = #5af78e
|
|
||||||
bar-volume-foreground-1 = #5af78e
|
|
||||||
bar-volume-foreground-2 = #5af78e
|
|
||||||
bar-volume-foreground-3 = #5af78e
|
|
||||||
bar-volume-foreground-4 = #5af78e
|
|
||||||
bar-volume-foreground-5 = #f3f99d
|
|
||||||
bar-volume-foreground-6 = #ff5c57
|
|
||||||
bar-volume-gradient = false
|
|
||||||
bar-volume-indicator = │
|
|
||||||
bar-volume-indicator-font = 2
|
|
||||||
bar-volume-indicator-foreground = #ff
|
|
||||||
bar-volume-fill = ─
|
|
||||||
bar-volume-fill-font = 2
|
|
||||||
bar-volume-empty = ─
|
|
||||||
bar-volume-empty-font = 2
|
|
||||||
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
@ -1,8 +0,0 @@
|
|||||||
[module/vpncheck]
|
|
||||||
type = custom/script
|
|
||||||
exec = pgrep openvpn
|
|
||||||
interval = 5
|
|
||||||
label = vpn
|
|
||||||
format-underline = #268bd2
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = #5b
|
|
@ -1,22 +0,0 @@
|
|||||||
[module/wlan]
|
|
||||||
type = internal/network
|
|
||||||
interface = wlp2s0
|
|
||||||
interval = 3.0
|
|
||||||
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-connected-prefix = " "
|
|
||||||
format-connected-prefix-foreground = #5b
|
|
||||||
|
|
||||||
format-connected-underline = #9f78e1
|
|
||||||
;format-disconnected-underline = ${self.format-connected-underline}
|
|
||||||
|
|
||||||
label-connected = "%{A1:connman-gtk &:}%essid%%{A}"
|
|
||||||
;label-disconnected = "%{A1:connman-gtk &:}%{A}"
|
|
||||||
label-disconnected-foreground = #5b
|
|
||||||
|
|
||||||
ramp-signal-0 =
|
|
||||||
ramp-signal-1 =
|
|
||||||
ramp-signal-2 =
|
|
||||||
ramp-signal-3 =
|
|
||||||
ramp-signal-4 =
|
|
||||||
ramp-signal-foreground = ${colors.foreground-alt}
|
|
@ -1,13 +0,0 @@
|
|||||||
[module/xkeyboard]
|
|
||||||
type = internal/xkeyboard
|
|
||||||
blacklist-0 = num lock
|
|
||||||
|
|
||||||
format-underline = ${colors.secondary}
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
label-layout = %layout%
|
|
||||||
|
|
||||||
label-indicator-padding = 2
|
|
||||||
label-indicator-background = ${colors.secondary}
|
|
||||||
label-indicator-underline = ${colors.secondary}
|
|
@ -1,3 +0,0 @@
|
|||||||
[module/xwindow]
|
|
||||||
type = internal/xwindow
|
|
||||||
label = " %{F#5b5b5b}%{F-} %title:0:60:...%"
|
|
@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
pac=$(checkupdates 2>/dev/null | wc -l)
|
|
||||||
aur=$(trizen -Qua 2>/dev/null | wc -l)
|
|
||||||
#kernel=$(vercmp "$(uname -r | sed 's/-arch/\./')" "$(pacman --nodeps -Sp --print-format %v linux)")
|
|
||||||
|
|
||||||
if [[ $pac -eq "0" ]] && [[ $aur -eq "0" ]] || [[ ! $pac =~ [0-9]+ ]] || [[ ! $aur =~ [0-9]+ ]]
|
|
||||||
then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $(checkupdates | grep '^linux\ ') ]]
|
|
||||||
then
|
|
||||||
echo "$pac %{F#ff5c57}%{F-} $aur"
|
|
||||||
else
|
|
||||||
echo "$pac %{F#5b5b5b}%{F-} $aur"
|
|
||||||
fi
|
|
@ -1,46 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Install polybar
|
|
||||||
aur:
|
|
||||||
name:
|
|
||||||
- siji-git
|
|
||||||
- polybar
|
|
||||||
skip_installed: yes
|
|
||||||
|
|
||||||
- name: Create polybar conf dir
|
|
||||||
file:
|
|
||||||
path: ~/.config/polybar
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Add pkg check script
|
|
||||||
copy:
|
|
||||||
src: pkg.sh
|
|
||||||
dest: ~/.config/polybar/
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Sync bars
|
|
||||||
synchronize:
|
|
||||||
src: files/bars
|
|
||||||
dest: ~/.config/polybar/
|
|
||||||
|
|
||||||
- name: Sync modules
|
|
||||||
synchronize:
|
|
||||||
src: files/modules
|
|
||||||
dest: ~/.config/polybar/
|
|
||||||
|
|
||||||
- name: Test if node specific template exists for launch.sh
|
|
||||||
stat:
|
|
||||||
path: "{{ role_path }}/templates/by_host/{{ ansible_hostname }}/launch.j2"
|
|
||||||
register: launch_file
|
|
||||||
|
|
||||||
- name: Template launch file
|
|
||||||
template:
|
|
||||||
src: launch.j2
|
|
||||||
dest: ~/.config/polybar/launch.sh
|
|
||||||
mode: 0755
|
|
||||||
backup: yes
|
|
||||||
|
|
||||||
- name: Template config file
|
|
||||||
copy:
|
|
||||||
src: config
|
|
||||||
dest: ~/.config/polybar/
|
|
||||||
backup: yes
|
|
@ -1,4 +0,0 @@
|
|||||||
MONITOR=eDP-1 polybar top &
|
|
||||||
MONITOR=DP-1-1 polybar top_light &
|
|
||||||
MONITOR=eDP-1 polybar bottom &
|
|
||||||
MONITOR=DP-1-2 polybar top_light &
|
|
@ -1,4 +0,0 @@
|
|||||||
MONITOR=HDMI2 polybar top_light &
|
|
||||||
MONITOR=HDMI3 polybar top &
|
|
||||||
MONITOR=HDMI1 polybar top_light &
|
|
||||||
MONITOR=HDMI3 polybar bottom &
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# Terminate already running bar instances
|
|
||||||
killall -q polybar
|
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
|
||||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
|
||||||
|
|
||||||
# Launch top and bottom
|
|
||||||
{% if launch_file.stat.exists %}
|
|
||||||
{% include 'by_host/' + ansible_hostname + '/launch.j2' %}
|
|
||||||
{% else %}
|
|
||||||
MONITOR=$(xrandr | grep '\ connected' | head -n1 | awk '{print $1}') polybar top &
|
|
||||||
MONITOR=$(xrandr | grep '\ connected' | head -n1 | awk '{print $1}') polybar bottom &
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
echo "Bars launched..."
|
|
@ -1,9 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install rofi
|
|
||||||
aur:
|
|
||||||
name: rofi
|
|
||||||
skip_installed: yes
|
|
||||||
|
|
||||||
- name: Create rofi conf dir
|
- name: Create rofi conf dir
|
||||||
file:
|
file:
|
||||||
path: ~/.config/rofi
|
path: ~/.config/rofi
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install screen
|
|
||||||
package:
|
|
||||||
name: screen
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Configure screen
|
- name: Configure screen
|
||||||
copy:
|
copy:
|
||||||
src: screenrc
|
src: screenrc
|
||||||
|
@ -1,23 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: install wayland and sway
|
|
||||||
pacman:
|
|
||||||
name:
|
|
||||||
- wayland
|
|
||||||
- xorg-server-xwayland
|
|
||||||
- sway
|
|
||||||
- waybar
|
|
||||||
- grim # screenshots
|
|
||||||
- slurp # select region
|
|
||||||
- wl-clipboard # clipboard
|
|
||||||
- playerctl # spotify
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: install aur sway deps
|
|
||||||
aur:
|
|
||||||
name:
|
|
||||||
- swaylock-fancy-git
|
|
||||||
- gtk-theme-minwaita #https://github.com/Alexays/Waybar/issues/515
|
|
||||||
|
|
||||||
- name: create sway config dir
|
- name: create sway config dir
|
||||||
file:
|
file:
|
||||||
path: ~/.config/sway/
|
path: ~/.config/sway/
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install termite
|
|
||||||
package:
|
|
||||||
name: termite
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Create termite conf dir
|
- name: Create termite conf dir
|
||||||
file:
|
file:
|
||||||
path: ~/.config/termite
|
path: ~/.config/termite
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: install variety
|
|
||||||
package:
|
|
||||||
name: variety
|
|
||||||
state: present
|
|
||||||
become: yes
|
|
||||||
|
|
||||||
- name: configure variety
|
- name: configure variety
|
||||||
copy:
|
copy:
|
||||||
src: variety.conf
|
src: variety.conf
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install weechat
|
|
||||||
package:
|
|
||||||
name:
|
|
||||||
- screen
|
|
||||||
- weechat
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Start weechat
|
- name: Start weechat
|
||||||
shell: screen -DmS weechat /usr/bin/weechat &
|
shell: screen -DmS weechat /usr/bin/weechat &
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Install xbindkeys
|
|
||||||
package:
|
|
||||||
name: xbindkeys
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
|
|
||||||
- name: Configure xbindkeys
|
- name: Configure xbindkeys
|
||||||
copy:
|
copy:
|
||||||
src: xbindkeysrc
|
src: xbindkeysrc
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
# Deprecated, i use fish
|
|
||||||
|
|
||||||
# By hostname specific configuration in zshrc
|
|
||||||
Add a dir named as hostname in by_host dir to include specific host configuration in config file
|
|
||||||
```
|
|
||||||
mkdir templates/by_host/$(hostname)
|
|
||||||
echo << EOF > templates/by_host/$(hostname)/zshrc.j2
|
|
||||||
# Alias to include for $(hostname)
|
|
||||||
alias foo=bar
|
|
||||||
EOF
|
|
||||||
```
|
|
||||||
|
|
||||||
# By OS specific configuration in zshrc
|
|
||||||
Add a dir named as hostname in by_host dir to include specific host configuration in config file
|
|
||||||
```
|
|
||||||
mkdir templates/by_os/<archlinux|debian|centos>
|
|
||||||
echo << EOF > templates/by_os/<archlinux|debian|centos>/zshrc.j2
|
|
||||||
# Alias to include for <archlinux|debian|centos>
|
|
||||||
alias foo2=bar2
|
|
||||||
EOF
|
|
||||||
```
|
|
@ -1,108 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Add zsh-syntax-highlighting repo key [Debian jessie]
|
|
||||||
apt_key:
|
|
||||||
url: https://download.opensuse.org/repositories/shells:zsh-users:zsh-syntax-highlighting/Debian_8.0/Release.key
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Debian"
|
|
||||||
- ansible_distribution_release == "jessie"
|
|
||||||
|
|
||||||
- name: Add zsh-syntax-highlighting repo key [Debian stretch]
|
|
||||||
apt_key:
|
|
||||||
url: https://download.opensuse.org/repositories/shells:zsh-users:zsh-syntax-highlighting/Debian_9.0/Release.key
|
|
||||||
state: present
|
|
||||||
become: True
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Debian"
|
|
||||||
- ansible_distribution_release == "stretch"
|
|
||||||
|
|
||||||
- name: Configure zsh-syntax-highlighting repo [Debian jessie]
|
|
||||||
apt_repository:
|
|
||||||
repo: 'deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-syntax-highlighting/Debian_8.0/ /'
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
become: True
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Debian"
|
|
||||||
- ansible_distribution_release == "jessie"
|
|
||||||
|
|
||||||
- name: Configure zsh-syntax-highlighting repo [Debian stretch]
|
|
||||||
apt_repository:
|
|
||||||
repo: 'deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-syntax-highlighting/Debian_9.0/ /'
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
become: True
|
|
||||||
when:
|
|
||||||
- ansible_distribution == "Debian"
|
|
||||||
- ansible_distribution_release == "stretch"
|
|
||||||
|
|
||||||
- name: Install zsh [Debian]
|
|
||||||
apt: name={{item}} state=present force=yes update_cache=yes
|
|
||||||
with_items:
|
|
||||||
- zsh
|
|
||||||
- most
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
become: True
|
|
||||||
when: ansible_distribution == "Debian"
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Configure zsh-syntax-highlighting repo [CentOS]
|
|
||||||
shell: creates=/etc/yum.repos.d/shells:zsh-users:zsh-syntax-highlighting.repo cd /etc/yum.repos.d/; wget https://download.opensuse.org/repositories/shells:zsh-users:zsh-syntax-highlighting/CentOS_7/shells:zsh-users:zsh-syntax-highlighting.repo
|
|
||||||
become: True
|
|
||||||
when: ansible_distribution == "CentOS"
|
|
||||||
|
|
||||||
- name: Install zsh
|
|
||||||
package: name={{item}} state=present
|
|
||||||
with_items:
|
|
||||||
- zsh
|
|
||||||
- most
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
become: True
|
|
||||||
when: ansible_distribution != "Debian"
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Install oh-my-zsh
|
|
||||||
shell: creates=~/.oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh) ||:"
|
|
||||||
|
|
||||||
- name: Search for zsh-syntax-highlighting
|
|
||||||
shell: find /usr -name zsh-syntax-highlighting.zsh 2>/dev/null
|
|
||||||
become: True
|
|
||||||
check_mode: no
|
|
||||||
changed_when: False
|
|
||||||
register: zsh_syntax_highlighting_dir
|
|
||||||
|
|
||||||
- name: Configure zshrc
|
|
||||||
template: src=templates/zshrc.j2 dest=~/.zshrc backup=yes
|
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: "Do not forget to 'chsh /usr/bin/zsh'"
|
|
||||||
|
|
||||||
- name: Create zsh dirs
|
|
||||||
file: path={{item}} state=directory
|
|
||||||
with_items:
|
|
||||||
- ~/.zfunctions
|
|
||||||
- ~/.zsh
|
|
||||||
|
|
||||||
- name: Clone zsh-autosuggestions repo
|
|
||||||
git:
|
|
||||||
repo: https://github.com/zsh-users/zsh-autosuggestions
|
|
||||||
dest: ~/.zsh/zsh-autosuggestions
|
|
||||||
|
|
||||||
- name: Clone pure repo
|
|
||||||
git:
|
|
||||||
repo: https://github.com/sindresorhus/pure
|
|
||||||
dest: ~/.zsh/pure
|
|
||||||
|
|
||||||
- name: Configure Pure Prompt
|
|
||||||
file: src=~/.zsh/pure/pure.zsh dest=~/.zfunctions/prompt_pure_setup state=link
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Configure Pure Prompt bis
|
|
||||||
file: src=~/.zsh/pure/async.zsh dest=~/.zfunctions/async state=link
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Init zshrc_node
|
|
||||||
file: path=~/.zshrc_node state=touch
|
|
||||||
changed_when: False
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
### Cesium Alias
|
|
||||||
alias ansibled=/etc/ansible/playbooks-awx
|
|
||||||
|
|
||||||
### dsmaster.py PATH
|
|
||||||
export PATH=$PATH:/export/dsscripts.py/
|
|
@ -1,4 +0,0 @@
|
|||||||
### ARCHLINUX INCLUDE
|
|
||||||
alias installed="pacman -Qqen"
|
|
||||||
dupkg() { expac '%m\t%n' | sort -h | awk '{cmd = "numfmt --to=si "$1; cmd | getline n; close(cmd); print n, $2}' }
|
|
||||||
dupkg_ex() { expac -H M "%011m\t%-20n\t%10d" $(comm -23 <(pacman -Qqen | sort) <(pacman -Qqg base base-devel | sort)) | sort -n }
|
|
@ -1,83 +0,0 @@
|
|||||||
# Path to your oh-my-zsh installation.
|
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
|
||||||
|
|
||||||
#turn on comments with # in shell
|
|
||||||
setopt interactivecomments
|
|
||||||
|
|
||||||
### ALIASES
|
|
||||||
|
|
||||||
alias startx="ssh-agent startx"
|
|
||||||
|
|
||||||
alias zshconfig="vi ~/.zshrc"
|
|
||||||
alias zshconfig_node="vi ~/.zshrc_node"
|
|
||||||
alias vimconfig="vi ~/.vimrc"
|
|
||||||
alias sshconfig="vi ~/.ssh/config"
|
|
||||||
|
|
||||||
alias lh="du -ahd1 | sort -h"
|
|
||||||
#lhs() { for list in $(ls -a | sed 's/\ /\\ /g'); do du -hs $list; done | sort -hr }
|
|
||||||
|
|
||||||
wanip() { curl icanhazip.com }
|
|
||||||
lanip() { ip a | grep $(ip r | grep default | head | cut -d\ -f5) | grep inet | awk '{print $2}' | cut -d"/" -f1 }
|
|
||||||
|
|
||||||
alias ix="curl -s -F 'f:1=<-' ix.io"
|
|
||||||
up () {curl -F "c=@${1:--}" https://ptpb.pw/}
|
|
||||||
|
|
||||||
alias vi="vim"
|
|
||||||
vissh () {vim scp://"$1"/}
|
|
||||||
alias sudo="sudo "
|
|
||||||
alias chrome="google-chrome-stable"
|
|
||||||
chromeapp() { google-chrome-stable --app=$1 }
|
|
||||||
alias tmux="tmux -2"
|
|
||||||
bak() { cp "$1" "$1.bak" }
|
|
||||||
extract() {
|
|
||||||
if [ -f $1 ] ; then
|
|
||||||
case $1 in
|
|
||||||
*.tar.bz2) tar xvjf $1 ;;
|
|
||||||
*.tar.gz) tar xvzf $1 ;;
|
|
||||||
*.tar.xz) tar xJf $1 ;;
|
|
||||||
*.bz2) bunzip2 $1 ;;
|
|
||||||
*.rar) unrar x $1 ;;
|
|
||||||
*.gz) gunzip $1 ;;
|
|
||||||
*.tar) tar xvf $1 ;;
|
|
||||||
*.tbz2) tar xvjf $1 ;;
|
|
||||||
*.tgz) tar xvzf $1 ;;
|
|
||||||
*.zip) unzip $1 ;;
|
|
||||||
*.Z) uncompress $1 ;;
|
|
||||||
*.7z) 7z x $1 ;;
|
|
||||||
*) echo "Unable to extract '$1'" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
echo "'$1' is not a valid file"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
### EXPORTS
|
|
||||||
export LANG='fr_FR.UTF-8'
|
|
||||||
export EDITOR='vim'
|
|
||||||
export VISUAL='vim'
|
|
||||||
export BROWSER='google-chrome-stable'
|
|
||||||
export POWERLINE_CONFIG_COMMAND='powerline-config'
|
|
||||||
export PAGER='most'
|
|
||||||
export PATH=${PATH}:~/.gem/ruby/2.4.0/bin
|
|
||||||
|
|
||||||
{% include 'by_host/' + ansible_hostname + '/zshrc.j2' ignore missing %}
|
|
||||||
|
|
||||||
{% include 'by_os/' + ansible_distribution|lower + '/zshrc.j2' ignore missing %}
|
|
||||||
|
|
||||||
### FZF
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
||||||
|
|
||||||
### ZSHRC NODE
|
|
||||||
source ~/.zshrc_node
|
|
||||||
|
|
||||||
### ZSH PURE
|
|
||||||
autoload -U zmv
|
|
||||||
plugins=(git python colored-man-pages colorize sprunge web-search)
|
|
||||||
export ZSH_COMPDUMP=/tmp/zcompdump-$USER
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
source {{ zsh_syntax_highlighting_dir.stdout }}
|
|
||||||
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
|
|
||||||
fpath=( "$HOME/.zfunctions" $fpath )
|
|
||||||
autoload -U promptinit; promptinit
|
|
||||||
prompt pure
|
|
Loading…
Reference in New Issue
Block a user