Skip to content

Commit

Permalink
Adds screenshots to i3 (#100)
Browse files Browse the repository at this point in the history
* Adds screenshots to i3

* Fixes pre-commit installation
  • Loading branch information
nvnivs authored Oct 31, 2023
1 parent b5970bc commit a28d532
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions Policyfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
named_run_list 'chef', 'jarbas::pre_platform', 'jarbas::chef', 'jarbas::post_platform'
named_run_list 'docker', 'jarbas::pre_platform', 'jarbas::docker', 'jarbas::post_platform'
named_run_list 'gcloud', 'jarbas::pre_platform', 'jarbas::gcloud', 'jarbas::post_platform'
named_run_list 'i3', 'jarbas::i3'
named_run_list 'platform', 'jarbas::pre_platform', 'jarbas::post_platform'
named_run_list 'python', 'jarbas::pre_platform', 'jarbas::python', 'jarbas::post_platform'
named_run_list 'rdp', 'jarbas::pre_platform', 'jarbas::rdp', 'jarbas::post_platform'
Expand Down
6 changes: 4 additions & 2 deletions attributes/packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
default['jarbas']['packages']['arch'] = [
'iotop', # View I/O usage of processes
'ntp', # Software clock syncronizer
'maim', # maim (Make Image) is an utility that takes screenshots of your desktop
'poedit', # Cross-platform gettext catalogs (.po files) editor
'pulseaudio', # Proxy for sound hardware
'qt5-x11extras',
'qt5-quickcontrols',
'xclip',
]

# List of arch only AUR packages
Expand All @@ -30,8 +32,8 @@

# Homebrew packages for mac_ox_x
default['jarbas']['packages']['homebrew'] = [
'coreutils', # GNU File, Shell, and Text utilities
'jq', # Lightweight and flexible command-line JSON processor
'coreutils', # GNU File, Shell, and Text utilities
'jq', # Lightweight and flexible command-line JSON processor
'telnet', # User interface to the TELNET protocol (built from macOS Sierra sources)
'tcptraceroute', # Traceroute implementation using TCP packets
'watch', # Executes a program periodically, showing output fullscreen
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'All Rights Reserved'
description 'Installs/Configures workstation'
version '5.15.0'
version '5.16.1'

chef_version '>= 17.2'
issues_url 'https://github.com/z0c/jarbas/issues'
Expand Down
4 changes: 2 additions & 2 deletions recipes/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
jarbas_package 'python'

# pip packages
pip_packages = %w(pip pytest tox pre-commit)
pip_packages = %w(python-pip python-pytest python-tox pre-commit)
pip_packages.each do |p|
case node['platform']
when 'arch', 'manjaro'
jarbas_package "python-#{p}"
jarbas_package p
when 'mac_os_x'
jarbas_execute "pip_package[#{p}]" do
command "pip3 install #{p}"
Expand Down
4 changes: 4 additions & 0 deletions templates/i3_config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,7 @@ mode "$mode_gaps_outer" {
default_border pixel 1
default_floating_border pixel 1
for_window [class="^.*"] border pixel 1

# Screenshots
bindsym $mod+p exec --no-startup-id maim --window $(xdotool getactivewindow) "/home/$USER/Pictures/$(date)"
bindsym Shift+$mod+p exec --no-startup-id maim --window $(xdotool getactivewindow) | xclip -selection clipboard -t image/png

0 comments on commit a28d532

Please sign in to comment.