mirror of
https://github.com/roles-ansible/ansible_role_i3wm.git
synced 2024-08-16 10:09:53 +02:00
Expand i3blocks
This commit is contained in:
parent
467d0062ad
commit
4ab2c0fb8d
4 changed files with 44 additions and 16 deletions
|
@ -6,6 +6,7 @@ i3_keybindings_extra: []
|
||||||
# name: example
|
# name: example
|
||||||
# key: $mod+Shift+F10
|
# key: $mod+Shift+F10
|
||||||
# exec: --no-startup-id touch /tmp/example.txt
|
# exec: --no-startup-id touch /tmp/example.txt
|
||||||
|
|
||||||
i3_monitors: [] # see: xrandr
|
i3_monitors: [] # see: xrandr
|
||||||
# - monitor:
|
# - monitor:
|
||||||
# id: 1
|
# id: 1
|
||||||
|
@ -14,32 +15,42 @@ i3_monitors: [] # see: xrandr
|
||||||
# pos: "0x0"
|
# pos: "0x0"
|
||||||
# rotate: "normal"
|
# rotate: "normal"
|
||||||
# workspaces: [1,2,3,4,5,6,7,8,9,0] # bind workspace to a specific monitor
|
# workspaces: [1,2,3,4,5,6,7,8,9,0] # bind workspace to a specific monitor
|
||||||
|
|
||||||
i3_applications: []
|
i3_applications: []
|
||||||
# - application:
|
# - application:
|
||||||
# class: "Firefox"
|
# class: "Firefox"
|
||||||
# name: "firefox"
|
# name: "firefox"
|
||||||
# workspace: 1 # bind application to a specific workspace
|
# workspace: 1 # bind application to a specific workspace
|
||||||
# on_startup: false
|
# on_startup: false
|
||||||
|
|
||||||
i3_run_on_startup: []
|
i3_run_on_startup: []
|
||||||
# - foo
|
# - foo
|
||||||
# - bar
|
# - bar
|
||||||
|
|
||||||
|
# which user are we?
|
||||||
|
i3wm_user: "{{ ansible_user_id }}"
|
||||||
|
|
||||||
## set default font size
|
## set default font size
|
||||||
i3_font_size: 9
|
i3_font_size: 9
|
||||||
i3_focus_follows_mouse: true
|
i3_focus_follows_mouse: true
|
||||||
|
|
||||||
# set i3lock options
|
# set i3lock options
|
||||||
i3lock_options: "i3lock --image=/home/{{ i3wm_user }}/.config/lockscreen.png --color 000000"
|
i3lock_options: "i3lock --image=/home/{{ i3wm_user }}/.config/lockscreen.png --color 000000"
|
||||||
|
|
||||||
# use fancy background
|
# use fancy background
|
||||||
i3_desktop_background: "/home/{{ i3wm_user }}/.config/background.png"
|
i3_desktop_background: "/home/{{ i3wm_user }}/.config/background.png"
|
||||||
|
|
||||||
|
i3_terminal: "terminator"
|
||||||
|
|
||||||
# install additional packages
|
# install additional packages
|
||||||
i3_packages_extra:
|
i3_packages_extra:
|
||||||
- ranger
|
- ranger
|
||||||
# which user are we?
|
|
||||||
i3wm_user: "{{ ansible_user_id }}"
|
|
||||||
# version check for this role?
|
|
||||||
submodules_versioncheck: true
|
|
||||||
|
|
||||||
i3wm_copy_wallpapers: true
|
i3wm_copy_wallpapers: true
|
||||||
|
|
||||||
disable_screensaver: true
|
disable_screensaver: true
|
||||||
enable_lock_after_time: false
|
enable_lock_after_time: false
|
||||||
lock_after_time: '200' # minutes to wait until your screen is locked
|
lock_after_time: '200' # minutes to wait until your screen is locked
|
||||||
|
|
||||||
|
# version check for this role?
|
||||||
|
submodules_versioncheck: true
|
||||||
|
|
|
@ -36,6 +36,16 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: "{{ i3wm_user }}"
|
owner: "{{ i3wm_user }}"
|
||||||
|
|
||||||
|
- name: copy multiple images
|
||||||
|
copy:
|
||||||
|
src: "{{ item.src }}"
|
||||||
|
dest: "{{ item.dest }}"
|
||||||
|
mode: 0644
|
||||||
|
with_items:
|
||||||
|
- { src: 'files/background.png', dest: "/home/{{ i3wm_user }}/.config/background.png" }
|
||||||
|
- { src: 'files/lockscreen.png', dest: '/home/{{ i3wm_user }}/.config/lockscreen.png' }
|
||||||
|
when: i3wm_copy_wallpapers | bool
|
||||||
|
|
||||||
- name: copy and validate i3wm config file
|
- name: copy and validate i3wm config file
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ i3wm_user }}"
|
become_user: "{{ i3wm_user }}"
|
||||||
|
@ -46,12 +56,10 @@
|
||||||
backup: true
|
backup: true
|
||||||
validate: i3 -C -c %s
|
validate: i3 -C -c %s
|
||||||
|
|
||||||
- name: copy files
|
- name: vim - copy bin src folder
|
||||||
|
become: true
|
||||||
|
become_user: "{{ i3wm_user }}"
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ role_path }}/files/i3blocks/"
|
||||||
dest: "{{ item.dest }}"
|
dest: "~/.config/i3blocks"
|
||||||
mode: 0644
|
mode: 0755
|
||||||
with_items:
|
|
||||||
- { src: 'files/background.png', dest: "/home/{{ i3wm_user }}/.config/background.png" }
|
|
||||||
- { src: 'files/lockscreen.png', dest: '/home/{{ i3wm_user }}/.config/lockscreen.png' }
|
|
||||||
when: i3wm_copy_wallpapers | bool
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
|
||||||
set $term terminator
|
set $term {{ i3_terminal }}
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
|
@ -23,7 +23,8 @@ bindsym $mod+d exec dmenu_run
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
bindsym $mod+d exec rofi -show run
|
bindsym $mod+d exec rofi -show run
|
||||||
# bindsym $mod+d exec rofi (a program launcher)
|
# bindsym $mod+d exec rofi (a program launcher)
|
||||||
bindsym $mod+Shift+d exec rofi -show window
|
bindsym $mod+Shift+d exec rofi -show drun
|
||||||
|
bindsym $mod+Shift+y exec rofi -show window
|
||||||
bindsym $mod+Shift+s exec rofi -show ssh
|
bindsym $mod+Shift+s exec rofi -show ssh
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -96,6 +97,10 @@ set $workspace{{ workspace.id }} "{{ workspace.name }}"
|
||||||
bindsym $mod+{{ workspace.id }} workspace $workspace{{ workspace.id }}
|
bindsym $mod+{{ workspace.id }} workspace $workspace{{ workspace.id }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
# toggle workspace
|
||||||
|
bindsym $mod+Tab workspace next_on_output
|
||||||
|
bindsym $mod+Shift+Tab workspace prev_on_output
|
||||||
|
|
||||||
# move focused container to workspace
|
# move focused container to workspace
|
||||||
{% for workspace in i3_workspaces %}
|
{% for workspace in i3_workspaces %}
|
||||||
bindsym $mod+Shift+{{ workspace.id }} move container to workspace $workspace{{ workspace.id }}
|
bindsym $mod+Shift+{{ workspace.id }} move container to workspace $workspace{{ workspace.id }}
|
||||||
|
@ -150,7 +155,11 @@ bindsym $mod+r mode "resize"
|
||||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||||
# finds out, if available)
|
# finds out, if available)
|
||||||
bar {
|
bar {
|
||||||
status_command i3status
|
font pango:mono {{ i3_font_size }}
|
||||||
|
status_command i3blocks
|
||||||
|
position top
|
||||||
|
mode dock
|
||||||
|
modifier None
|
||||||
}
|
}
|
||||||
|
|
||||||
# Setup Monitors
|
# Setup Monitors
|
||||||
|
|
|
@ -33,5 +33,5 @@ __i3_workspaces:
|
||||||
|
|
||||||
user: "{{ i3wm_user }}"
|
user: "{{ i3wm_user }}"
|
||||||
|
|
||||||
playbook_version_number: 9014 # should be over ninethousand
|
playbook_version_number: 9015 # should be over ninethousand
|
||||||
playbook_version_path: 'role-i3wm_chaos-bodensee_github.com.version'
|
playbook_version_path: 'role-i3wm_chaos-bodensee_github.com.version'
|
||||||
|
|
Loading…
Reference in a new issue